Page 1 of 1

Failed to download external oceandata files

Posted: Fri Apr 29, 2022 10:30 pm
by ntaylor
Hi,

I'm trying to get polymer to run within a jupyter notebook. I'm running the following code, just trying to get Polymer to run:

Code: Select all

# import modules
from sys import argv
import argparse
from polymer.main import run_atm_corr, Level1, Level2
import os

# set path to MSI L1C directory
getdatapath = 'data_NT/raw/S2A_MSIL1C_20180312T191201_N0206_R056_T10UEU_20180312T222941.SAFE/GRANULE/L1C_T10UEU_A014210_20180312T191502/'

# run polymer
run_atm_corr(Level1(getdatapath), Level2())

After running the code, it thinks for a bit, then I get the following:

Starting processing at 2022-04-29 14:53:00.111412
Initialize MSI projection EPSG:32610
/usr/local/Caskroom/miniconda/base/envs/polymer/lib/python3.8/site-packages/pyproj/crs/crs.py:131: FutureWarning: '+init=<authority>:<code>' syntax is deprecated. '<authority>:<code>' is the preferred initialization method. When making the change, be mindful of axis order changes: https://pyproj4.github.io/pyproj/stable ... -in-proj-6
in_crs_string = _prepare_from_proj_string(in_crs_string)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failure (32512)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... MI_24h.hdf ...
failure (32512)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... OAST.OZONE ...
failure (32512)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... TOVS.OZONE ...
failure (32512)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... 1_f012.hdf ...
failure (32512)
Trying to download https://oceandata.sci.gsfc.nasa.gov/cgi ... 1_f015.hdf ...
failure (32512)
sh: wget: command not found
sh: wget: command not found
sh: wget: command not found
sh: wget: command not found
sh: wget: command not found
sh: wget: command not found

I installed wget in the conda environment, but that didn't solve the issue. I also thought it might be due to an issue installing the auxdata, which I installed using the command "make auxdata" instead of what's listed in the readme file, which is "make auxdata_all"? Any help would be very much appreciated!

Re: Failed to download external oceandata files

Posted: Fri May 06, 2022 9:17 am
by fsteinmetz
Hello,

The auxiliary data are fixed files downloaded by the command "make auxdata_all".
The ancillary files are different, and are downloaded on the fly to get information about wind speed, surface pressure, etc, for the file you want to process.
Installing wget through anaconda should work - could you try restarting your terminal and confirm that you have access to the wget command in your terminal ?
Otherwise you can try installing if on the system if possible.
Lastly, an option is to use Ancillary_ERA5 instead of Ancillary (which fetches ancillary data from NASA server), because it uses another mechanism for downloading.
I hope this helps,
Cheers,
François