Skip to content

Add examples that use the 'site' dimension - #1000

Open
mauzey1 wants to merge 2 commits into
mainfrom
997-site-example
Open

Add examples that use the 'site' dimension#1000
mauzey1 wants to merge 2 commits into
mainfrom
997-site-example

Conversation

@mauzey1

@mauzey1 mauzey1 commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Resolves #997

Adds Python, C, and Fortran examples that create datasets with 'site' as a dimension. Below is an excerpt from a file generated by one of the examples.

dimensions:
        time = UNLIMITED ; // (2 currently)
        site = 126 ;
        bnds = 2 ;
        vertices = 2 ;
variables:
        double time(time) ;
                time:bounds = "time_bnds" ;
                time:units = "days since 1979-01-01" ;
                time:calendar = "360_day" ;
                time:axis = "T" ;
                time:long_name = "Time Points" ;
                time:standard_name = "time" ;
        double time_bnds(time, bnds) ;
        int site(site) ;
                site:long_name = "site index" ;
        double latitude(site) ;
                latitude:standard_name = "latitude" ;
                latitude:long_name = "latitude" ;
                latitude:units = "degrees_north" ;
                latitude:missing_value = 1.e+20 ;
                latitude:_FillValue = 1.e+20 ;
                latitude:bounds = "vertices_latitude" ;
        double longitude(site) ;
                longitude:standard_name = "longitude" ;
                longitude:long_name = "longitude" ;
                longitude:units = "degrees_east" ;
                longitude:missing_value = 1.e+20 ;
                longitude:_FillValue = 1.e+20 ;
                longitude:bounds = "vertices_longitude" ;
        double vertices_latitude(site, vertices) ;
                vertices_latitude:units = "degrees_north" ;
                vertices_latitude:missing_value = 1.e+20 ;
                vertices_latitude:_FillValue = 1.e+20 ;
        double vertices_longitude(site, vertices) ;
                vertices_longitude:units = "degrees_east" ;
                vertices_longitude:missing_value = 1.e+20 ;
                vertices_longitude:_FillValue = 1.e+20 ;
        double height ;
                height:units = "m" ;
                height:axis = "Z" ;
                height:positive = "up" ;
                height:long_name = "height" ;
                height:standard_name = "height" ;
        float tas(time, site) ;
                tas:standard_name = "air_temperature" ;
                tas:long_name = "Near-Surface Air Temperature" ;
                tas:units = "K" ;
                tas:cell_methods = "area: point time: point" ;
                tas:history = "2026-09-11T22:53:16Z altered by CMOR: Treated scalar dimension: \'height\'." ;
                tas:coordinates = "height latitude longitude" ;
                tas:missing_value = 1.e+20f ;
                tas:_FillValue = 1.e+20f ;

@mauzey1
mauzey1 requested review from durack1 and taylor13 September 11, 2026 23:05

@taylor13 taylor13 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The output file produced by this example here looks perfect, and I didn't see any issues with the coding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Additional CMOR example (for "site" data)

2 participants