orog_mask_tools
1.13.0
|
Write out data in netcdf format. More...
Go to the source code of this file.
Functions/Subroutines | |
subroutine | netcdf_err (err, string) |
Check NetCDF error code and output the error message. More... | |
subroutine | read_mask (merge_file, slm, land_frac, lake_frac, im, jm) |
Read the land mask file. More... | |
subroutine | write_mask_netcdf (im, jm, slm, land_frac, ntiles, tile, geolon, geolat) |
Write the land mask file. More... | |
subroutine | write_netcdf (im, jm, slm, land_frac, oro, orf, hprime, ntiles, tile, geolon, geolat, lon, lat) |
Write out orography file in netcdf format. More... | |
Write out data in netcdf format.
Definition in file netcdf_io.F90.
subroutine netcdf_err | ( | integer, intent(in) | err, |
character(len=*), intent(in) | string | ||
) |
Check NetCDF error code and output the error message.
[in] | err | NetCDF error code |
[in] | string | The NetCDF error message |
Definition at line 218 of file netcdf_io.F90.
Referenced by __mtnlm7_oclsm.f__(), gsl_oro_data_lg_scale::calc_gsl_oro_data_lg_scale(), gsl_oro_data_sm_scale::calc_gsl_oro_data_sm_scale(), read_g(), read_mask(), tersub(), write_mask_netcdf(), and write_netcdf().
subroutine read_mask | ( | character(len=*), intent(in) | merge_file, |
real, dimension(im,jm), intent(out) | slm, | ||
real, dimension(im,jm), intent(out) | land_frac, | ||
real, dimension(im,jm), intent(out) | lake_frac, | ||
integer, intent(in) | im, | ||
integer, intent(in) | jm | ||
) |
Read the land mask file.
[in] | merge_file | path |
[in] | slm | Land-sea mask. |
[in] | land_frac | Land fraction. |
[in] | lake_frac | Lake fraction |
[in] | im | 'i' dimension of a model grid tile. |
[in] | jm | 'j' dimension of a model grid tile. |
Definition at line 334 of file netcdf_io.F90.
References lake_frac(), and netcdf_err().
Referenced by tersub().
subroutine write_mask_netcdf | ( | integer, intent(in) | im, |
integer, intent(in) | jm, | ||
real, dimension(im,jm), intent(in) | slm, | ||
real, dimension(im,jm), intent(in) | land_frac, | ||
integer, intent(in) | ntiles, | ||
integer, intent(in) | tile, | ||
real, dimension(im,jm), intent(in) | geolon, | ||
real, dimension(im,jm), intent(in) | geolat | ||
) |
Write the land mask file.
[in] | im | 'i' dimension of a model grid tile. |
[in] | jm | 'j' dimension of a model grid tile. |
[in] | slm | Land-sea mask. |
[in] | land_frac | Land fraction. |
[in] | ntiles | Number of tiles to output. |
[in] | tile | Tile number to output. |
[in] | geolon | Longitude on the model grid tile. |
[in] | geolat | Latitude on the model grid tile. |
Definition at line 243 of file netcdf_io.F90.
References netcdf_err().
Referenced by tersub().
subroutine write_netcdf | ( | integer, intent(in) | im, |
integer, intent(in) | jm, | ||
real, dimension(im,jm), intent(in) | slm, | ||
real, dimension(im,jm), intent(in) | land_frac, | ||
real, dimension(im,jm), intent(in) | oro, | ||
real, dimension(im,jm), intent(in) | orf, | ||
real, dimension(im,jm,14), intent(in) | hprime, | ||
integer, intent(in) | ntiles, | ||
integer, intent(in) | tile, | ||
real, dimension(im,jm), intent(in) | geolon, | ||
real, dimension(im,jm), intent(in) | geolat, | ||
real, dimension(im), intent(in) | lon, | ||
real, dimension(jm), intent(in) | lat | ||
) |
Write out orography file in netcdf format.
[in] | im | 'i' dimension of a model grid tile. |
[in] | jm | 'j' dimension of a model grid tile. |
[in] | slm | Land-sea mask. |
[in] | land_frac | Land fraction. |
[in] | oro | Orography |
[in] | orf | Filtered orography. Currently the same as 'oro'. |
[in] | hprime | The gravity wave drag fields on the model grid tile. |
[in] | ntiles | Number of tiles to output. |
[in] | tile | Tile number to output. |
[in] | geolon | Longitude on the model grid tile. |
[in] | geolat | Latitude on the model grid tile. |
[in] | lon | Longitude of the first row of the model grid tile. |
[in] | lat | Latitude of the first column of the model grid tile. |
Definition at line 21 of file netcdf_io.F90.
References netcdf_err().
Referenced by tersub().