3 use netcdf
, only: nf90_get_var
25 integer,
intent(in) :: ncid, varid
26 real,
intent(out) :: values
27 integer,
dimension(:),
optional,
intent(in) :: start
28 integer,
intent(out),
optional:: ncerr
35 ncerr_not_opt = nf90_get_var(ncid, varid, values, start)
36 if (
present(ncerr))
then
39 call handle_err(
"nf95_get_var_FourByteReal", ncerr_not_opt, ncid, &
49 integer,
intent(in) :: ncid, varid
50 integer,
intent(out) :: values
51 integer,
dimension(:),
optional,
intent(in) :: start
52 integer,
intent(out),
optional:: ncerr
59 ncerr_not_opt = nf90_get_var(ncid, varid, values, start)
60 if (
present(ncerr))
then
63 call handle_err(
"nf95_get_var_FourByteInt", ncerr_not_opt, ncid, &
72 count_nc, stride, map,
ncerr)
74 integer,
intent(in) :: ncid, varid
75 real,
intent(out) :: values(:)
76 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
77 integer,
intent(out),
optional:: ncerr
84 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
86 if (
present(ncerr))
then
89 call handle_err(
"nf95_get_var_1D_FourByteReal", ncerr_not_opt, ncid, &
98 count_nc, stride, map,
ncerr)
100 integer,
intent(in) :: ncid, varid
101 integer,
intent(out) :: values(:)
102 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
103 integer,
intent(out),
optional:: ncerr
106 integer ncerr_not_opt
110 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
112 if (
present(ncerr))
then
113 ncerr = ncerr_not_opt
115 call handle_err(
"nf95_get_var_1D_FourByteInt", ncerr_not_opt, ncid, &
124 count_nc, stride, map,
ncerr)
126 use typesizes
, only: eightbytereal
128 integer,
intent(in) :: ncid, varid
129 real (kind = EightByteReal),
intent(out) :: values(:)
130 integer,
dimension(:),
optional,
intent(in):: start, count_nc, stride, map
131 integer,
intent(out),
optional:: ncerr
134 integer ncerr_not_opt
138 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
140 if (
present(ncerr))
then
141 ncerr = ncerr_not_opt
143 call handle_err(
"nf95_get_var_1D_eightByteReal", ncerr_not_opt, ncid, &
152 count_nc, stride, map,
ncerr)
154 integer,
intent(in) :: ncid, varid
155 real ,
intent(out) :: values(:, :)
156 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
157 integer,
intent(out),
optional:: ncerr
160 integer ncerr_not_opt
164 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
166 if (
present(ncerr))
then
167 ncerr = ncerr_not_opt
169 call handle_err(
"nf95_get_var_2D_FourByteReal", ncerr_not_opt, ncid, &
178 count_nc, stride, map,
ncerr)
180 use typesizes
, only: eightbytereal
182 integer,
intent(in) :: ncid, varid
183 real (kind = EightByteReal),
intent(out) :: values(:, :)
184 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
185 integer,
intent(out),
optional:: ncerr
188 integer ncerr_not_opt
192 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
194 if (
present(ncerr))
then
195 ncerr = ncerr_not_opt
197 call handle_err(
"nf95_get_var_2D_EightByteReal", ncerr_not_opt, ncid, &
206 count_nc, stride, map,
ncerr)
208 integer,
intent(in):: ncid, varid
209 integer,
intent(out):: values(:, :, :)
210 integer,
dimension(:),
optional,
intent(in):: start, count_nc, stride, map
211 integer,
intent(out),
optional:: ncerr
214 integer ncerr_not_opt
218 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
220 if (
present(ncerr))
then
221 ncerr = ncerr_not_opt
223 call handle_err(
"nf95_get_var_3D_FourByteInt", ncerr_not_opt, ncid, &
232 count_nc, stride, map,
ncerr)
234 integer,
intent(in) :: ncid, varid
235 real ,
intent(out) :: values(:, :, :)
236 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
237 integer,
intent(out),
optional:: ncerr
240 integer ncerr_not_opt
244 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
246 if (
present(ncerr))
then
247 ncerr = ncerr_not_opt
249 call handle_err(
"nf95_get_var_3D_FourByteReal", ncerr_not_opt, ncid, &
258 count_nc, stride, map,
ncerr)
260 use typesizes
, only: eightbytereal
262 integer,
intent(in) :: ncid, varid
263 real (kind = EightByteReal),
intent(out) :: values(:, :, :)
264 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
265 integer,
intent(out),
optional:: ncerr
268 integer ncerr_not_opt
272 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
274 if (
present(ncerr))
then
275 ncerr = ncerr_not_opt
277 call handle_err(
"nf95_get_var_3D_eightByteReal", ncerr_not_opt, ncid, &
286 count_nc, stride, map,
ncerr)
288 integer,
intent(in) :: ncid, varid
289 real ,
intent(out) :: values(:, :, :, :)
290 integer,
dimension(:),
optional,
intent(in) :: start, count_nc, stride, map
291 integer,
intent(out),
optional:: ncerr
294 integer ncerr_not_opt
298 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
300 if (
present(ncerr))
then
301 ncerr = ncerr_not_opt
303 call handle_err(
"nf95_get_var_4D_FourByteReal", ncerr_not_opt, ncid, &
312 count_nc, stride, map,
ncerr)
314 use typesizes
, only: eightbytereal
316 integer,
intent(in):: ncid, varid
317 real(kind = EightByteReal),
intent(out):: values(:, :, :, :)
318 integer,
dimension(:),
optional,
intent(in):: start, count_nc, stride, map
319 integer,
intent(out),
optional:: ncerr
322 integer ncerr_not_opt
326 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
328 if (
present(ncerr))
then
329 ncerr = ncerr_not_opt
331 call handle_err(
"nf95_get_var_4D_EightByteReal", ncerr_not_opt, ncid, &
340 count_nc, stride, map,
ncerr)
342 integer,
intent(in):: ncid, varid
343 real,
intent(out):: values(:, :, :, :, :)
344 integer,
dimension(:),
optional,
intent(in):: start, count_nc, stride, map
345 integer,
intent(out),
optional:: ncerr
348 integer ncerr_not_opt
352 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
354 if (
present(ncerr))
then
355 ncerr = ncerr_not_opt
357 call handle_err(
"nf95_get_var_5D_FourByteReal", ncerr_not_opt, ncid, &
366 count_nc, stride, map,
ncerr)
368 use typesizes
, only: eightbytereal
370 integer,
intent(in):: ncid, varid
371 real(kind = EightByteReal),
intent(out):: values(:, :, :, :, :)
372 integer,
dimension(:),
optional,
intent(in):: start, count_nc, stride, map
373 integer,
intent(out),
optional:: ncerr
376 integer ncerr_not_opt
380 ncerr_not_opt = nf90_get_var(ncid, varid, values, start, count_nc, &
382 if (
present(ncerr))
then
383 ncerr = ncerr_not_opt
385 call handle_err(
"nf95_get_var_5D_EightByteReal", ncerr_not_opt, ncid, &
subroutine handle_err(status)
subroutine nf95_get_var_3d_fourbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_3d_fourbyteint(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_fourbyteint(ncid, varid, values, start, ncerr)
subroutine nf95_get_var_5d_fourbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_fourbytereal(ncid, varid, values, start, ncerr)
subroutine nf95_get_var_2d_fourbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine ncerr(ncres, fnam)
subroutine nf95_get_var_5d_eightbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_4d_eightbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_3d_eightbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_2d_eightbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_1d_eightbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_1d_fourbyteint(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_1d_fourbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)
subroutine nf95_get_var_4d_fourbytereal(ncid, varid, values, start, count_nc, stride, map, ncerr)