Closed ascbot closed 5 years ago
Original Redmine Comment Author Name: Tracie Sucharski (Tracie Sucharski) Original Date: 2012-07-20T21:01:55Z
Need to improve error checking and error message for labels. Currently code is looking for several keywords, and if any are missing, it always prints, "Unable to read [DATA_SET_ID] from input file ....".
This was found when it was run on what appears to be a map product. There is an error check for validating an EDR, but it never got to that error. That validation should probably happen first.
There is a test file in:
/work/users/tsucharski/mroctx2isisTestMapProjectedImage
Original Redmine Comment Author Name: Tammy Becker (Tammy Becker) Original Date: 2012-07-20T21:32:42Z
Now that Tracie identified the problem as the input file was not an EDR and the obvious need for an improved user error; lowering the Priority=block to normal was discussed and okayed with Donna. Triage was lowered from a 9 to 3.
Original Redmine Comment Author Name: Stuart Sides (@scsides) Original Date: 2016-07-12T18:18:25Z
Close for Donna
Author Name: Donna Galuszka (Donna Galuszka)
Original Assignee: Curtis Rose
astrovm2.wr.usgs.gov > mroctx4socet.pl img_list ERROR Unable to read [DATA_SET_ID] from input file [G21_026620_1881_XN_08N205W_120331.img]. mroctx2isis failed on command: mroctx2isis from=G21_026620_1881_XN_08N205W_120331.img to=G21_026620_1881_XN_08N205W_120331.cub See ctx4socet.prt for details ctx4socet.pl aborted astrovm2.wr.usgs.gov > ll total 78708 -rw-r--r-- 1 dgaluszka flagstaf 127 Jul 20 08:32 ctx4socet.err -rw-r--r-- 1 dgaluszka flagstaf 80564288 Apr 30 11:06 G21_026620_1881_XN_08N205W_120331.img -rw-r--r-- 1 dgaluszka flagstaf 38 Jul 20 08:32 img_list -rw-r--r-- 1 dgaluszka flagstaf 750 Jul 20 08:32 mroctx4socet.prt astrovm2.wr.usgs.gov > cat ctx4socet.err mroctx2isis failed on command: mroctx2isis from=G21_026620_1881_XN_08N205W_120331.img to=G21_026620_1881_XN_08N205W_120331.cub astrovm2.wr.usgs.gov > cat mroctx4socet.prt Object = mroctx2isis IsisVersion = "3.4.0.4476 stable | 2012-05-21" ProgramVersion = 2008-09-02 ProgramPath = /usgs/pkgs/isis3.4.0/isis/bin ExecutionDateTime = 2012-07-20T08:32:05 HostName = astrovm2.wr.usgs.gov UserName = dgaluszka Description = "Import an MRO CTX image as an Isis cube"
Group = UserParameters FROM = G21_026620_1881_XN_08N205W_120331.img TO = G21_026620_1881_XN_08N205W_120331.cub FILLGAP = true End_Group
Group = Error Program = mroctx2isis Code = 1 Message = "Unable to read [DATA_SET_ID] from input file [G21_026620_1881_XN_08N205W_120331.img]" File = mroctx2isis.cpp Line = 61 End_Group End_Object
Steps to reproduce:
run script on img_list in dir: /work/projects/mars_flood_models/CTX_Images_4socet/CTX_Athabasca_Lower/G21_026620_1881_4socet
usage: mroctx4socet.pl img_list