NuSDaS Interface Reference Manual

NUSDAS_ONEFILE_CLOSE

closes a data file.

SYNOPSIS

/* C */
    int
nusdas_onefile_close(type1, type2, type3, btime, memb, vtime1)

    int
nusdas_onefile_close2(type1, type2, type3, btime, memb, vtime1, vtime2)

! Fortran
SUBROUTINE NUSDAS_ONEFILE_CLOSE(type1, type2, type3, btime, memb, vtime1, &
  iostat)

SUBROUTINE NUSDAS_ONEFILE_CLOSE2(type1, type2, type3, btime, memb, vtime1, &
  vtime2, iostat)
symbolFortranC
type1 ... vtime2(see table above)
iostatINTEGER, INTENT(OUT)(not used)

ARGUMENTS

From type1 to vtime2, see section 'NuSDaS Data Identifier Dimensions'.

iostat

see following section, RETURN VALUE.

RETURN VALUE

1Specified file is not opened.
0Succeeded.
-2Warning: requested data is not registered yet.
-3Error: inconsistency between CNTL and DATA records.
-4Error: array size too large.
-5Error: array type mismatch.
-6Error: too large value in RLE compression.
-7Error: malformed CNTL or INDX record.
-10 to -99(see error code table)

see also Error Code of NuSDaS library for return code from -10 to -99.

DESCRIPTION

NUSDAS_ONEFILE_CLOSE closes one data file specified with type1 ... valid2. It should be called before the end of the calling program which have called NUSDAS_WRITE/NUSDAS_WRITE series and have cleared N_IO_W_FCLOSE flag using NUSDAS_IOCNTL.