Problem with mk_matchup.py
Posted: Tue Oct 13, 2020 6:41 pm America/New_York
I'm getting errors running mk_matchup.py. I don't understand them. Can you help me figure out where to look for the problem(s), please? The mk_matchup.py routine is invoked within a loop in a bash script. This is the calling statement,
${SEA7}mk_matchup.py --sat_file=${SFIL} --seabass_file=${HFIL} --out_file=${OFIL} --min_valid_sat_pix=75. --no_header_comment
in which {SEA7} is a token for the /Applications/seadas-7.5/ocssw/scripts directory, and {SFIL}, {HFIL}, and {OFIL} are tokens with the satellite data file, SeaBASS data file, and output file respectively.
Here are the error messages. Because "delim" is mentioned, I thought they might have something to do with the delimiter specified in the SeaBASS input file. An example of that file is appended below as well. I don't see a problem with it.
Traceback (most recent call last):
File "/Applications/seadas-7.5/ocssw/scripts/mk_matchup.py", line 647, in <module>
if __name__ == "__main__": main()
File "/Applications/seadas-7.5/ocssw/scripts/mk_matchup.py", line 198, in main
no_warn=True)
File "/Applications/seadas-7.5/ocssw/scripts/modules/SB_support_v35.py", line 237, in __init__
if not delim:
UnboundLocalError: local variable 'delim' referenced before assignment
/begin_header
/missing=-9.999
/delimeter=comma
/fields=year,month,day,hour,minute,second,lat,lon,station
/end_header
2020,1,2,17,06,00,42.53833,-79.61667,ER09
2020,1,2,17,06,00,42.68000,-79.69167,ER10
2020,1,2,17,06,00,42.51667,-79.89333,ER15M
2020,1,2,17,06,00,42.43000,-81.20500,ER30
2020,1,2,17,06,00,42.25333,-81.10667,ER31
2020,1,2,17,06,00,42.08167,-81.01167,ER32
2020,1,2,17,06,00,41.93500,-81.47833,ER36
2020,1,2,17,06,00,42.11000,-81.57500,ER37
2020,1,2,17,06,00,42.28167,-81.67167,ER38
2020,1,2,17,06,00,41.96500,-82.04167,ER42
2020,1,2,17,06,00,41.78833,-81.94500,ER43
2020,1,2,17,06,00,41.68500,-82.93333,ER58
2020,1,2,17,06,00,41.72667,-83.15000,ER59
2020,1,2,17,06,00,41.89167,-83.19667,ER60
2020,1,2,17,06,00,41.94667,-83.04500,ER61
2020,1,2,17,06,00,42.41667,-79.80000,ER63
2020,1,2,17,06,00,41.97778,-81.75694,ER73
2020,1,2,17,06,00,42.11667,-81.25000,ER78M
2020,1,2,17,06,00,41.84083,-82.91667,ER91M
2020,1,2,17,06,00,41.95000,-82.68667,ER9
Thanks!
${SEA7}mk_matchup.py --sat_file=${SFIL} --seabass_file=${HFIL} --out_file=${OFIL} --min_valid_sat_pix=75. --no_header_comment
in which {SEA7} is a token for the /Applications/seadas-7.5/ocssw/scripts directory, and {SFIL}, {HFIL}, and {OFIL} are tokens with the satellite data file, SeaBASS data file, and output file respectively.
Here are the error messages. Because "delim" is mentioned, I thought they might have something to do with the delimiter specified in the SeaBASS input file. An example of that file is appended below as well. I don't see a problem with it.
Traceback (most recent call last):
File "/Applications/seadas-7.5/ocssw/scripts/mk_matchup.py", line 647, in <module>
if __name__ == "__main__": main()
File "/Applications/seadas-7.5/ocssw/scripts/mk_matchup.py", line 198, in main
no_warn=True)
File "/Applications/seadas-7.5/ocssw/scripts/modules/SB_support_v35.py", line 237, in __init__
if not delim:
UnboundLocalError: local variable 'delim' referenced before assignment
/begin_header
/missing=-9.999
/delimeter=comma
/fields=year,month,day,hour,minute,second,lat,lon,station
/end_header
2020,1,2,17,06,00,42.53833,-79.61667,ER09
2020,1,2,17,06,00,42.68000,-79.69167,ER10
2020,1,2,17,06,00,42.51667,-79.89333,ER15M
2020,1,2,17,06,00,42.43000,-81.20500,ER30
2020,1,2,17,06,00,42.25333,-81.10667,ER31
2020,1,2,17,06,00,42.08167,-81.01167,ER32
2020,1,2,17,06,00,41.93500,-81.47833,ER36
2020,1,2,17,06,00,42.11000,-81.57500,ER37
2020,1,2,17,06,00,42.28167,-81.67167,ER38
2020,1,2,17,06,00,41.96500,-82.04167,ER42
2020,1,2,17,06,00,41.78833,-81.94500,ER43
2020,1,2,17,06,00,41.68500,-82.93333,ER58
2020,1,2,17,06,00,41.72667,-83.15000,ER59
2020,1,2,17,06,00,41.89167,-83.19667,ER60
2020,1,2,17,06,00,41.94667,-83.04500,ER61
2020,1,2,17,06,00,42.41667,-79.80000,ER63
2020,1,2,17,06,00,41.97778,-81.75694,ER73
2020,1,2,17,06,00,42.11667,-81.25000,ER78M
2020,1,2,17,06,00,41.84083,-82.91667,ER91M
2020,1,2,17,06,00,41.95000,-82.68667,ER9
Thanks!