New name convention for ANC and GEO file

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
dortenzio
Posts: 16
Joined: Fri Jan 20, 2006 11:12 am America/New_York
Answers: 0

New name convention for ANC and GEO file

by dortenzio » Fri Aug 12, 2022 6:10 am America/New_York

Dear

I probably missed something but I have difficulties to find the new name convention for ANC and GEO file to reprocess L1 AQUA data.
Old extensions I used :
fileGEO=${file}.L1A_LAC.GEO
fileANC=${file}.L1A_LAC.anc
fileL1B=${file}.L1B_LAC

where $file is, for instance, "AQUA_MODIS.20220810T123501"

I tried:
fileGEO=${file}.L1A.OC.NRT.GEO

but It seems not the good one.

Have you some hints??
Sorry if information is already on the forum (I searched, with no results)

Thank you for your answer (and also for the incredible job you do)
Ciao
Fabrizio

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: New name convention for ANC and GEO file

by OB SeaDAS - xuanyang02 » Fri Aug 12, 2022 10:29 am America/New_York

Here is the info on new naming convention -- https://oceancolor.gsfc.nasa.gov/docs/filenaming-convention/

If you get L1A file A2022222123500.L1A_LAC here -- https://oceandata.sci.gsfc.nasa.gov/directdataaccess/Level-1A/Aqua-MODIS/2022/222/

your GEO file name is
AQUA_MODIS.20220810T123500.GEO.hdf, generated by

Code: Select all

modis_GEO A2022222123500.L1A_LAC
or

AQUA_MODIS.20220810T123501.GEO.hdf, donwloaded here -- https://oceandata.sci.gsfc.nasa.gov/directdataaccess/Geo-Location/Aqua-MODIS/2022/222/

Your L1B file name should be AQUA_MODIS.20220810T123500.L1B.hdf generated by

Code: Select all

modis_L1B A2022222123500
However, V2022.0 has a bug, which generates A2022222123500.L1B_LAC instead

Your anc file name is still
A2022222123500.L1A_LAC.anc, generated by

Code: Select all

getanc  A2022222123500.L1A_LAC
Anc file name is filename + ".anc"

You can find out the output filename of modis_GEO by

Code: Select all

get_output_name A2022222123500.L1A_LAC modis_GEO
You don't need to worry about NRT for L1A, L1B or GEO, it's for L2 and L3 files when the ancillary files are not optimal.

dortenzio
Posts: 16
Joined: Fri Jan 20, 2006 11:12 am America/New_York
Answers: 0

Re: New name convention for ANC and GEO file

by dortenzio » Mon Aug 15, 2022 9:19 am America/New_York

Thank you xuanyang02

this is a great clear explication.

I will try the next week and I will come back to tell you the final issue (hopefully positive)

thank you again
Fabrizio

dortenzio
Posts: 16
Joined: Fri Jan 20, 2006 11:12 am America/New_York
Answers: 0

Re: New name convention for ANC and GEO file

by dortenzio » Fri Aug 26, 2022 11:18 am America/New_York

Hello

I have still issues to process new file:

for instance, i downloaded:
AQUA_MODIS.20220810T123501.L1A.OC.NRT.nc

and I run the geo_MODIS.py code to generate GEO file, obtaining an error exit:

"Traceback (most recent call last):
File "scripts/modis_GEO.py", line 194, in <module>
sys.exit(main())
File "modis_GEO.py", line 180, in main
modis_env(m)
File "modis_utils.py", line 271, in modis_env
self.start, self.stop, self.sat_name = modis_timestamp(self.file)
File "modis_utils.py", line 158, in modis_timestamp
sat_name = meta['ASSOCIATEDPLATFORMSHORTNAME'].lower()
TypeError: 'NoneType' object has no attribute ‘__getitem__’
« 

any hints??

Thank you

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: New name convention for ANC and GEO file

by OB SeaDAS - xuanyang02 » Fri Aug 26, 2022 12:04 pm America/New_York

Please let us know where you downloaded AQUA_MODIS.20220810T123501.L1A.OC.NRT.nc, so we can replicate the error.

dortenzio
Posts: 16
Joined: Fri Jan 20, 2006 11:12 am America/New_York
Answers: 0

Re: New name convention for ANC and GEO file

by dortenzio » Fri Aug 26, 2022 1:05 pm America/New_York

Hello

I downloaded file with wget in a shell script

fileL2=AQUA_MODIS.20220810T123501.L1A.OC.NRT.nc
echo $fileL2 | wget -q --user=XXX --password=XXX --no-check-certificate --auth-no-challenge -B https://oceandata.sci.gsfc.nasa.gov (/cgi/getfile/) --content-disposition -P${L2_path} -i -

thanks again

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: New name convention for ANC and GEO file

by OB SeaDAS - xuanyang02 » Fri Aug 26, 2022 2:22 pm America/New_York

There is no such file AQUA_MODIS.20220810T123501.L1A.OC.NRT.nc in our system. Downloadable MODIS L1A file is still using the old naming convention on our site-- See https://oceandata.sci.gsfc.nasa.gov/directdataaccess/Level-1A/Aqua-MODIS/2022/222/

You should use

fileL2=A2022222123500.L1A_LAC.bz2 in your script instead, unzip A2022222123500.L1A_LAC.bz2, and do modis_GEO.py on A2022222123500.L1A_LAC

If you are using SeaDAS-7.5, modis_GEO.py will generate geo files with the old naming convention -- A2022222123500.GEO.

dortenzio
Posts: 16
Joined: Fri Jan 20, 2006 11:12 am America/New_York
Answers: 0

Re: New name convention for ANC and GEO file

by dortenzio » Mon Sep 05, 2022 4:17 am America/New_York

Hello
Done!! wrong name file in the automatic download script.

Now it is working.
Thank you
Fabrizio

Post Reply