Page 1 of 1

getanc error for the December 2023

Posted: Wed Jan 03, 2024 11:00 am America/New_York
by oo_processing
Dear Support,

I got connection error for the 1st one, but OK for the 2nd one. We need to generate a report for the last month, so it's kind of urgent. Very appreciated if you can help.
# getanc -s 2023338150000 --ancdb=./junk.db --disable-download -m modisa
...
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='oceandata.sci.gsfc.nasa.gov', port=443): Max retries exceeded with url: /api/anc_data_api/?&m=7&s=2023-12-04T15:00:00&e=2023-12-04T15:05:00&missing_tags=1 (Caused by ReadTimeoutError("HTTPSConnectionPool(host='oceandata.sci.gsfc.nasa.gov', port=443): Read timed out. (read timeout=10.0)"))

# getanc -s 2023308150000 --ancdb=./junk.db --disable-download -m modisa
./junk.db

icefile=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/20231104120000-CMC-L4_GHRSST-SSTfnd-CMC0.1deg-GLOB-v02.0-fv03.0.nc
met1=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T150000.MET.nc
met2=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T150000.MET.nc
met3=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T160000.MET.nc
ozone1=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T150000.MET.nc
ozone2=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T150000.MET.nc
ozone3=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/GMAO_MERRA2.20231104T160000.MET.nc
sstfile=/shares/cms_optics/apps/seadas/ocssw/V2023.2/var/anc/2023/308/20231104120000-CMC-L4_GHRSST-SSTfnd-CMC0.1deg-GLOB-v02.0-fv03.0.nc

Thanks.
Yuyuan

Re: getanc error for the December 2023

Posted: Wed Jan 03, 2024 12:43 pm America/New_York
by OB ODPS - towens
I can reproduce the error on my desktop.

I don't know why the API doesn't handle it better, but data day 2023 338 = 2023-12-04. The refined MERRA2 Ancillary data are released monthly, typically after the 21st of the following month, so it is too soon for December data.

Try that query after 2024-01-21.

In the mean time, can use the GMAO_FP NRT ancillary to process that day.

I'll report the API issue to the web admins.

Tommy

Re: getanc error for the December 2023

Posted: Wed Jan 03, 2024 1:19 pm America/New_York
by OB ODPS - towens
web admins have a workaround while they work on the reponse time:
add --timeout=30 to allow the API to find the NRT data.

getanc -s 2023338150000 --timeout=30 --ancdb=./junk.db --disable-download -m modisa
./junk.db
icefile=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/20231204120000-CMC-L4_GHRSST-SSTfnd-CMC0.1deg-GLOB-v02.0-fv03.0.nc
met1=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T150000.MET.NRT.nc
met2=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T150000.MET.NRT.nc
met3=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T180000.MET.NRT.nc
ozone1=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T150000.MET.NRT.nc
ozone2=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T150000.MET.NRT.nc
ozone3=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/GMAO_FP.20231204T180000.MET.NRT.nc
sstfile=/accounts/towens/SeaDAS/ocssw/var/anc/2023/338/20231204120000-CMC-L4_GHRSST-SSTfnd-CMC0.1deg-GLOB-v02.0-fv03.0.nc

Tommy

Re: getanc error for the December 2023

Posted: Wed Jan 03, 2024 2:27 pm America/New_York
by oo_processing
It works, thank you, Tommy.