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())
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!