grid_tools  1.6.0
 All Data Structures Files Functions Variables
shave_nc.F90 File Reference

Utility to shave down domains of FV3 files. More...

Go to the source code of this file.

Functions/Subroutines

subroutine check (status)
 Handle netCDF return codes. More...
 
program shave_nc
 The grid driver step in FV3 preprocessing generates a grid_tile file and an oro_tile file for the regional domain. More...
 

Detailed Description

Utility to shave down domains of FV3 files.

Author
Tom Black

Definition in file shave_nc.F90.

Function/Subroutine Documentation

subroutine shave_nc::check ( integer, intent(in)  status)

Handle netCDF return codes.

Parameters
statuserror code
Author
Tom Black

Definition at line 266 of file shave_nc.F90.

program shave_nc ( )

The grid driver step in FV3 preprocessing generates a grid_tile file and an oro_tile file for the regional domain.

The final size of these files' domains must include the halo surrounding the computational domain. However the original size of these domains must exceed the domain size plus haloes so that the topography filtering program can produce correct values over the halo region. Then before the files go into the chgres job their domains must be shaved down to only the computational interior and the halo which is what this code does.

Returns
0 for success, error code otherwise.
Author
Tom Black

Definition at line 17 of file shave_nc.F90.

References check().