I’m actually processing a large amount of Sentinel-1 and 2 images on a server.
For Sentinel-1 i’m making all the pre-processing needed for GRD and everything is ok, for Sentinel-2 i’m computing LAI via the biofactor option.
But in both i’m trying to apply a subseting at the end of every step to avoid issues (i’m using the subset option based on a WKT format), but when i’m checking a saved image it is just full of NaN values … as if it wasn’t keeping any information in it. I checked if the problem was happening before but at every steps of processing I got good images with the right values.
I’m on Python 3.6.9 on the server and with the latest version of SNAP.
On my personal desktop I don’t have this problem and i’m on 3.6.11. Could it be a problem from Python version ?
By the way here my subset function if you think something should change between different version of python :
def subset(product,wkt): parameters = HashMap() parameters.put('referenceBand',product.getBandNames()) parameters.put('geoRegion',wkt) parameters.put('copyMetadata',True) return GPF.createProduct('Subset',parameters,product)
If anyone has an idea it would be amazing