The Intermediate Complexity Atmospheric Research model (ICAR)
A computationally efficient atmospheric model for downscaling.
 All Classes Files Functions Variables
Public Member Functions | List of all members
io_routines::io_read_attribute Interface Reference


Generic interface to the netcdf read_attribute_TYPE routines

More...

Public Member Functions

subroutine io_read_attribute_r (filename, att_name, att_value, var_name)
 

Read a real type attribute from a named file from an optional variable More...

 
subroutine io_read_attribute_i (filename, att_name, att_value, var_name)
 

Read a integer type attribute from a named file from an optional variable More...

 
subroutine io_read_attribute_c (filename, att_name, att_value, var_name)
 

Read a character type attribute from a named file from an optional variable More...

 

Detailed Description


Generic interface to the netcdf read_attribute_TYPE routines

Member Function/Subroutine Documentation

subroutine io_routines::io_read_attribute::io_read_attribute_c ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
character(len=*), intent(out)  att_value,
character(len=*), intent(in), optional  var_name 
)


Read a character type attribute from a named file from an optional variable

If a variable name is given reads the named attribute of that variable otherwise the named attribute is assumed to be a global attribute

Parameters
filenamenetcdf file to read the attribute from
att_namename of attribute to read
att_valueoutput value to be returned (character)
var_nameOPTIONAL name of variable to read attribute from
subroutine io_routines::io_read_attribute::io_read_attribute_i ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
integer, intent(out)  att_value,
character(len=*), intent(in), optional  var_name 
)


Read a integer type attribute from a named file from an optional variable

If a variable name is given reads the named attribute of that variable otherwise the named attribute is assumed to be a global attribute

Parameters
filenamenetcdf file to read the attribute from
att_namename of attribute to read
att_valueoutput value to be returned (integer)
var_nameOPTIONAL name of variable to read attribute from
subroutine io_routines::io_read_attribute::io_read_attribute_r ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
real*4, intent(out)  att_value,
character(len=*), intent(in), optional  var_name 
)


Read a real type attribute from a named file from an optional variable

If a variable name is given reads the named attribute of that variable otherwise the named attribute is assumed to be a global attribute

Parameters
filenamenetcdf file to read the attribute from
att_namename of attribute to read
att_valueoutput value to be returned (real*4)
var_nameOPTIONAL name of variable to read attribute from

The documentation for this interface was generated from the following file: