Hi,
I am learning my way around openEO using the Terrascope instance. I have succesfully reproduced the Dataset sampling example.
I am now trying to extend it to other data sources and I have been successful in adding other collections (“SENTINEL1_GRD_SIGMA0”, “COPERNICUS_30”).
However, when I try to use the “AGERA5” collection, the downloaded files contain NaN for all the pixels and all the bands.
I am retrieving [“dewpoint-temperature”, “precipitation-flux”, “solar-radiation-flux”,“temperature-max”,“temperature-mean”,“temperature-min”,“vapour-pressure”,“wind-speed” ]. The netCDF files are generated with the correct size and geometry.
I have tested different time spans in case the collection was not complete, but this does not seem to be the case.
Below, you can see the code I am using. As I said, this works with S2, S1 and the Copernicus DEM.
Thanks for your help.
Jordi
TIMERANGE = ["2018-06-04", "2018-08-04"]
OUTDIR = Path("/usr/local/stok/DATA/MMDC/OpenEO/")
FEATURES = (
"https://artifactory.vgt.vito.be/testdata-public/parcels/test_10.geojson"
)
def filter_and_run_job(datacube, title, description, subdir):
job = datacube.filter_spatial(
FEATURES,
).create_job(
title=title,
description=description,
out_format="netCDF",
sample_by_feature=True,
)
job.start_and_wait()
out_dir = OUTDIR / subdir
if not out_dir.exists():
out_dir.mkdir()
job.download_results(out_dir)
def sample_and_download_agera5(connection):
agera5 = connection.load_collection(
"AGERA5",
temporal_extent=TIMERANGE,
bands=[
"dewpoint-temperature",
"precipitation-flux",
"solar-radiation-flux",
"temperature-max",
"temperature-mean",
"temperature-min",
"vapour-pressure",
"wind-speed",
],
)
filter_and_run_job(
datacube=agera5,
title="AGERA5",
description="AGERA-5",
subdir="AGERA5",
)