⇐ ⇒

[CF-metadata] flag variables: appending "b" to fill value, valid range, flag mask, and flag values

From: Jim Biard <jbiard>
Date: Fri, 7 Mar 2014 08:26:23 -0500

Randy,

The ?b? is ncdump notation for a value with type ?byte?. It?s the type of the variable that determines whether or not there is a ?b? after the number.

Grace and peace,

Jim

Visit us on
Facebook Jim Biard
Research Scholar
Cooperative Institute for Climate and Satellites NC
North Carolina State University
NOAA's National Climatic Data Center
151 Patton Ave, Asheville, NC 28801
e: jbiard at cicsnc.org
o: +1 828 271 4900




On Mar 7, 2014, at 7:55 AM, Randy Horne <rhorne at excaliburlabs.com> wrote:

> Dear All:
>
> ?b is appended to all fill value, valid range, flag mask, and flag values in the flag variable examples (see para. 3.5 Flags). Note that in the examples, ?b? is appended to values that are base 10 values, and in some cased are numbers where multiple bits are needed to represent the value (e.g. 63b, 12b)
>
> The second sentence says "Status codes and Boolean (binary) condition flags may be expressed with different combinations of flag_values and flag_maslks attribute definitions.?.
>
> The question I have revolves around whether should ?b? be should be appended to valid range, flag mask, and flag values when the flag variable is a status code.
>
> Here is an example where ?b? has been appended to status codes...
>
> byte status ;
> status:_FillValue = -128b;
> status:valid_range = 1b, 4b ;
> status: flag_values = 1b, 2b, 3b, 4b ;
> status:flag_meanings = hot warm lukewarm cold ;
>
>
> Is including the ?b? correct ?
>
>
> very respectfully,
>
> randy
>
>
>
>
> _______________________________________________
> CF-metadata mailing list
> CF-metadata at cgd.ucar.edu
> http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.cgd.ucar.edu/pipermail/cf-metadata/attachments/20140307/9285c29d/attachment-0001.html>
Received on Fri Mar 07 2014 - 06:26:23 GMT

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

⇐ ⇒