-
Notifications
You must be signed in to change notification settings - Fork 31
Description
For a running ncWMS2 service, it is easy to programmatically set up a new datasets via the addDataset API call described in the docs as 'configuring datasets via the admin interface' here:
https://reading-escience-centre.gitbooks.io/ncwms-user-guide/content/03-config.html#datasets
This is great for remotely adding a new dataset and making it available.
However, it'd be handy to have similar API support for per-variable settings within a new dataset (ie. default palette and min/max ranges, var name overrides, hide-toggle, etc). Basically all the things that the 'edit variable' interface does via a browser.
The most important use-case is for overriding the names of u/v component variables so that EDAL understand that it should make/offer the resulting vector variable. Eg. for wind or currents that exist as weirdly-named U and V variables (eg uwnd/vwnd, u1/v1, usurf/vsurf, etc).
The existing workflow is to call addDataset to initially add a new source to ncWMS, but then you have to fire up a browser and manually rename a bunch of variables in the new dataset (for example to eastward_wind/northward_wind etc) to provide enough hints to create a vector variable 'wind'.
Likewise for sensible data ranges or palettes. This gets tedious.
Also, on some deployments/swarms/restricted systems, the admin web interface is not available via browser.
Adding an 'editLayer' or 'editVariable' etc call would make the API more complete and flexible.