Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 

Next: , Previous: Variable Length Array, Up: Variable Length Array



5.6.1 Define a Variable Length Array (VLEN): NF90_DEF_VLEN

Use this function to define a variable length array type.

Usage

       function nf90_def_vlen(ncid, name, base_typeid, xtypeid)
         integer, intent(in) :: ncid
         character (len = *), intent(in) :: name
         integer, intent(in) :: base_typeid
         integer, intent(out) :: xtypeid
         integer :: nf90_def_vlen
NCID
The ncid of the file to create the VLEN type in.
NAME
A name for the VLEN type.
BASE_TYPEID
The typeid of the base type of the VLEN. For example, for a VLEN of shorts, the base type is NF90_SHORT. This can be a user defined type.
XTYPEP
The typeid of the new VLEN type will be set here.

Errors

NF90_NOERR
No error.
NF90_EMAXNAME
NF90_MAX_NAME exceeded.
NF90_ENAMEINUSE
Name is already in use.
NF90_EBADNAME
Attribute or variable name contains illegal characters.
NF90_EBADID
ncid invalid.
NF90_EBADGRPID
Group ID part of ncid was invalid.
NF90_EINVAL
Size is invalid.
NF90_ENOMEM
Out of memory.

Example


       
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690