Ken,

It looks valid to me. The missing_value attribute can also validly be an array attribute, but a lot of software doesn't handle that properly.

Grace and peace,

Jim

On 12/9/15 5:49 PM, Kehoe, Kenneth E. wrote:
I have a question about mixing data values and flag values. I know the correct method is to separate the data information from the flag information, but my colleague would prefer to keep the two in the same variable to simplify processing and reduce file size. The data files are already quite large. I looked through the discussion archive but could not find any discussion about this.

For example:

I have a data vector that occasionally has missing value indicators. They want to use multiple missing value indicators to indicate why the data is missing. A value of -9999 indicates no data at all, a value of -2 indicates possible clear sky, -1 indicates it is clear sky, and anything greater than or equal to 0 represents a data value. We will use valid_range to indicate that any value below 0 is not valid data and will be excluded. (I can’t use valid_min for historical reasons. We are sticking with missing_value for historical reasons.)

cloud_layer_base_height(time, layer):float
    long_name = "Cloud base height of hydrometeor layers” ;
    units = "m” ;
    missing_value = -9999.f ;
    valid_range = 0.f, 100000.f ;
    flag_values = -2.f , -1.f ;
    flag_meanings = "possible_clear_sky clear_sky” ;
comment = "-2. Possible clear sky (No MPL observations available, Ceilometer obscured, but no cloud detected), -1. Clear sky, >= 0. Valid cloud base height” ;

Would this be acceptable?

Ken

Kenneth E. Kehoe
Research Associate
ARM Climate Research Facility Data Quality Office

Office: 303-497-4754
Cell: 405-826-0299



_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata

--
CICS-NC <http://www.cicsnc.org/> Visit us on
Facebook <http://www.facebook.com/cicsnc>         *Jim Biard*
*Research Scholar*
Cooperative Institute for Climate and Satellites NC <http://cicsnc.org/>
North Carolina State University <http://ncsu.edu/>
NOAA National Centers for Environmental Information <http://ncdc.noaa.gov/>
/formerly NOAA’s National Climatic Data Center/
151 Patton Ave, Asheville, NC 28801
e: [email protected] <mailto:[email protected]>
o: +1 828 271 4900

/Connect with us on Facebook for climate <https://www.facebook.com/NOAANCEIclimate> and ocean and geophysics <https://www.facebook.com/NOAANCEIoceangeo> information, and follow us on Twitter at @NOAANCEIclimate <https://twitter.com/NOAANCEIclimate> and @NOAANCEIocngeo <https://twitter.com/NOAANCEIocngeo>. /


_______________________________________________
CF-metadata mailing list
[email protected]
http://mailman.cgd.ucar.edu/mailman/listinfo/cf-metadata

Reply via email to