bird-house / flyingpigeon

WPS processes for climate model data, indices and extreme events
http://flyingpigeon.readthedocs.io/en/latest/
Apache License 2.0
19 stars 15 forks source link

Add time checks in subset processes #286

Closed huard closed 4 years ago

huard commented 5 years ago

To catch empty outputs as soon as possible.

huard commented 5 years ago

@cehbrecht, @nilshempelmann
For the bbox subsetting there are start and end parameters. Let's say that these parameters are outside the domain of the resource being subsetted, should we raise an InvalidParameterValue error ?

If there are multiple resources being subsetted, we might want to rather continue processing and only subset those that can be subsetted, and ignore the others.

Thoughts ?

nilshempelmann commented 5 years ago

@huard Here my thoughts:

Hope this is inspiring

cehbrecht commented 5 years ago

I think in ESGF search datasets are returned that partially overlap the [start, end] time interval. If you want to leave the decision to the user you could add an option like: "partial overlap", "full overlap".

nilshempelmann commented 4 years ago

@huard: Is that still an issue? subset by timerange is more useful for multiple files (an entire dataset). The subset functions are now looping over single files (5year timeslices for daily datafiles). Should be the time_range a seperate process?

otherwise 'eggshell.nc_utils.get_timerange' would be the right finction to catch missmatchs

huard commented 4 years ago

It's been a while, I don't know. Ok with closing this.

nilshempelmann commented 4 years ago

Outdated