-
Notifications
You must be signed in to change notification settings - Fork 3
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
Automate multiple palette assignment to each statistic #24
Comments
Another related in-progress ticket is issue#16. For each statistic, the no data value must be defined, and it may vary per statistic. The default is currently set to be 0, but in plenty of datasets 0 is a real value. A high priority goal of the visualization workflow is to be able to differentiate between no data and no detections. For a layer, users should be able to tell whether a region (tile) that lacks polygons is empty because the region was run through a detection model and no feature was detected versus the region was not input into the model. We have discussed achieving this in various ways. Some examples:
If there is existing documentation about this that I haven't linked to, anyone feel free to note it. Notes:
|
In the package, web tiling is executed when we run |
As noted earlier, before iterating though each palette in each stat, we need to determine if the stats is continuous, categorical, or discrete. This may need to be an entirely new option in the statistic part of the config. Perhaps we could integrate a default for this by writing a function that determines the type of the column entered for the stat with |
During the rasterization step of the viz workflow, each statistic that was defined in the config generates one tileset of geotiffs. Importantly, each statistic contains specification for one palette that can be either a list of hex codes or the name of a palette that contains multiple colors. During the subsequent viz workflow step, web tiling, each palette is assigned to its respective tileset of geotiffs, generating one tileset of web tiles for each geotiff tileset.
Because we currently show PNG's on the portal, and do not display geotiffs, we are not currently able to generate layers in any palette that a user may specify. In other words, we cannot generate PNG tilesets on the fly.
Doug Hungarter from Google.org suggested that the users be able to choose between several predefined palettes for each data layer. For example, a user should be able to choose between green, yellow, or purple ice-wedge polygons while the ice-wedge polygons layer is toggled on, and potentially layered on top of other layers. He suggested that we automate the web tiling with the following changes:
We can and should differentiate between categorical and discrete color palettes:
Integrating Doug's suggested changes would require:
viz-staging
to accept multiple palettes for each statisticviz-raster
to iterate through each palette for each statisticweb_tiles
dir)web_tiles
, so if each statistic also has multiple versions (one tileset per palette), then those would need to be nested as subdirs within the statistic name withinweb_tiles
, so it would look something like:web_tiles/permanent_water/palette_1/WGS1984Quad/12/...
,web_tiles/permanent_water/palette_2/WGS1984Quad/12/...
and so onThis issue is related to
viz-staging
issue#25The text was updated successfully, but these errors were encountered: