6 use netcdf,
only: nf90_open, nf90_inquire_dimension, nf90_close, &
7 nf90_max_name, nf90_nowrite
18 integer(i_long) :: tmp_dim_size, i
19 character(len=NF90_MAX_NAME) :: tmp_dim_name
20 integer(i_long),
dimension(:),
allocatable :: unlim_dims
36 write (*,
"(A, I0)")
"Number of unlimited dimensions: ",
num_unlims 43 tmp_dim_name, tmp_dim_size))
44 write (*,
"(A, I0, A, I0, A)")
" => Unlimited dimension | ID: ", unlim_dims(i),
" | Size: ", tmp_dim_size, &
45 " | Name = " // trim(tmp_dim_name)
48 deallocate(unlim_dims)
integer(c_int) function pf_nf90_inq_unlimdims(ncid, num_unlim_dims, unlim_dims)
program test_nc_unlimdims
integer, parameter, public i_long
integer(i_long) cli_arg_count
character(len=10000000) prgm_name
subroutine ncdc_error(err)
integer(i_long) ncid_input
subroutine ncdc_info(ifo)
subroutine ncdc_check(status)
character(len=10000000) input_file
integer(i_long) num_unlims