When I run the following script
Code: Select all
from polymer.main import run_atm_corr
from polymer.level1_msi import Level1_MSI
from polymer.gsw import GSW
import polymer.level2_hdf
run_atm_corr(
Level1_MSI('/home/ding/data/S2A_MSIL1C_20170402T024541_N0204_R132_T50RNV_20170402T025302/S2A_MSIL1C_20170402T024541_N0204_R132_T50RNV_20200727T095734.SAFE/GRANULE/L1C_T50RNV_A009281_20170402T025302', landmask=GSW(directory='/home/ding/data/outfile/gsw/')),
polymer.level2_hdf(filename='20170402ss', outdir='/home/ding/data/outfile/')
)
Code: Select all
Initialize MSI projection EPSG:32650
/home/ding/.local/lib/python3.8/site-packages/pyproj/crs/crs.py:280: 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/gotchas.html#axis-order-changes-in-proj-6
projstring = _prepare_from_string(projparams)
Traceback (most recent call last):
File "/home/ding/polymer-v4.13/Sentinel2_process.py", line 16, in <module>
polymer.level2_hdf(filename='20170402ss', outdir='/home/ding/data/outfile/')
TypeError: 'module' object is not callable
Kind regards,
ding