Page 1 of 1

OCSSW - having trouble processing L1A file from LANCE

Posted: Mon Nov 04, 2019 12:35 pm America/New_York
by alaroy
It's getting to be that time of year when there are more potential storms in the DC area (...both in the atmosphere and on Capital Hill...) so we're checking up on all of our alternate data sources.I'm trying to process an L1A file I obtained from LANCE and am running into issues in the command. The particular test granule I'm using was downloaded from as MYD01.A2019303.1750.061.NRT.hdf but I believe the issue to be more general to "recent" L1A files downloaded from there.When I call on the L1A file (I've re-named everything here to follow the soon to be old OBPG naming conventions) I get the following error:$ --threshold=10 -o A2019303175000.GEO A2019303175000.L1A_LACTraceback (most recent call last):  File "/marine-services/ocssw/scripts/", line 194, in <module>    sys.exit(main())  File "/marine-services/ocssw/scripts/", line 180, in main    modis_env(m)  File "/marine-services/ocssw/scripts/modules/", line 271, in modis_env    self.start, self.stop, self.sat_name = modis_timestamp(self.file)  File "/marine-services/ocssw/scripts/modules/", line 158, in modis_timestamp    sat_name = meta['ASSOCIATEDPLATFORMSHORTNAME'].lower()TypeError: 'NoneType' object has no attribute '__getitem__'I've tried it with copies of ocssw downloaded fresh from scratch on 10/31/2019 and this morning (11/4/2019) so it does not appear to be something recently fixed.Is this something that can be worked around and/or can you please update the script to query the different possible types of metadata?Another related question - do you know, please, where I would look on LANCE for ephemeris and attitude files that can be used as input to you,-Andrew L.

OCSSW - having trouble processing L1A file from LANCE

Posted: Mon Nov 04, 2019 3:12 pm America/New_York
by OB.DAAC - SeanBailey

Works for me.  I grabbed the same file from nrt4 and it processed just fine through - both before and after I got nothin'

As for where in to find the att/eph on nrt4 ... a same place as the L1A's:



OCSSW - having trouble processing L1A file from LANCE

Posted: Tue Nov 05, 2019 8:44 am America/New_York
by gnwiii
Works for me as well (on fedora 31).  I'm curious to know what is different with Andrew's setup.   Before I retired, we sometimes had issues with blocks of null data being inserted into as many as 10% of downloads by some ancient network gear,  so the first thing I check is sha1sum's.   Since the problem seems to be with the python script, it would be good to check python 2 and 3 and the sha1sum's of the scripts:

$ sha1sum MYD01.A2019303.1750.061.NRT.hdf
80438d927795c45d217379a989927fded5a61e2d  MYD01.A2019303.1750.061.NRT.hdf
$ python --version
Python 3.7.5
$ sha1sum $OCSSWROOT/scripts/
fc43de17c9106d3bb626d28d415006f3da2f5bf9  /home/g/ocssw/scripts/
$ sha1sum $OCSSWROOT/scripts/modules/
7541a9746eb73742031c3139555ab3d75f9733f5  /home/g/ocssw/scripts/modules/

"python2 ~/ocssw/scripts/ -v MYD01.A2019303.1750.061.NRT.hdf" also works.