SeaDAS unable to determine timestamp

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
eorb
Posts: 4
Joined: Wed Feb 10, 2021 10:42 am America/New_York
Answers: 0

SeaDAS unable to determine timestamp

by eorb » Wed May 17, 2023 6:14 am America/New_York

Hello

Has something changed between SeaDAS V2021.2 and V2023.2 ?
I'm now getting "Unable to determine time stamp for input file",
for example with file P1540064AAAAAAAAAAAAAA23136162834001.PDS
(the SeaDAS version is the only thing that I think I've changed!)

Tags:

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: SeaDAS unable to determine timestamp

by OB SeaDAS - xuanyang02 » Wed May 17, 2023 11:06 am America/New_York

A lot of things have changed between V2021.2 and V2023.2.

Where did you get the file P1540064AAAAAAAAAAAAAA23136162834001.PDS?

Were you trying to do modis_L1A on the file and get the error "Unable to determine time stamp for input file"?

eorb
Posts: 4
Joined: Wed Feb 10, 2021 10:42 am America/New_York
Answers: 0

Re: SeaDAS unable to determine timestamp

by eorb » Wed May 17, 2023 1:50 pm America/New_York

It's a direct broadcast file and sorry for not clarifying that I was trying to convert it to L1A.

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: SeaDAS unable to determine timestamp

by OB SeaDAS - xuanyang02 » Mon May 22, 2023 10:36 am America/New_York

If you could upload your file in the cloud, such as google drive, we might be able to replicate the error and resolve the issue.

eorb
Posts: 4
Joined: Wed Feb 10, 2021 10:42 am America/New_York
Answers: 0

Re: SeaDAS unable to determine timestamp

by eorb » Tue May 23, 2023 1:56 pm America/New_York

When I look at the code in get_l0_timestamp() I don't see any regex for filenames of that format.

However the function _get_type_using_l0_cnst() does have a regex for such filenames, so I suspect it's an oversight in the timestamp function?

OB SeaDAS - xuanyang02
Subject Matter Expert
Subject Matter Expert
Posts: 644
Joined: Tue Feb 09, 2021 5:42 pm America/New_York
Answers: 1
Been thanked: 1 time

Re: SeaDAS unable to determine timestamp

by OB SeaDAS - xuanyang02 » Tue May 23, 2023 6:16 pm America/New_York

It's hard to tell without debugging modis_L1A on the actual file

eorb
Posts: 4
Joined: Wed Feb 10, 2021 10:42 am America/New_York
Answers: 0

Re: SeaDAS unable to determine timestamp

by eorb » Wed May 24, 2023 5:16 am America/New_York

I could send you a file, but you could also just rename one of yours with the filename above.

When I modify get_l0_timestamp() in the file get_output_name_utils.py

matched_name = re.match(r"P...0064..............(\d\d\d\d\d)(\d\d\d\d\d\d)001\.PDS", input_basename)
time_stamp = '20'+matched_name.group(1)+matched_name.group(2)

then it seems to work (although group(1) contains year and julian day, not year,month,day).

The old version of SeaDAS would create:
-rw-r--r-- 1 opr local 990765493 May 24 10:10 A2023136102616.L1A_LAC

With the above modification, the new version creates:
-rw-r--r-- 1 opr local 990765505 May 24 10:08 AQUA_MODIS.20230516T131641.L1A.hdf

Post Reply