Starlink / starlink

Starlink Software Collection
162 stars 53 forks source link

kaplibs: misleading error message in kpg1Config #38

Closed gmarsden closed 9 years ago

gmarsden commented 10 years ago

When running smurf_makemap on non-scuba2 data using configuration dimmconfig_bright_compact.lis, came across the following error:

!! Unknown configuration parameter 'FILT_EDGE_LARGESCALE' specified via
!     environment parameter CONFIG.
!  Text was '450.flt.filt_edge_largescale=600' read from file
!     '$<STARLINK_DIR>/share/smurf/dimmconfig.lis'.
!  Application exit status SAI__ERROR, Error

Upon further investigation, the problem is that since the instrument is unknown (not scuba-2), no 450.* or 850.* configuration options are registered from the defaults file and thus flt.filt_edge_largescale is not a known option (only the 450 and 850 alternatives are listed in the defaults file). The actual error is the line flt.filt_edge_largescale = 200 in the dimmconfig_bright_compact.lis configuration. kpg1Config mistakenly reports the error as coming from dimmconfig.lis. This line is not the error, as it is ignored, confirmed by running makemap specifiying dimmconfig.lis and getting no error.

dsberry commented 9 years ago

Should be fixed by commit 57a6ef100e783