Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

netCDF GDAL NoData Value=32769 after linear_scale_range(0,65335,0,65335) #990

Open
VincentVerelst opened this issue Jan 9, 2025 · 0 comments

Comments

@VincentVerelst
Copy link

When applying the linear_scale_range process to convert dtype to UInt16 the resulting netCDF has a NoData Value of 32769 instead of the expected 65335, using gdalinfo.

An example job is CDSE j-25010912043543edbb291a8946dbb1e1

This issue can be reproduced with the following code:

import openeo

c = openeo.connect('openeo.dataspace.copernicus.eu').authenticate_oidc()

bbox = {'north': 52.5, 'south': 52.45, 'east': 13.4, 'west': 13.35}

s2 = c.load_collection(
    collection_id="SENTINEL2_L2A",
    spatial_extent=bbox,
    temporal_extent=["2020-01-01", "2020-01-10"],
    bands = ["B04"]
)
s2 = s2.linear_scale_range(0, 65335, 0, 65335)

job = s2.execute_batch(
    out_format="netcdf",
    title="test title",
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant