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_add_attribute Interface Reference


Generic interface to the netcdf add_attribute_TYPE routines

More...

Public Member Functions

subroutine io_add_attribute_r (filename, att_name, att_value, varname)
 

Write a real type attribute to a named file for an optional variable More...

 
subroutine io_add_attribute_i (filename, att_name, att_value, varname)
 

Write an integer type attribute to a named file for an optional variable More...

 
subroutine io_add_attribute_c (filename, att_name, att_value, varname)
 

Write an character type attribute to a named file for an optional variable More...

 

Detailed Description


Generic interface to the netcdf add_attribute_TYPE routines

Member Function/Subroutine Documentation

subroutine io_routines::io_add_attribute::io_add_attribute_c ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
character(len=*), intent(in)  att_value,
character(len=*), intent(in), optional  varname 
)


Write an character type attribute to a named file for an optional variable

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

Parameters
filenamenetcdf file to write the attribute to
att_namename of attribute to write
att_valueoutput value to be written (character)
var_nameOPTIONAL name of variable to write attribute to
subroutine io_routines::io_add_attribute::io_add_attribute_i ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
integer, intent(in)  att_value,
character(len=*), intent(in), optional  varname 
)


Write an integer type attribute to a named file for an optional variable

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

Parameters
filenamenetcdf file to write the attribute to
att_namename of attribute to write
att_valueoutput value to be written (integer)
var_nameOPTIONAL name of variable to write attribute to
subroutine io_routines::io_add_attribute::io_add_attribute_r ( character(len=*), intent(in)  filename,
character(len=*), intent(in)  att_name,
real*4, intent(in)  att_value,
character(len=*), intent(in), optional  varname 
)


Write a real type attribute to a named file for an optional variable

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

Parameters
filenamenetcdf file to write the attribute to
att_namename of attribute to write
att_valueoutput value to be written (real*4)
var_nameOPTIONAL name of variable to write attribute to

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