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

Interpolation considerations #197

Open
jerstlouis opened this issue Dec 4, 2024 · 8 comments
Open

Interpolation considerations #197

jerstlouis opened this issue Dec 4, 2024 · 8 comments

Comments

@jerstlouis
Copy link
Member

jerstlouis commented Dec 4, 2024

As discussed for the WCS Interpolation Extension update, we should:

  • Allow (or require?) servers to specify the default interpolation being used globally, per field and/or per axis
  • Consider defining a new parameter for clients to request the use of a specific interpolation method globally, per field and/or per axis
@pebau
Copy link
Contributor

pebau commented Dec 6, 2024

@jerstlouis sorry, what is "default orientation"? I missed something here I believe.

@jerstlouis
Copy link
Member Author

@jerstlouis you did not miss anything -- my brain is just quirky ;) Fixed, thanks!

@KathiSchleidt
Copy link

From my experience with derived products, it would be essential to either have the interpolation specified for each field (band) and axis, or it must be possible to specify this in the request. Different types of data require different interpolation, e.g. counts (population data) or classifications (e.g. land cover) cannot be interpolated like raw imagery.

@chris-little
Copy link

chris-little commented Dec 11, 2024

The classic examples from meteorology and oceanography are that in the vertical, interpolation usually should be logarithmic (either base 10 or e)
Horizontally, the interpolations for, say, pressure, wind velocity, and precipitation would be completely different, and ideally may actually change across the coverage, such as on different sides of a weather front. HTH.

@github-project-automation github-project-automation bot moved this from Next Discussions to Done in OGC API - Coverages - Part 1: Core Dec 11, 2024
@jerstlouis
Copy link
Member Author

jerstlouis commented Dec 11, 2024

SWG 2024-12-11:

We probably need to add default interpolation method, and recommended interpolation methods both per dimension and per field.

For the dimensions, we should add this to the Common Collection Description dimensions ( https://github.com/opengeospatial/ogcapi-common/blob/master/collections/openapi/schemas/common-geodata/extent.yaml ).

For the fields, we should add this as JSON Schema vocabulary extensions (#173, https://github.com/opengeospatial/ogcapi-common/wiki/Table-of-extensions-to-the-JSON-Schema-vocabulary ).

It should at least be a recommendation to specify these.

As for an interpolation parameter for the client to explicitly request a particular interpolation (whether global, or for a specific dimension and/or field), we could delay this to a future part.

What would these things be called? defaultInterpolationMethod and recommendedInterpolationMethods ?

How would the intersection of per-dimension and per-field interpolation methods work?

Some interpolation methods are registered on the definition server:

http://defs.opengis.net/vocprez/object?uri=http://www.opengis.net/def/interpolation/OGC/1/

@jerstlouis jerstlouis reopened this Dec 11, 2024
@jerstlouis jerstlouis moved this from In Progress to Next Discussions in OGC API - Coverages - Part 1: Core Dec 11, 2024
@chris-little
Copy link

@jerstlouis @KathiSchleidt Apologies for closing by accident/inattention.

@jerstlouis
Copy link
Member Author

jerstlouis commented Feb 5, 2025

SWG 2025-02-05:

  • We discussed interpolation a bit today with @fmigneault and @joanma747
  • We already have the variableType describing additional dimensions in the Collection Description https://docs.ogc.org/DRAFTS/20-024.html#_uml_class_model which can provide information
  • We will delay to an extension the ability for client to pick a particular interpolation method
  • Servers supporting the Scaling requirement class will do their best to return resampled data at the resolution requested by the client (specified as number of cells with scale-size or width/height, scale-factor relative to native resolution, or potentially at a specific resolution)
  • We'll include recommendations providing guidance as to what servers should do and when in terms of resampling
  • Perhaps we could add an x-ogc-variableType to the JSON Schema extensions to describe the variable type of fields, which could provide information about what kind of interpolations is possible?

@jerstlouis
Copy link
Member Author

SWG 2025-02-12:

We added x-ogc-variableType to the JSON Schema extension, and agree to the way forward proposed last week.

@jerstlouis jerstlouis moved this from Next Discussions to Agreed; to be applied in OGC API - Coverages - Part 1: Core Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Agreed; to be applied
Development

No branches or pull requests

4 participants