Search found 139 matches

by fsteinmetz
Thu Sep 17, 2020 10:47 am
Forum: Support
Topic: way to shapes
Replies: 5
Views: 415

Re: way to shapes

Hi Brenner,
I assume that condition has a height of zero, but I couldn't say more without knowing the context.
The full python error message could be helpful. Which sensor are you processing ?
Cheers,
François
by fsteinmetz
Fri Sep 04, 2020 7:30 am
Forum: Support
Topic: Why there are many NaN in processing sentinel-2 ?
Replies: 10
Views: 1076

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

The GSW data is downloaded on the fly, only the necessary tiles, so for a single S2 tile it should not be a large data amount.
The resolution of GSW data can be degraded by a factor agg=2^n, by passing the option agg to GSW (for example, GSW(agg=8). This makes the processing lighter.
Best
by fsteinmetz
Fri Sep 04, 2020 7:24 am
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 1005

Re: All NaN Values - Landsat 8

Great ! Thanks for the feedback.
Cheers,
François
by fsteinmetz
Thu Sep 03, 2020 3:05 pm
Forum: Support
Topic: All NaN Values - Landsat 8
Replies: 10
Views: 1005

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: 1005

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: 1076

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: 1005

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: 4121

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: 1076

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: 4121

Re: install error linux centos7

There is a quotation mark error, the argument must be provided outside of the string.