Set attributes for a NetCDF variable.


INTERFACE:

    integer function set_attributes(ncid,id,                         &
                                    units,long_name,                 &
                                    valid_min,valid_max,valid_range, &
                                    scale_factor,add_offset,         &
                                    FillValue,missing_value,         &
                                    C_format,FORTRAN_format)
DESCRIPTION:

This routine is used to set a number of attributes for variables. The routine makes heavy use of the optional keyword. The list of recognized keywords is very easy to extend. We have included a sub-set of the COARDS conventions.


USES:

    IMPLICIT NONE
INPUT PARAMETERS:
    integer, intent(in)                 :: ncid,id
    character(len=*), optional          :: units,long_name
    REALTYPE, optional                  :: valid_min,valid_max
    REALTYPE, optional                  :: valid_range(2)
    REALTYPE, optional                  :: scale_factor,add_offset
    REALTYPE, optional                  :: FillValue,missing_value
    character(len=*), optional          :: C_format,FORTRAN_format
REVISION HISTORY:
    Original author(s): Karsten Bolding & Hans Burchard
    See ncdfout module
LOCAL VARIABLES:
    integer                   :: len,iret
    REAL_4B                   :: vals(2)



Karsten Bolding 2012-01-24