Search found 306 matches

by fsteinmetz
Thu Sep 03, 2020 3:05 pm
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 6359

Re: All NaN Values - Landsat 8

Ok I finally got it. The problem was that due to a swapping of the order of lat/lon in gdal v3. A description of the issue is found here https://github.com/OSGeo/gdal/issues/1546 I am attaching an updated version of level1_landsat8.py which should fix the issue. Could you check ? Though it is not qu...
by fsteinmetz
Thu Sep 03, 2020 1:35 pm
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 6359

Re: All NaN Values - Landsat 8

Hello,
It seems indeed that there are cases where lat and lon are swapped. I'm investigating and will keep you updated !
Cheers,
François
by fsteinmetz
Thu Sep 03, 2020 1:23 pm
Forum: Support
Topic: Why there are many NaN in processing sentinel-2 ?
Replies: 10
Views: 7177

Re: Why there are many NaN in processing sentinel-2 ?

Dear Ding, Polymer is an atmospheric correction algorithm to retrieve water colour. It is not designed to work over land. With default processing parameters, the cloud mask triggers over most of the land pixels, and polymer returns bad results when it doesn't. An optional land mask (GSW) can be used...
by fsteinmetz
Mon Aug 31, 2020 9:32 pm
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 6359

Re: All NaN Values - Landsat 8

Hello,
Please find my input and output files for this scene at the following address :
https://we.tl/t-JxBXtlrjxf
Cheers,
François
by fsteinmetz
Mon Aug 31, 2020 9:10 pm
Forum: Support
Topic: install error linux centos7
Replies: 30
Views: 17791

Re: install error linux centos7

The command line interface polymer_cli.py is very basic and only supports default arguments.
You can not pass the argument resolution=20 unless you change it at the python level in polymer_cli.py by passing the argument resolution=20 to the object Level1.
by fsteinmetz
Mon Aug 31, 2020 9:06 pm
Forum: Support
Topic: Why there are many NaN in processing sentinel-2 ?
Replies: 10
Views: 7177

Re: Why there are many NaN in processing sentinel-2 ?

A basic example of GSW usage is : from polymer.main import run_atm_corr from polymer.level2_nc import Level2_NETCDF from polymer.level1_msi import Level1_MSI from polymer.gsw import GSW run_atm_corr( Level1_MSI('<L1C product>', landmask=GSW('<gsw tiles storage directory>')) Level2_NETCDF(), ) The ti...
by fsteinmetz
Wed Aug 26, 2020 1:22 pm
Forum: Support
Topic: install error linux centos7
Replies: 30
Views: 17791

Re: install error linux centos7

There is a quotation mark error, the argument must be provided outside of the string.
by fsteinmetz
Wed Aug 26, 2020 1:20 pm
Forum: Support
Topic: The hdf output can not processed completely and the output netcdf image can not match with the original input in SNAP
Replies: 2
Views: 2520

Re: The hdf output can not processed completely and the output netcdf image can not match with the original input in SNA

Hello, I tried to reproduce your error with HDF output but couldn't, in my case it didn't fail. Maybe if you could export your anaconda environment, if you are using anaconda, that could be helpful (conda env export > environment.yml). Concerning the error of geolocation in SNAP, this could be due t...
by fsteinmetz
Wed Aug 26, 2020 11:12 am
Forum: Support
Topic: Why there are many NaN in processing sentinel-2 ?
Replies: 10
Views: 7177

Re: Why there are many NaN in processing sentinel-2 ?

Dear ding, Polymer is an atmospheric correction algorithm to retrieve water colour. It is not designed to work over land. With default processing parameters, the cloud mask triggers over most of the land pixels, and polymer returns bad results when it doesn't. An optional land mask (GSW) can be used...
by fsteinmetz
Wed Aug 26, 2020 11:08 am
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 6359

Re: All NaN Values - Landsat 8

Dear GHesketh4, I tried the same file but did not get a file full of NaNs. Water reflectance is recovered over the glint area. Which version of Polymer did you use ? LC08_L1TP_011029_20200615_20200625_01_T1_polymer.jpg ding: please open a new thread if you have a precise question that is unrelated t...