NuSDaS Interface Reference Manual
closes a data file.
/* 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)
symbol | Fortran | C |
type1 ... vtime2 | (see table above) | |
iostat | INTEGER, INTENT(OUT) | (not used) |
From type1 to vtime2, see section 'NuSDaS Data Identifier Dimensions'.
iostat
see following section, RETURN VALUE.
1 | Specified file is not opened. |
0 | Succeeded. |
-2 | Warning: requested data is not registered yet. |
-3 | Error: inconsistency between CNTL and DATA records. |
-4 | Error: array size too large. |
-5 | Error: array type mismatch. |
-6 | Error: too large value in RLE compression. |
-7 | Error: 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.
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.