-
Notifications
You must be signed in to change notification settings - Fork 68
How can I use it with WMS ? #82
Comments
Hi, short answer is no. WMS doesn't store U or V real values but usually just a visual encoding of those, in png, .jpg.., with some kind of r.g.b. color mapping to the original float value. WCS is the best choice. The only possible path to something like that would be using some kind of manual procedure, to encode previously the real values in the RGB somehow (thus having control of the WMS server), with an approach similar to this: https://docs.mapbox.com/data/tilesets/reference/mapbox-terrain-rgb-v1/#elevation-data |
Hi Victor, I spend a lot of time on google but I cound not find anything useful. |
Probably trying to find same dataset served by NASA under a Thredds server, which allows using WCS & geotiff, is the best option. I'm not sure exactly which dataset you require, but chances are that they are served that way in another url. Eg: https://thredds.jpl.nasa.gov/thredds/catalog.html ?? Reading netCDF & OpenDAP in the browser and prepare the field is something I've never tried. There are libs at npm (search for netcdf / opendap) but all look old & not well maintained (eg: https://www.npmjs.com/package/jsdap/v/5.0.0) |
Hello Victor, thank you very much for send the links. The final question is how can I use the U and V data provide as WCS layers with the plugin? I appreciate very much for all the help. |
Check code in this WCS example here to getCoverage for a variable: https://ihcantabria.github.io/Leaflet.CanvasLayer.Field/example_ScalarField_Geotiff_WCS.html. You would need 2 combined requests for vectorField, one per each u | v component |
Hi Victor, Sorry for the stupid questions, I didn't see that there is an example with WCS After a few hours of study and attempts, I managed to use the plugin with the products made available by NASA via thredds; I suspect it may be related to the CRS=EPSG:4326 argument that didn't work in the request. This is the final urlCoverage I was able to use: (Manually the browser downloads geotiff, but to run it in the application I had to disable CORS with the Chrome Access-Control-Allow-Origin extension) Thank you again for all the help. |
Looks like either the values inside are expressed in a non standard magnitude (usually m/s) or there is a problem in code combining both bands |
Hello,
is it possible to use this plugins with data provided by WMS U and V components?
Thank you for the attention
The text was updated successfully, but these errors were encountered: