ERDDAP png sizing & other graphics tweaks
Closed this issue · 3 comments
from ERDDAP docs:
for .png and .transparentPng images (not other image file types), you can also use the &.size=width|height parameter to request an image of any size.
This would allow us to use transparent images and allow for getting any size rather than the defaults.
The graphics commands section also has some useful stuff:
&.bgColor=bgColor
&.colorBar=palette|continuous|scale|min|max|nSections
&.color=value
&.draw=value
&.legend=value
&.trim=trimPixels
Specifically:
&.legend=Off
and&.legend=Only
may be the fix for #1 .&.trim=trimPixels
should remove the whitespace- the others should help with setting colors of NaN pixels, landmask, and data
- example trimmed :
&.trim=0
- legend off + 1px trim :
&.trim=1&.legend=Off
- custom sizing
- legend only
Note that the custom sizing doesn't seem to work very well.
custom scaling, colorbars, limits from @dotis:
FK URLs for OC 7D images
ANOMS
nFLH anom:
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?nflh_anom%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7Cnflh_anom&.colorBar=Rainbow%7C%7C%7C-0.5%7C0.5%7C&.bgColor=0xffccccff
.colorBar=Rainbow|||-0.5|0.5|
CHL anom:
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?chlor_a_anom%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7Cchlor_a_anom&.colorBar=Rainbow%7C%7C%7C-2%7C2%7C&.bgColor=0xffccccff
colorBar=Rainbow|||-2|2|
Rrs_667 anom:
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?Rrs_667_anom%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7CRrs_667_anom&.colorBar=Rainbow%7C%7C%7C-0.01%7C0.01%7C&.bgColor=0xffccccff
.colorBar=Rainbow|||-0.01|0.01|
MEANS/MEDIANS
nFLH median:
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?nflh_median%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7Cnflh_median&.colorBar=Rainbow%7C%7C%7C0%7C1%7C&.bgColor=0xffccccff
.colorBar=Rainbow|||0|1|
CHL median (log scale):
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?chlor_a_median%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7Cchlor_a_median&.colorBar=Rainbow%7C%7CLog%7C0.01%7C20%7C&.bgColor=0xffccccff
.colorBar=Rainbow||Log|0.01|20|
Rrs_667 median (log scale):
http://imars-physalis.marine.usf.edu:8080/erddap/griddap/OC_f0d3_1bc2_8172.largePng?Rrs_667_median%5B(2018-12-30T00:00:00Z)%5D%5B(26.0):(23.50073)%5D%5B(-84.50014):(-79.5016)%5D&.draw=surface&.vars=longitude%7Clatitude%7CRrs_667_median&.colorBar=Rainbow%7C%7CLog%7C0.0001%7C0.025%7C&.bgColor=0xffccccff
Rainbow||Log|0.0001|0.025|
medians aren't included right now, but this is done