/usr/local/seadas/7.5/run/scripts/modis_L1A.py /home/seadas/data/20200214172718.eam1/T20200214172718.gran.L0P.pkt.tmp \
--mission=TERRA --startnudge=15 --stopnudge=15
I get the following error:
Traceback (most recent call last):
File "/usr/local/seadas/7.5/run/scripts/modis_L1A.py", line 62, in <module> m.l0()
File "/usr/local/seadas/7.5_20200217/scripts/modules/modis_L1A_utils.py", line 250, in l0 \
self.gransec = ProcUtils.diffsecs(self.start, self.stop, 't')
File "/usr/local/seadas/7.5_20200217/scripts/modules/ProcUtils.py", line 209, in diffsecs
AttributeError: 'datetime.timedelta' object has no attribute 'total_seconds'
Did I miss something with the download?
Perhaps the script that checks the Python version check could be updated.
I checked with Red Hat for a new Python version . Unfortunately, 2.6.6 is the only one available for RHEL 6.10. In order to proceed, I replaced the
diffsecs line in modis_L1A_utils.py with 'self.gransec = float(self.gransec) - self.startnudge - self.stopnudge'. It seems to work correctly because I
make sure that self.rounding is always False.
Which brings me to the next question. The line following diffsec computes the minutes of the granules which is used in the generated the PCF file.
Is it important that the minute variable does not include the partial minute, if any, of the granule? For example, a granule of 750 seconds is 10 /1/2 minute.
Should the minute by 11?
I will keep this site in mind if the need arise for other applications.
Thanks for the quick help.