Skip to content

Reverse the order of the projection coordinates of grids from [x, y] to [y, x] - #998

Merged
mauzey1 merged 3 commits into
mainfrom
996-dimension-order-in-example-6
Sep 10, 2026
Merged

Reverse the order of the projection coordinates of grids from [x, y] to [y, x]#998
mauzey1 merged 3 commits into
mainfrom
996-dimension-order-in-example-6

Conversation

@mauzey1

@mauzey1 mauzey1 commented Sep 8, 2026

Copy link
Copy Markdown
Collaborator

Resolves #996

Example from the file generated by examples/python/example_06_complex_grid.py.

        double latitude(y, x) ;
                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(y, x) ;
                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(y, x, vertices) ;
                vertices_latitude:units = "degrees_north" ;
                vertices_latitude:missing_value = 1.e+20 ;
                vertices_latitude:_FillValue = 1.e+20 ;
        double vertices_longitude(y, x, vertices) ;
                vertices_longitude:units = "degrees_east" ;
                vertices_longitude:missing_value = 1.e+20 ;
                vertices_longitude:_FillValue = 1.e+20 ;
        float hfls(time, y, x) ;
                hfls:standard_name = "surface_upward_latent_heat_flux" ;
                hfls:long_name = "Surface Upward Latent Heat Flux" ;
                hfls:units = "W m-2" ;
                hfls:cell_methods = "area: time: mean" ;
                hfls:missing_value = 1.e+20f ;
                hfls:_FillValue = 1.e+20f ;
                hfls:cell_measures = "area: areacella" ;
                hfls:grid_mapping = "lambert_conformal_conic" ;
                hfls:coordinates = "latitude longitude" ;

@mauzey1
mauzey1 requested review from durack1 and taylor13 September 8, 2026 23:33

@durack1 durack1 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.

@mauzey1 wonderful that output looks great - I am hoping these other examples, the other CRS targets also check out ok?

@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.

Looks good to me. Thank!
Karl

@mauzey1
mauzey1 merged commit e55e91e into main Sep 10, 2026
18 of 66 checks passed
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.

dimension order in example 6

3 participants