orog_mask_tools  1.5.0
 All Data Structures Files Functions Variables
netcdf_io.F90 File Reference

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 write_netcdf (im, jm, slm, land_frac, oro, orf, hprime, ntiles, tile, geolon, geolat, lon, lat)
 Write out orography file in netcdf format. More...
 

Detailed Description

Write out data in netcdf format.

Author
Jordan Alpert NOAA/EMC

Definition in file netcdf_io.F90.

Function/Subroutine Documentation

subroutine netcdf_err ( integer, intent(in)  err,
character(len=*), intent(in)  string 
)

Check NetCDF error code and output the error message.

Parameters
[in]errNetCDF error code
[in]stringThe NetCDF error message
Author
Jordan Alpert NOAA/EMC

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(), tersub(), and write_netcdf().

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.

Parameters
[in]im'i' dimension of a model grid tile.
[in]jm'j' dimension of a model grid tile.
[in]slmLand-sea mask.
[in]land_fracLand fraction.
[in]oroOrography
[in]orfFiltered orography. Currently the same as 'oro'.
[in]hprimeThe gravity wave drag fields on the model grid tile.
[in]ntilesNumber of tiles to output.
[in]tileTile number to output.
[in]geolonLongitude on the model grid tile.
[in]geolatLatitude on the model grid tile.
[in]lonLongitude of the first row of the model grid tile.
[in]latLatitude of the first column of the model grid tile.
Author
Jordan Alpert NOAA/EMC GFDL Programmer

Definition at line 21 of file netcdf_io.F90.

References netcdf_err().

Referenced by tersub().