CDBS
2.0 NetCDF File Design
for
Statistics About Atmospheric and Water Data
Table of Contents
- INTRODUCTION 1
- FILE NAMING CONVENTIONS 1
- DIMENSIONS 2
- GLOBAL ATTRIBUTES 3
- VARIABLES DESCRIBING THE STATION 3
- VARIABLES DESCRIBING THE DATA 6
- COORDINATE VARIABLES 7
- VARIABLES RELATED TO MAXIMUMS AND MINIMUMS OF RECORD 9
- VARIABLES RELATED TO THE DATA'S PROBABILITIES OF EXCEEDENCE
14
INTRODUCTION
The CDBS database separates the observed data into separate files
for each data collection station. It also puts the statistics
concerning the observed data (maximums of record, minimums of
record, and probability of exceedence) in a file separate from
the file holding the observed data. This is done to make distribution
of subsets of the database easier. Within the National Resources
Conservation Service, the Water and Climate Center has the responsibility
for being the central repository for Atmospheric and Water data,
and the responsibility for periodically transferring localized
subsets of that data to the various NRCS Field Offices. Since
a Field Office may only require data from as few as 3 sites, and
rarely needs data from more than a dozen sites, the separation
of netCDF data into separate files will allow easier fulfillment
of the mission of supporting the Field Offices.
Within each netCDF statistics file, there are several variables
that describe the station, several more variables that describe
the data, and separate variables for each type of statistical
information that is stored for that station. There are also attributes
in each of the variables that define the data that is stored in
that variable.
Since frequency analyses of data can be based on different time
spans (period of record, current normals period, etc.) the netCDF
statistics file can hold multiple sets of statistics, and separates
the sets according to the beginning and ending dates of their
time spans.
Statistical data for which quality flags are available will have
separate variables for the flags, paralleling the layout of the
variable containing the statistical data. These variables will
have an additional dimension based on the number of flags associated
with each data value.
A more detailed description of the design of the netCDF Statistics
file follows, and the accompanying sample CDL shows an implementation
of this design.
GLOBAL INFORMATION
FILE NAMES
The name of the netCDF file for each station must be unique, and
must fit within the limitations of the most restrictive operating
system on which these files will be used -- in this case, DOS.
Since copies of the data files will be transferred to any user
wanting data from a particular station, the file name should indicate
the station whose data is in the file. The following convention
is used to define names for CDBS netCDF files:
The name of each NetCDF statistics file will consist of the following
5 concatenated fields (all characters will be lower case):
| data network | 2-character code for the data collection network
identifying the source of the data. (See the CDBS 2.0 Data Collection
Network Codes document for a list of possible values.) This is
included to eliminate confusion between stations in different
networks that use the same station identifier.
|
| station id | This is the station identifier used by the data collection
network . Note that the station id may consist of mixed digits
and characters.
|
| period | 1-character separator (".", ASCII 46), used
to separate the file name from the file suffix.
|
| state code | 2-character code identifying the state in which the
station is located. This is the same as the postal code for that
state.
|
| data file type | The letter "s." This is to mark this
file as a statistical data file. (The complete CDBS database design
also includes netCDF files for Observed, Forecast, Central Tendencies,
and Simulated data.)
|
Example:
file "co5614.ids"
This file contains statistics about data from station number 5614,
a National Weather Service Cooperative Data Network station in
Idaho.
DIMENSIONS
All of the dimensions listed below are present in every CDBS 2.0
netCDF Statistics file. The dimensions fall into three categories:
dimensions used by variables containing information about the
station, dimensions used by variables that contain the different
time spans of data from which statistical analyses were done,
and dimensions used by variables containing statistical information
related to a station's data's probability-of-exceedence.
The following dimensions are used in variables that store station
metadata:
| sta_id_lgth=9 | The maximum length of a station id, plus 1 character
to hold the NULL that terminates the string.
|
| hand_5_lgth=9 | The maximum length of a Handbook 5 (SHEF) station
id, plus 1 character to hold the NULL that terminates the string.
|
| sta_nm_lgth=61 | The maximum length of a station name, plus 1 character
to hold the NULL that terminates the string.
|
| st_cd_lgth=3 | The maximum length of a FIPS alphabetic state code
(postal code), plus 1 character to hold the NULL that terminates
the string.
|
| data_net_lgth=5 | The maximum length of a data network code, plus
1 character to hold the NULL that terminates the string.
|
The following dimensions are used in variables that store the
describe the sets of data that the statistical analyses were performed
on:
| data_set | This is the unlimited dimension, and shows how many
sets of source data have had statistical analyses performed on
them.
|
| data_set_fg=2 | The number of information flags associated with
each set of source data.
|
The following dimensions are used in variables that store information
related to the station's data's probability-of-exceedence values:
| pblty=17 | The number of probability levels for which probability-of-exceedence
values are stored for this station's data. See the CDBS 2.0 Probability
Levels document for the complete list of probabilities.
|
| storm=18 | The number of storm depths (durations) for which probability-of-exceedence
values are stored. See the CDBS 2.0 Storm Durations document
for the complete list of storm durations.
|
| drtn=20 | The number of data durations for which CDBS 2.0 will
store data. See the CDBS 2.0 Duration Codes document for the complete
list of durations.
|
| yr = 1 | The number of annual values to be stored per year.
|
| mo = 12 | The number of monthly values to be stored per year.
|
| day = 366 | The number of daily values to be stored per year.
|
| prd_of_rcd = 1 |
|
| fg_type | The number of data flags that are associated with
each piece of data. The type will be replaced by the 4-
or 5-character code for one of the data flagging systems. See
the CDBS 2.0 Data Flag System Codes document for a list of known
flag systems. There may be several of these "fg_type"
dimensions for a single station.
|
GLOBAL
ATTRIBUTES
The following list of global attributes is included in each CDBS
netCDF Statistics data file.
| row_for_normals_period
| Every 5 years, a new 30-year time span is defined for the purpose
of calculating "normals" statistics. This attribute
stores the row number of the statistical set whose values have
been based on the current "normals" period.
|
| Conventions | "CDBS"
|
| element_reference | "Elements Used in CDBS 2.0"
|
| duration_reference | "CDBS 2.0 Duration Codes"
|
| probability_reference
| "CDBS 2.0 Probability Levels"
|
| storm_reference | "CDBS 2.0 Storm Durations"
|
| history | This attribute will hold the history of modifications
to the file. To quote the netCDF User's Guide, this "is a
character array with a line for each invocation of a program and
arguments that were used to derive the file."
|
INFORMATION ABOUT VARIABLES
VARIABLES
DESCRIBING THE STATION
Within the netCDF file are several variables that identify the
station. These variables hold a minimal set of metadata for the
station; a much more extensive set of metadata is stored in the
Informix side of the CDBS database. (You may notice that there
is duplication between some of these variables and the information
encoded in the file name. This is both for redundancy in case
the file name gets inadvertently scrambled, and to allow better
access to this information from within programs.)
The following is a list of the file's variables that describe
the station, and the dimensions and attributes of each of these
variables:
Variable "station_id"
This variable contains the identifier assigned to the station
by the data collection network through which the data in this
data file is received. This is the same station id that is included
in the name of the data file. (Note the absence of a "_FillValue"
attribute. Since the station identifier is required in order to
define a file, the station_id will never be empty.)
Type:
char
Dimensions:
sta_id_lgth
Attributes:
long_name "Data Network Station Identifier"
reference The document in which station ids are assigned. For
example, "NCDC TD-9767(??)".
Variable "handbook_5_station_id"
This variable contains the identifier assigned to the station
in NOAA Handbook 5.
Type:
char
Dimensions:
hand_5_lgth
Attributes:
long_name "Handbook 5 (SHEF) Station Identifier"
_FillValue FILL_CHAR (defined in netcdf.h)
reference "NOAA Handbook 5"
Variable "wmo_station_id"
This variable contains the identifier assigned to the station
by the World Meteorological Organization.
Type:
long
Dimensions:
Attributes:
long_name "Numeric WMO Station Identifier"
_FillValue FILL_LONG (defined in netcdf.h)
reference "Volume A of WMO Publication 9"
Variable "station_name"
This variable contains the name given to the station by the station's
owner.
Type:
char
Dimensions:
sta_nm_lgth
Attributes:
long_name "Station Name"
_FillValue FILL_CHAR (defined in netcdf.h)
reference A character string identifying the source of the name.
Usually the name of the owning agency, and(if available) the name
of the document containing that agency's master station list.
Variable "data_network"
This variable contains the 4-character code assigned to the data
collection network in the CDBS 2.0 Data Collection Network Codes
document. This is different than the 2-character network
code used as part of the data file's name. A 4-character code
is used here, while a 2-character code is used in the file name.
The reason for the shorter code in the file name is that the file
name only has room for a 2-character code, while the 4-character
codes used here are commonly recognized by the climate community.
(Note the absence of a "_FillValue" attribute. Since
the data network code is required in order to define a file, the
"data_network" variable will never be empty.)
Type:
char
Dimensions:
data_net_lgth
Attributes:
long_name "Data Collection Network Code"
reference "CDBS 2.0 Data Collection Network Codes"
Variable "state"
This variable contains the 2-character code assigned to the state
by the Federal Information Publication System. This is the same
as the state code used in the name of the data file. (Note the
absence of a "_FillValue" attribute. Since the state
code is required in order to define a file, the "state"
variable will never be empty.)
Type:
char
Dimensions:
state_cd_lgth
Attributes:
long_name "FIPS Alphabetic State Code (Postal Code)"
reference "FIPS Manual"
Variable "file_type"
This variable contains the 1-character code assigned to this data
file type by the CDBS Database Manager. For files containing Statistical
data, this character will always be "s". (Note the absence
of a "_FillValue" attribute. Since the file type is
required in order to define a file, the file_type will never be
empty.)
Type:
char
Dimensions:
Attributes:
long_name "Data File Type"
reference "NRCS CDBS Database Documentation"
Variable "lat"
This variable contains the station latitude. Within CDBS, North
latitudes are positive numbers and South latitudes are negative
numbers. All latitudes are listed in degrees, so a latitude of
35 15' 0" N would be listed as +35.25 degrees.
Type:
double
Dimensions:
Attributes:
long_name "Station Latitude"
_FillValue FILL_DOUBLE (defined in netcdf.h)
valid_range -90.0, 90.0
units preferred units are "degrees_north", but any of
the Unidata udunits synonyms for "degrees_north" are
acceptable
Variable "lon"
This variable contains the station longitude. Within CDBS, East
longitudes are positive numbers and West longitudes are negative
numbers. All longitudes are listed in degrees, so a longitude
of 120 30' 0" W would be listed as -120.5 degrees.
Type:
double
Dimensions:
Attributes:
long_name "Station Longitude"
_FillValue FILL_DOUBLE (defined in netcdf.h)
valid_range -180.0, 180.0
units preferred units are "degrees_east", but any of
the Unidata udunits synonyms for "degrees_east" are
acceptable
Variable "elev"
This variable contains the station elevation.
Type:
float
Dimensions:
Attributes:
long_name "Station Elevation"
_FillValue FILL_FLOAT (defined in netcdf.h)
units "feet"
VARIABLES DESCRIBING THE DATA
Each CDBS netCDF statistics file will have several variables that
describe the data sets stored in the file. They list the beginning
and ending dates of the source data on which each set of statistics
is based, the date that each statistical set was created, and
the information flags associated with the sets of source data
(as opposed to flags associated with each individual piece of
statistical data, which are stored in separate variables, listed
on following pages).
Variable "data_set_strt"
This variable contains the starting dates of the observed data
sets from which statistical values have been calculated. The dates
will be created by the Unidata udunits utInvCalendar() library
function (or created by any other function that produces the same
value for the same date). Note that the "units" attribute
includes the station's time offset from GMT.
Type:
double
Dimensions:
data_set The number of sets of source data
Attributes:
long_name "Start Date of Source Data"
units The character string "minutes since 1800-1-1 00:00
-time_zone_offset", where time_zone_offset
is the difference between the station's reporting time and Greenwich
Mean Time, listed as a 4-digit time. For example, a station located
in the Eastern Time Zone would have a time_zone_offset
of -05:00, and the "units" would be "days since
1800-1-1 00:00 -05:00".
Variable "data_set_end"
This variable contains the ending dates of the observed data sets
from which statistical values have been calculated. The dates
will be created by the Unidata udunits utInvCalendar() library
function (or created by any other function that produces the same
value for the same date). Note that the "units" attribute
includes the station's time offset from GMT.
Type:
double
Dimensions:
data_set The number of sets of source data
Attributes:
long_name "End Date of Source Data"
units The character string "minutes since 1800-1-1 00:00
-time_zone_offset", where time_zone_offset
is the difference between the station's reporting time and Greenwich
Mean Time, listed as a 4-digit time. For example, a station located
in the Eastern Time Zone would have a time_zone_offset
of -05:00, and the "units" would be "days since
1800-1-1 00:00 -05:00".
Variable "data_set_prep"
This variable contains the dates that the statistical values were
calculated. The dates will be created by the Unidata udunits utInvCalendar()
library function (or created by any other function that produces
the same value for the same date). Note that the "units"
attribute includes the station's time offset from GMT.
Type:
double
Dimensions:
data_set The number of sets of source data
Attributes:
long_name "Preparation Date of Statistical Values"
units The character string "minutes since 1800-1-1 00:00
-time_zone_offset", where time_zone_offset
is the difference between the station's reporting time and Greenwich
Mean Time, listed as a 4-digit time. For example, a station located
in the Eastern Time Zone would have a time_zone_offset
of -05:00, and the "units" would be "days since
1800-1-1 00:00 -05:00".
_FillValue FILL_DOUBLE (defined in netcdf.h)
Variable "data_set_fg"
This variable contains information flags associated with each
set of source data (note that other variables listed below contains
flags associated with each individual piece of statistical
information).
Type:
char
Dimensions:
data_set The number of sets of source data
tend_set_fg The number of flags associated with each set of source
data.
Attributes:
long_name "Flags for Sets of Source Data"
reference "CDBS 2.0 Central Tendency Flags"
_FillValue FILL_CHAR (defined in netcdf.h)
COORDINATE VARIABLES
The following coordinate variables are present in each CDBS 2.0
netCDF Statistics file:
Variable "yr"
This variable contains the day-of-year corresponding to the end
of a year. This variable is present primarily as a parallel to
variables "mo" and "day" below.
Type:
double
Dimensions:
yr
Attributes:
long_name "Date"
units "minute"
Variable "mo"
This variable contains the days of the year corresponding to the
end of each month of the year. The day-of-year will always be
calculated using the assumption that February 29 occurred during
the year. Note the absence of a "_FillValue" attribute.
Since there is a day for the end of each month, this variable
will not have any empty values.
Type:
double
Dimensions:
mo
Attributes:
long_name "Month of Year"
units "minute"
Variable "day"
This variable contains the day of the year. This coordinate variable
will always have an entry for February 29. Note the absence of
a "_FillValue" attribute. Since every day has a day
number, this variable will not have any empty values.
Type:
double
Dimensions:
day
Attributes:
long_name "Day of Year"
units "minute"
Variable "drtn"
This variable contains the data durations for which data exceedence
probability values are calculated.
Type:
double
Dimensions:
drtn
Attributes:
long_name "Data Reporting Interval"
units "minutes"
decimal_places 0
reference "CDBS 2.0 Duration Codes"
Variable "pblty"
This variable contains the probability levels for which data exceedence
probability values are calculated.
Type:
float
Dimensions:
pblty
Attributes:
long_name "Probability Level"
units "percent"
decimal_places 3
reference "CDBS 2.0 Probability Levels"
Variable "storm"
This variable contains the storm lengths for which expected precipitation
levels are calculated.
Type:
double
Dimensions:
storm
Attributes:
long_name "Storm Duration"
units "hour"
decimal_places 2
reference "CDBS 2.0 Storm Durations"
VARIABLES RELATED TO MAXIMUMS AND MINIMUMS OF RECORD
These variables hold the maximums and minimums of record for the
observed, derived, and interpreted data for a station. The maximums
and minimums cover a variety of time spans, and are accompanied
(in a separate variable) by the years in which the maximum or
minimum was recorded. There is an optional third variable, to
record any data flags that a data supplier may supply with the
data.
Variable "element[_depth-height-code]_duration_max"
This variable contains the maximum data value(s) on record for
an element. The element will be replaced by the 5-character
code identifying the element. The depth-height-code will
be replaced by one of the 1-character codes identifying either
the sensor's depth below ground or the sensor's height above ground.
The duration will be replaced by one of the duration codes
used in the CDBS 2.0 netCDF Statistics files (either "y"
for "year", "m" for "monthly", or
"d" for "daily). The variable will hold either
1 value (maximum ever recorded in a complete calendar year), 12
values (the maximum ever recorded in each of the 12 months), or
366 values (the maximum ever recorded in each of the 366 days).
Type:
float
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
Attributes:
long_name A character string of the format "maximum recorded
value(s) for duration element_name", where duration
will be replaced by either "a year's", or "monthly",
or "daily", depending on the duration, and element_name
will be replaced by the element description taken from the Elements
Used in CDBS 2.0 document. For example, the "long_name"
attribute of variable "prcp_d_max" would hold the string
"maximum recorded value(s) for daily precipitation - incremental".
element The 5-character code for the type of data whose maximum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
units One of the unit names used by the Unidata udunits package.
For example, element "prcp" is measured in units of
"inch", and element "rhum" is measured in
units of "percent".
decimal_places This is a number of type "short", holding
the precision of the data as it is measured by the sensor, listed
as the number of decimal places, and having default values taken
from the Elements Used in CDBS 2.0 document. Examples: element
"prcp" has a default decimal_places of 2 (meaning measurements
are accurate to the nearest 0.01 units), element "snwd"
has a default of 0 (meaning measurements are accurate to the nearest
whole unit), etc.
_FillValue FILL_FLOAT (defined in netcdf.h)
missing_value (-FILL_FLOAT)
last_update This is a number of type "double", and
holds the date of the most recent update to the data stored in
this variable, in the form of the udunits equivalent of the phrase
"nnn minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
Variable "element[_depth-height-code]_duration_max_yr"
This variable contains the year(s) that the maximum data value(s)
on record for an element were recorded. The element will
be replaced by the 5-character code identifying the element. The
depth-height-code will be replaced by one of the 1-character
codes identifying either the sensor's depth below ground or the
sensor's height above ground. The duration will be replaced
by one of the duration codes used in the CDBS 2.0 netCDF Statistics
files (either "y" for "year", "m"
for "monthly", or "d" for "daily).
Type:
double
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
Attributes:
long_name A character string of the format "year of maximum
recorded value(s) for duration element_name", where
duration will be replaced by either "a year's",
or "monthly", or "daily", depending on the
duration, and element_name will be replaced by the element
description taken from the Elements Used in CDBS 2.0 document.
For example, the "long_name" attribute of variable "prcp_d_max_yr"
would hold the string "year of maximum recorded value(s)
for daily precipitation - incremental".
element The 5-character code for the type of data whose maximum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
units "days since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
_FillValue FILL_DOUBLE (defined in netcdf.h)
Variable "element[_depth-height-code]_duration_max_fg"
This variable contains the flag characters associated with each
maximum data value on record for an element. This is an optional
variable, and is only used when the data supplier supplies data
flags along with the maximums of record. The element will
be replaced by the 5-character code identifying the element. The
depth-height-code will be replaced by one of the 1-character
codes identifying either the sensor's depth below ground or the
sensor's height above ground. The duration will be replaced
by one of the duration codes used in the CDBS 2.0 netCDF Statistics
files (either "y" for "year", "m"
for "monthly", or "d" for "daily).
Type:
char
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
fg_type The number of data flags associated with each
maximum data value. The type will be replaced by the 4-
or 5-character CDBS code for a data flagging system. See the CDBS
2.0 Data Flag System Codes document for a list of known flag systems.
Attributes:
long_name A character string of the format "flags associated
with maximum recorded value(s) for duration element_name",
where duration will be replaced by either "a year's",
or "monthly", or "daily", depending on the
duration, and element_name will be replaced by the element
description taken from the Elements Used in CDBS 2.0 document.
For example, the "long_name" attribute of variable "prcp_d_max_fg"
would hold the string "flags associated with maximum recorded
value(s) for daily precipitation - incremental".
fg_sys The 4- or 5-character code identifying the data flagging
system whose flags are being stored in this variable. This is
the same fg_sys code as the one incorporated into the name of
the variable's third dimension, and is repeated here both for
redundancy, and to eliminate the need for a program accessing
this data to have to know how to decode the information encoded
in a variable name.
element The 5-character code for the type of data whose maximum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
_FillValue FILL_CHAR (defined in netcdf.h).
Variable "element[_depth-height-code]_duration_min"
This variable contains the minimum data value(s) on record for
an element. The element will be replaced by the 5-character
code identifying the element. The depth-height-code will
be replaced by one of the 1-character codes identifying either
the sensor's depth below ground or the sensor's height above ground.
The duration will be replaced by one of the duration codes
used in the CDBS 2.0 netCDF Statistics files (either "y"
for "year", "m" for "monthly", or
"d" for "daily). The variable will hold either
1 value (minimum ever recorded in a complete calendar year), 12
values (the minimum ever recorded in each of the 12 months), or
366 values (the minimum ever recorded in each of the 366 days).
Type:
float
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
Attributes:
long_name A character string of the format "minimum recorded
value(s) for duration element_name", where duration
will be replaced by either "a year's", or "monthly",
or "daily", depending on the duration, and element_name
will be replaced by the element description taken from the Elements
Used in CDBS 2.0 document. For example, the "long_name"
attribute of variable "prcp_d_min" would hold the string
"minimum recorded value(s) for daily precipitation - incremental".
element The 5-character code for the type of data whose minimum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
units One of the unit names used by the Unidata udunits package.
For example, element "prcp" is measured in units of
"inch", and element "rhum" is measured in
units of "percent".
decimal_places This is a number of type "short", holding
the precision of the data as it is measured by the sensor, listed
as the number of decimal places, and having default values taken
from the Elements Used in CDBS 2.0 document. Examples: element
"prcp" has a default decimal_places of 2 (meaning measurements
are accurate to the nearest 0.01 units), element "snwd"
has a default of 0 (meaning measurements are accurate to the nearest
whole unit), etc.
_FillValue FILL_FLOAT (defined in netcdf.h)
missing_value (-FILL_FLOAT)
last_update This is a number of type "double", and
holds the date of the most recent update to the data stored in
this variable, in the form of the udunits equivalent of the phrase
"nnn minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
Variable "element[_depth-height-code]_duration_min_yr"
This variable contains the year(s) that the minimum data value(s)
on record for an element were recorded. The element will
be replaced by the 5-character code identifying the element. The
depth-height-code will be replaced by one of the 1-character
codes identifying either the sensor's depth below ground or the
sensor's height above ground. The duration will be replaced
by one of the duration codes used in the CDBS 2.0 netCDF Statistics
files (either "y" for "year", "m"
for "monthly", or "d" for "daily").
Type:
double
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
Attributes:
long_name A character string of the format "year of minimum
recorded value(s) for duration element_name", where
duration will be replaced by either "a year's",
or "monthly", or "daily", depending on the
duration, and element_name will be replaced by the element
description taken from the Elements Used in CDBS 2.0 document.
For example, the "long_name" attribute of variable "prcp_d_min_yr"
would hold the string "year of minimum recorded value(s)
for daily precipitation - incremental".
element The 5-character code for the type of data whose minimum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
units "days since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
_FillValue FILL_DOUBLE (defined in netcdf.h)
Variable "element[_depth-height-code]_duration_min_fg"
This variable contains the flag characters associated with each
minimum data value on record for an element. This is an optional
variable, and is only used when the data supplier supplies data
flags along with the minimums of record. The element will
be replaced by the 5-character code identifying the element. The
depth-height-code will be replaced by one of the 1-character
codes identifying either the sensor's depth below ground or the
sensor's height above ground. The duration will be replaced
by one of the duration codes used in the CDBS 2.0 netCDF Statistics
files (either "y" for "year", "m"
for "monthly", or "d" for "daily).
Type:
char
Dimensions:
data_set The number of sets of source data
duration_dimension
Either "yr", "mo", or "day"
fg_type The number of data associated with each minimum
data value. The type will be replaced by the 4- or 5-character
CDBS code for a data flagging system. See the CDBS 2.0 Data Flag
System Codes document for a list of known flag systems.
Attributes:
long_name A character string of the format "flags associated
with minimum recorded value(s) for duration element_name",
where duration will be replaced by either "a year's",
or "monthly", or "daily", depending on the
duration, and element_name will be replaced by the element
description taken from the Elements Used in CDBS 2.0 document.
For example, the "long_name" attribute of variable "prcp_d_min_fg"
would hold the string "flags associated with minimum recorded
value(s) for daily precipitation - incremental".
fg_sys The 4- or 5-character code identifying the data flagging
system whose flags are being stored in this variable. This is
the same fg_sys code as the one incorporated into the name of
the variable's third dimension, and is repeated here both for
redundancy, and to eliminate the need for a program accessing
this data to have to know how to decode the information encoded
in a variable name.
element The 5-character code for the type of data whose minimum(s)
are stored in this variable. This is the same element code as
the one incorporated into the name of the variable, and is repeated
here both for redundancy, and to eliminate the need for a program
accessing this data to have to know how to decode the information
encoded in a variable name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
See the CDBS 2.0 Duration Codes document for a complete list of
these codes.
_FillValue FILL_CHAR (defined in netcdf.h).
VARIABLES RELATED TO THE DATA'S PROBABILITIES OF EXCEEDENCE
These variables hold the values that data can be expected to exceed,
at different probability levels and over different time spans.
Variable "storm"
See the description of this variable in section COORDINATE VARIABLES"
above.
Variable "pblty"
See the description of this variable in section "COORDINATE
VARIABLES" above.
Variable "storm_p"
This variable contains amounts of precipitation that can be expected
at a station from storms of different lengths, at different confidence
levels (probabilities).
Type:
float
Dimensions:
data_set The number of sets of source data
storm The number of storm lengths known to CDBS 2.0. See the CDBS
2.0 Storm Durations document for the list of lengths.
pblty The number of probability levels known to CDBS 2.0. See
the CDBS 2.0 Probability Levels document for the list of probability
levels.
Attributes:
long_name "Expected precipitation from a storm"
element "prcp"
units "inch"
decimal_places 2
_FillValue FILL_FLOAT (defined in netcdf.h)
missing_value (-FILL_FLOAT)
last_update This is a number of type "double", and
holds the date of the most recent update to the data stored in
this variable, in the form of the udunits equivalent of the phrase
"nnn minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
update_units "minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
Variable "element[_depth-height-code]_duration_p"
This variable contains values that data of a specific type can
be expected to exceed, at different confidence levels (probabilities)
and over different spans of time. The element will be replaced
by the 5-character code identifying the element. The depth-height-code
will be replaced by one of the 1-character codes identifying either
the sensor's depth below ground or the sensor's height above ground.
The duration will be replaced by one of the duration codes
used in the CDBS 2.0 netCDF Statistics files (either "y"
for "year", "m" for "monthly", or
"d" for "daily).
Type:
float
Dimensions:
data_set The number of sets of source data
drtn The number of time spans (durations) known to CDBS 2.0.
See the CDBS 2.0 Duration Codes document for the list of durations.
duration Either "yr", or "mo", or
"day"
pblty The number of probability levels known to CDBS 2.0. See
the CDBS 2.0 Probability Levels document for the list of probability
levels.
Attributes:
long_name A character string of the format "Amount of element_name
expected to be exceeded during a duration", where
element_name is the element description taken from the
Elements Used in CDBS 2.0 document, and duration is either
"year", "month", or "day".
element The 5-character code for the type of data stored in this
variable. This is the same element code as the one incorporated
into the name of the variable, and is repeated here both for redundancy,
and to eliminate the need for a program accessing this data to
have to know how to decode the information encoded in a variable
name.
depth_height_code
(Optional attribute -- used only when the element has such a code)
The 1-character code identifying the height above ground or the
depth below ground at which the data is measured. See the documents
CDBS 2.0 Sensor Depth Codes and CDBS 2.0 Sensor Height Codes for
a list of the codes.
duration The 1-character code for the data duration. This is
the same duration code as the one incorporated into the name of
the variable, and is repeated here both for redundancy, and to
eliminate the need for a program accessing this data to have to
know how to decode the information encoded in a variable name.
units One of the unit names used by the Unidata udunits package.
For example, element "prcp" is measured in units of
"inch", and element "rhum" is measured in
units of "percent".
decimal_places This is a number of type "short", holding
the precision of the data as it is measured by the sensor, listed
as the number of decimal places, and having default values taken
from the Elements Used in CDBS 2.0 document. Examples: element
"prcp" has a default decimal_places of 2 (meaning measurements
are accurate to the nearest 0.01 units), element "snwd"
has a default of 0 (meaning measurements are accurate to the nearest
whole unit), etc.
last_update This is a number of type "double", and
holds the date of the most recent update to the data stored in
this variable, in the form of the udunits equivalent of the phrase
"nnn minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
update_units "minutes since 1800-1-1 00:00 time_zone_offset"
where time_zone_offset is the difference between the station's
reporting time and Greenwich Mean Time, listed as a 4-digit time.
_FillValue FILL_FLOAT (defined in netcdf.h)
missing_value (-FILL_FLOAT)
SAMPLE SET OF VARIABLES FOR MAXIMUMS AND MINIMUMS DATA
-- sample is for stream flow data
VARIABLE NAME: strm_y_max
VARIABLE TYPE: float
VARIABLE'S ATTRIBUTES:long_name="maximum recorded value(s) for
a year's stream flow"
element="strm"
duration="y"
units="feet3/second"
decimal_places=2
_Fillvalue=9.96e+36
missing_value=-9.96e+36
VARIABLE NAME: strm_y_max_yr
VARIABLE TYPE: double
VARIABLE'S ATTRIBUTES:
long_name="year
of maximum recorded value(s) for a
year's stream flow"
element="strm"
duration="y"
units="minutes since
1800-1-1 00:00 -07:00"
_Fillvalue=9.96e+36
VARIABLE NAME: strm_m_max
VARIABLE TYPE: float
VARIABLE'S ATTRIBUTES:
long_name="maximum recorded value(s) for
monthly stream flow"
element="strm"
duration="y"
units="feet3/second"
decimal_places=2
_Fillvalue=9.96e+36
January - December
missing_value=-9.96e+36
VARIABLE NAME: strm_m_max_yr
VARIABLE TYPE: short integer
VARIABLE'S ATTRIBUTES:
long_name="year
of maximum recorded value(s) for
a year's stream flow"
element="strm"
duration="y"
units="minutes since
1800-1-1 00:00 -07:00"
_Fillvalue=9.96e+36
January - December
VARIABLE NAME: strm_d_max
VARIABLE TYPE: float
VARIABLE'S ATTRIBUTES:
description="maximum stream flow in each day"
units="feet3/second"
decimal_places=2
366 values
VARIABLE NAME: strm_d_max_yr
VARIABLE TYPE: short integer
VARIABLE'S ATTRIBUTES:
description="year of maximum day's stream flow"
units="minutes since 1800-1-1 00:00 -07:00"
366 values
NOTE: THE "MINIMUMS" DATA FOR EACH ELEMENT HAS A
SET OF VARIABLES THAT CORRESPONDS TO THE SET OF "MAXIMUMS"
VARIABLES SHOWN ABOVE.