Site Parameters: Spatial netCDF File


Site parameters can be stored in either a netCDF file, or a text-format site.100 file. A spatial netCDF file contains a collection of sites, in which each site is identified by latitude, longitude and ID number. This netCDF file can be produced when you use the CopySoil, CopySite, and other utilties that create site files.

This spatial netCDF file uses the netCDF version 4 data types, and variables are compressed. The format of the file is:

netcdf sites {

    dimensions:
        record = UNLIMITED ; // (0 currently)
        count = 323 ;        // varies according to DayCent5 or Century5

    variables:
        float lat(record) ;
            lat:long_name = "latitude of center of cell" ;
            lat:standard_name = "latitude" ;
            lat:units = "degrees_north" ;
            lat:valid_min = -90.f ;
            lat:valid_max = 90.f ;
        float lon(record) ;
            lon:long_name = "longitude of center of cell" ;
            lon:standard_name = "longitude" ;
            lon:units = "degrees_east" ;
            lon:valid_min = -180.f ;
            lon:valid_max = 180.f ;
        uint id(record) ;
            id:long_name = "site parameter identifier" ;
            id:_FillValue = 4294967295U ;
        byte siteType(record) ;
            siteType:long_name = "site type: 1=crop, 2=grass, 3=tree, 4=savanna" ;
            siteType:_FillValue = 0b ;
        string name(record) ;
            name:long_name = "site name" ;
            name:_Encoding = "ASCII" ;
        string description(record) ;
            description:long_name = "site description" ;
            description:_Encoding = "ASCII" ;
        float values(record, count) ;
            values:long_name = "site parameter values" ;
            values:_FillValue = -9999.f ;
        string names(count) ;
            names:long_name = "names of site parameters" ;
            names:_Encoding = "ASCII" ;

    // global attributes:
        :SetType = 1b ;
        :FileType = 7b ;
        :title = "Century5 site parameters" ;
        :institution = " " ;
        :contact = " " ;
        :copyright = " " ;
        :conventions = "CF-1.0" ;
        :references = " " ;
        :source = " " ;
        :comment = " " ;
        string :history = "" ;

    data:
}

See Also

site.100 file
Site netCDF file
Site Parameters
Utilities
ID Numbers in Model Configuration