next up previous contents
Next: ncd_defvar_bygrid Up: Fortran: Module Interface ncdio_pioMod Previous: ncd_defdim   Contents

ncd_defvar_bynf


INTERFACE:

   subroutine ncd_defvar_bynf(ncid, varname, xtype, ndims, dimid, varid, &
                              long_name, units, cell_method, missing_value, fill_value, &
                              imissing_value, ifill_value, comment, flag_meanings, &
                              flag_values, nvalid_range )
DESCRIPTION:

Define a netcdf variable


ARGUMENTS:

     implicit none
     type(file_desc_t), intent(inout) :: ncid                  ! netcdf file id
     character(len=*) , intent(in)  :: varname                 ! variable name
     integer          , intent(in)  :: xtype                   ! external type
     integer          , intent(in)  :: ndims                   ! number of dims
     integer          , intent(inout) :: varid                 ! returned var id
     integer          , intent(in), optional :: dimid(:)       ! dimids
     character(len=*) , intent(in), optional :: long_name      ! attribute
     character(len=*) , intent(in), optional :: units          ! attribute
     character(len=*) , intent(in), optional :: cell_method    ! attribute
     character(len=*) , intent(in), optional :: comment        ! attribute
     character(len=*) , intent(in), optional :: flag_meanings(:) ! attribute
     real(r8)         , intent(in), optional :: missing_value  ! attribute for real
     real(r8)         , intent(in), optional :: fill_value     ! attribute for real
     integer          , intent(in), optional :: imissing_value ! attribute for int
     integer          , intent(in), optional :: ifill_value    ! attribute for int
     integer          , intent(in), optional :: flag_values(:)  ! attribute for int
     integer          , intent(in), optional :: nvalid_range(2)  ! attribute for int
REVISION HISTORY:
LOCAL VARIABLES:




Erik Kluzek 2011-06-15