⇐ ⇒

[CF-metadata] Adding palettes to the data

From: Martin Raspaud <martin.raspaud>
Date: Wed, 14 Nov 2012 11:45:42 +0100

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 23/10/12 19:59, Mike Grant wrote:
> On 28/09/12 12:40, Martin Raspaud wrote:
>> Within this context, we would like to associate a palette of
>> (rgb)
> ..
>> However, I can't find information on how to do this in netcdf and
>> more particularly within CF.
>
> This is really a presentation issue and, as such, I don't think
> it's been addressed within CF, which is more about describing the
> data. Similarly, the netcdf format is about containing and
> describing data, rather than pictures, which would be considered as
> a rendering of the data by a separate program. So I don't think
> you'll find anything dealing with it in CF or netcdf docs at
> present.
>
> Mark's question regarding the encoding of your data is very
> relevant - are your data values already crunched down to a 0-255
> range suitable for palettising (in which case make sure you include
> the descaling parameters! [1]) or are they real data of some kind?
>
> The only other things I'd add to Mark's suggestions are that you
> might want to use the "ancillary_variables" attribute [2] to link
> to the "recommended" palette, and to consider the CF cell
> boundaries [3] as one way of encoding ranges (this might not make
> sense!)

Mark, Mike

Thank for your answers.

To clarify a little, the cloudtype values are within [0, 20], so we
define an rgb color for every value.

I understand from your comments that there is no standard way defined
for palettes, so I will do as suggested and use a (r, g, b) array of
size 20 and put it as an ancillary_variable to the dataset.

Thanks,
Best regards,
Martin

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQo3ZVAAoJEBdvyODiyJI4S2EIAN285gdw9PF1J640rMAwoJYd
XYhG5yqlbXiV9JVKoZQ202Ot034rU1LIVMgrnFxekPbQ8A3+BdP1Ua7Z9SEtiMRB
aG4cP6DNsxails42u0PwWehu3ChVE++oZpqL22v6CmuG8RbKIpVuLTY1cIU7l8Qn
wAu93Z1APHGDX0S4vS9QD+Du0uz8zJrBxN2ohnGNRZF5LOpzNI00KgBeGj8Wb8bY
faUIk5YA5b5NGbWF3kmU82kLnATautlF8Wj9GmcNDtAtvNHDwfuqN4b64WOjQMeC
39CK8OGGQW/y/1j+DL2lrWsBRlkqmJbWoOHjDl3ItDFu/VLM1of65MNa4IwSutc=
=Vv6t
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: martin_raspaud.vcf
Type: text/x-vcard
Size: 302 bytes
Desc: not available
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20121114/f88f4301/attachment.vcf>
Received on Wed Nov 14 2012 - 03:45:42 GMT

This archive was generated by hypermail 2.3.0 : Tue Sep 13 2022 - 23:02:41 BST

⇐ ⇒