5 use netcdf,
only: nf90_noerr, nf90_strerror, nf90_inquire, &
12 integer(i_long),
intent(in) :: file_ncdr_id
15 call ncdr_error(
"The specified NCDR ID does not exist and/or is already closed!")
17 if (.NOT.
ncdr_files(file_ncdr_id)%file_open) &
18 call ncdr_error(
"The specified NCDR ID does not exist or is already closed! (Still in DB, but closed!)")
23 call ncdr_error(
"Current NCDR ID indicates that no files are open.")
28 integer(i_long),
intent(in) :: file_ncid
29 integer(i_long) :: nc_err
31 nc_err = nf90_inquire(file_ncid)
33 if (nc_err == nf90_ebadid) &
34 call ncdr_error(
"The specified NCID does not exist and/or is already closed!")
37 if (nc_err /= nf90_noerr) &
47 integer(i_long),
intent(in) :: file_ncid
48 integer(i_long) :: i, file_ind
66 character(len=*),
intent(in) :: file_name
67 integer(i_long) :: i, file_ind
85 integer(i_long),
intent ( in) :: status
87 if(status /= nf90_noerr)
then integer, parameter, public i_long
subroutine ncdr_nc_check(status)
integer(i_long) current_ncdr_id
type(ncdr_file), dimension(:), allocatable ncdr_files
subroutine ncdr_check_current_ncdr_id
subroutine ncdr_check_ncid(file_ncid)
subroutine ncdr_check_ncdr_id(file_ncdr_id)
integer(i_long) function nc_diag_read_get_index_from_filename(file_name)
integer(i_long) ncdr_file_count
subroutine ncdr_check_current_ncid
subroutine ncdr_error(err)
integer(i_long) function nc_diag_read_get_index_from_ncid(file_ncid)