Skip to content
Snippets Groups Projects
Commit 6b0c800a authored by Hernán Asorey's avatar Hernán Asorey
Browse files

No altitude or geomagnetic loop removed. Now dies if the values are not given

parent d8f8caa2
No related branches found
No related tags found
No related merge requests found
......@@ -528,18 +528,18 @@ unless ($ifixmodatm) {
unless ($ifixalt) {
while (!$altitude) {
$altitude = get("Observation level above sea level [cm]",0,"OBSLEV", $altitude);
if (!$altitude) { print STDERR "ERROR: Observation level is mandatory > 0\n"; }
if (!$altitude) { die "ERROR: Observation level is mandatory > 0\n"; }
}
}
while (!$bx) {
$bx=get("Horizontal comp. of the Earth's mag. field (MAGNET) [North,muT],\nsee values at http://www.ngdc.noaa.gov/geomagmodels/struts/calcIGRFWMM",0,"BX", $bx);
if (!$bx) { print STDERR "ERROR: BX is mandatory\n"; }
if (!$bx) { die "ERROR: BX is mandatory\n"; }
}
while (!$bz) {
$bz=get("Vertical comp. of the Earth's mag. field (MAGNET) [downwards,muT]",0,"BZ", $bz);
if (!$bz) { print STDERR "ERROR: BZ is mandatory\n"; }
if (!$bz) { die "ERROR: BZ is mandatory\n"; }
}
if ($ifixalt && $fixalt) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment