getanc.py for GOCI
what 159 :/tmp/tmp_oo> getanc.py /tmp/tmp_oo/S1999183032627.L1A_MLAC --ancdb=/tmp/tmp_oo/ancillary_data.db
icefile=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918300_SEAICE_NSIDC_24h.hdf
met1=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918300_MET_NCEPR2_6h.hdf
met2=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918306_MET_NCEPR2_6h.hdf
met3=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918306_MET_NCEPR2_6h.hdf
ozone1=/optics1/software/seadas/seadas_6.1/var/anc/1999/182/N199918200_O3_EPTOMS_24h.hdf
ozone2=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918300_O3_EPTOMS_24h.hdf
ozone3=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N199918300_O3_EPTOMS_24h.hdf
sstfile=/optics1/software/seadas/seadas_6.1/var/anc/1999/183/N1999183_SST_OIV2AV_24h.nc
But the GOCI file not.
what 160 :/tmp/tmp_oo> getanc.py /tmp/tmp_oo/G20131180016.L1B_COMS.he5 --ancdb=/tmp/tmp_oo/ancillary_data.db
Traceback (most recent call last):
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/getanc.py", line 183, in <module>
g.setup()
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/modules/anc_utils.py", line 238, in setup
starttime, stoptime = self.get_start_end_info_from_xml(metadata)
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/modules/anc_utils.py", line 138, in get_start_end_info_from_xml
time_start_list = xml_root.findall('.//Attribute[@Name="time_coverage_start"]')
File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 355, in findall
return ElementPath.findall(self, path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 198, in findall
return _compile(path).findall(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in __init__
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)
what 161 :/tmp/tmp_oo>
Surely there should be a software tweak as opposed to installing and maintaining another version of python? Especially since the older version works fine:
what 117 :/tmp/tmp_oo> which getanc.py
/optics1/software/seadas/ocssw_7.0.2/ocssw/run/scripts/getanc.py
what 118 :/tmp/tmp_oo> getanc.py /tmp/tmp_oo/G20131180016.L1B_COMS.he5 --ancdb=/tmp/tmp_oo/ancillary_data.db
icefile=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_SEAICE_NSIDC_24h.hdf
met1=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_MET_NCEPR2_6h.hdf
met2=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311806_MET_NCEPR2_6h.hdf
met3=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311806_MET_NCEPR2_6h.hdf
ozone1=/optics1/software/seadas/seadas_6.1/var/anc/2013/117/N201311700_O3_AURAOMI_24h.hdf
ozone2=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_O3_AURAOMI_24h.hdf
ozone3=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_O3_AURAOMI_24h.hdf
sstfile=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N2013118_SST_OIV2AV_24h.nc
And if it is in the ancillary_data.db it is read fine but fails when deleted:
what 102 :/tmp/tmp_oo> SETOCSSW73
what 103 :/tmp/tmp_oo> getanc.py /tmp/tmp_oo/G20131180016.L1B_COMS.he5 --ancdb=/tmp/tmp_oo/ancillary_data.db
icefile=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_SEAICE_NSIDC_24h.hdf
met1=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_MET_NCEPR2_6h.hdf
met2=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311806_MET_NCEPR2_6h.hdf
met3=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311806_MET_NCEPR2_6h.hdf
ozone1=/optics1/software/seadas/seadas_6.1/var/anc/2013/117/N201311700_O3_AURAOMI_24h.hdf
ozone2=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_O3_AURAOMI_24h.hdf
ozone3=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N201311800_O3_AURAOMI_24h.hdf
sstfile=/optics1/software/seadas/seadas_6.1/var/anc/2013/118/N2013118_SST_OIV2AV_24h.nc
what 104 :/tmp/tmp_oo> rm /tmp/tmp_oo/ancillary_data.db
what 105 :/tmp/tmp_oo> getanc.py /tmp/tmp_oo/G20131180016.L1B_COMS.he5 --ancdb=/tmp/tmp_oo/ancillary_data.db
Traceback (most recent call last):
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/getanc.py", line 183, in <module>
g.setup()
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/modules/anc_utils.py", line 238, in setup
starttime, stoptime = self.get_start_end_info_from_xml(metadata)
File "/optics1/software/seadas/seadas-7.3/ocssw/run/scripts/modules/anc_utils.py", line 138, in get_start_end_info_from_xml
time_start_list = xml_root.findall('.//Attribute[@Name="time_coverage_start"]')
File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 355, in findall
return ElementPath.findall(self, path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 198, in findall
return _compile(path).findall(element)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 176, in _compile
p = Path(path)
File "/usr/lib64/python2.6/xml/etree/ElementPath.py", line 93, in __init__
"expected path separator (%s)" % (op or tag)
SyntaxError: expected path separator ([)