tsupinie / autumnplot-gl

Hardware-accelerated geospatial data plotting in the browser
MIT License
18 stars 4 forks source link

Feature Request - Precipitation Type #7

Open Craytor opened 10 months ago

Craytor commented 10 months ago

This package has been amazing to work with! I'm wondering about the possibility of adding precipitation data to model data. Models have reflectivity, and they also have information about precip type. I'm wondering about the possibility of supporting precip type down the road. I know this is a rather complex task, but would we be able to achieve this using a "filter" in WebGL to apply a separate color palette based on the precipitation type? Finally, for the required data, in terms of the current project, this would require three or four items in addition to reflectivity - CSNOW, CICEP, CFRZR, and possibly CRAIN. Perhaps CRAIN may not be needed as if your precip type is not snow, mix, or freezing rain, it's going to be rain?

Thoughts on this? In terms of structure - perhaps this should be an additional layer type such as a "Shaded Layer" and perhaps the inputs could be data, and then the layer types. I think that this should also be applicable to both ContourFilled and Raster.

I'm willing to help out any way possible, but my knowledge of WebGL is lacking.

tsupinie commented 10 months ago

Yeah, I think this could be an interesting addition. I'm trying to mull over in my head exactly how I would want it to look and how I would want the code to be structured. But it's doable, and making it part of the library would be more efficient than just having the user add four layers if they wanted a ptype display.