Closed akankshabalha closed 1 year ago
The source to time workaround is only needed for some dataset that do not have a time dimension. The dataset you are using already have the time dimension though, so you don't need to use it. The dimension source
is mutually exclusive with time.
Start from the code below. crs
is not properly handled in this dataset, let's drop it for now.
from c3s_eqc_automatic_quality_control import diagnostics, download
#Define request
collection_id = "satellite-albedo"
request = {
"format": "zip",
"variable": "albb_bh",
"satellite": "proba",
"sensor": "vgt",
"product_version": "v2",
"horizontal_resolution": "1km",
"year": "2014",
"month": "01",
"nominal_day": "10",
"area": [15, 75, 10, 80],
}
# Download and transform
ds_mean = download.download_and_transform(
collection_id,
request,
transform_func=diagnostics.spatial_weighted_mean,
split_all=True,
drop_variables=["crs"]
)
thank you, it worked
Notebook description
Nb_Code.txt
Notebook link or upload
Error_Source.txt
Anything else we need to know?
On running the mentioned code, data gets downloaded but later gives me this error. What is its cause and how I can resolve it?
Environment