HDF Errors with ancillary data

Technical questions about ACOLITE
Post Reply
jamesrunnalls
Posts: 2
Joined: Tue Feb 15, 2022 9:19 am

HDF Errors with ancillary data

Post by jamesrunnalls »

Acolite is crashing when trying to read ancillary files such as MET/2022/141/N202214100_O3_AURAOMI_24h.hdf with the following error.

pyhdf.error.HDF4Error: SD (15): File is supported, must be either hdf, cdf, netcdf

This is not specific to Acolite I am also having this issue with Polymer, but I was wondering if anyone else is experiencing this or has found a solution?
quinten
Posts: 1014
Joined: Tue Mar 03, 2015 8:13 am

Re: HDF Errors with ancillary data

Post by quinten »

Hi James

Indeed it seems like the ancillary data used in ACOLITE (NCEPR2 and AURAOMI) are no longer available from the oceandata server. I will have to investigate a change of file type or data source. For the moment please use ancillary_data=False

Quinten
quinten
Posts: 1014
Joined: Tue Mar 03, 2015 8:13 am

Re: HDF Errors with ancillary data

Post by quinten »

Hi James

I have adapted the ancillary data process to use GMAO MERRA2 or FP data. Please update your ACOLITE distribution and give it a try!

For processing imagery older than about six weeks, use the (new default) setting:

Code: Select all

ancillary_type=GMAO_MERRA2_MET
and for NRT data you can use:

Code: Select all

ancillary_type=GMAO_FP_MET
I hope this helps!

Quinten
jamesrunnalls
Posts: 2
Joined: Tue Feb 15, 2022 9:19 am

Re: HDF Errors with ancillary data

Post by jamesrunnalls »

Thanks Quinten for the super fast updates! I will run some tests with the updated code and get back to you if there are any issues.

Thanks for your work!

James
binbinjiang1990
Posts: 22
Joined: Tue Feb 16, 2021 2:06 pm

Re: HDF Errors with ancillary data

Post by binbinjiang1990 »

Dear James,

Is that works for you? could you provide some details for fix this bugs , thanks

Best,Binbin
quinten
Posts: 1014
Joined: Tue Mar 03, 2015 8:13 am

Re: HDF Errors with ancillary data

Post by quinten »

Hi Binbin

Did you update the code? Which error do you get?

Quinten
binbinjiang1990
Posts: 22
Joined: Tue Feb 16, 2021 2:06 pm

Re: HDF Errors with ancillary data

Post by binbinjiang1990 »

Dear Quinten,

My error same as the title"HDF errors with ancillary data"
I just used the ACOLITE20221114, but i can not find which script contain "ancillary_type=GMAO_MERRA2_MET", I check /ancillary get.py, there are nothing about ancillary types. Could you provide a new one?

Best, Binbin
quinten
Posts: 1014
Joined: Tue Mar 03, 2015 8:13 am

Re: HDF Errors with ancillary data

Post by quinten »

Hi Binbin

The new code is not present in older versions... :lol: You must use a current git clone to be able to use the new ancillary format.

I may work on a new binary release in the coming weeks.

Quinten
binbinjiang1990
Posts: 22
Joined: Tue Feb 16, 2021 2:06 pm

Re: HDF Errors with ancillary data

Post by binbinjiang1990 »

Dear Quinten,

Thank you for your reply. I am looking foward new version.

Best,Binbin
quinten
Posts: 1014
Joined: Tue Mar 03, 2015 8:13 am

Re: HDF Errors with ancillary data

Post by quinten »

Hi Binbin

I just released a new version: viewtopic.php?f=3&t=462

Quinten
Post Reply