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

Average over polygon subset #314

Open
huard opened this issue Mar 5, 2020 · 7 comments · May be fixed by #315
Open

Average over polygon subset #314

huard opened this issue Mar 5, 2020 · 7 comments · May be fixed by #315

Comments

@huard
Copy link
Contributor

huard commented Mar 5, 2020

Description

Instead of only subsetting, take the average over each polygon.

@nilshempelmann
Copy link
Member

@huard you mean a fieldmean?

@huard
Copy link
Contributor Author

huard commented Mar 5, 2020

I guess so, the average over all points included in the geometry. I realized that the function does already that, but it shouldn't. It's a subset process, it should return the full grid intersecting with the geometry. I think I mistakenly set aggregate to True, while it should be set to False.

@nilshempelmann
Copy link
Member

I am not really following you.
Country and continent subset returns a grid of the selected polygon. If you set mosaik to true than multiple polygons gets retuned as one multypolygon mosaik.
The spaghetti/uncertainty plot calculates the spatial average. Is that what you want?

@huard
Copy link
Contributor Author

huard commented Mar 5, 2020

Correct, but I think the wfs_subset did not return a grid on the selected polygon, but an average over each polygon.

What I want here is a single spatial average value for each time step over each polygon. I'm getting Internal Server Error (500) with the master, any idea ?

@nilshempelmann
Copy link
Member

You want the single spatial average value as a netCDF output? I have planed to wrap up the fieldmean function next week.
I could add a process for fieldmean calculation.
Never had a server error 500.

@nilshempelmann
Copy link
Member

The spaghetti plot can output the timeseries also as files.

@huard
Copy link
Contributor Author

huard commented Mar 5, 2020

Correct, but I want the mean computed only over a polygon.

I think we should update pywps to at least 4.2.3. The 4.2.2 version is incompatible with recent owslib.

@huard huard linked a pull request Mar 5, 2020 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants