Can't connect using wget or curl to https://oceandata.sci.gsfc.nasa.gov/ob/
Posted: Tue Apr 11, 2023 6:18 pm America/New_York
About a week ago the daily script I run to access CyAN data stopped working. After further investigation, I can't download using wget or curl. The file that is downloaded is not able to be loaded as it was before. I am able to manually download at: https://oceandata.sci.gsfc.nasa.gov/directdataaccess/Level-3%20Mapped/Merged-S3-CYAN/2023/100/
I have a ~/.netrc with login and password. I've also tried using "@appkey={APP_KEY}" but that doesn't work either. Any help would be much appreciated.
Here are the command line calls I have used to access these files:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies https://oceandata.sci.gsfc.nasa.gov/ob/getfile/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif -O data/cyan/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif
curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n https://oceandata.sci.gsfc.nasa.gov/ob/getfile/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif -o data/cyan/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif
I have a ~/.netrc with login and password. I've also tried using "@appkey={APP_KEY}" but that doesn't work either. Any help would be much appreciated.
Here are the command line calls I have used to access these files:
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies https://oceandata.sci.gsfc.nasa.gov/ob/getfile/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif -O data/cyan/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif
curl -O -b ~/.urs_cookies -c ~/.urs_cookies -L -n https://oceandata.sci.gsfc.nasa.gov/ob/getfile/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif -o data/cyan/L2023100.L3m_DAY_CYAN_CI_cyano_CYAN_CONUS_300m_7_5.tif