FV3 Bundle
ut_ncmass.F90
Go to the documentation of this file.
1 program ut_ncrad
2 
3 use ncd_kinds, only : i_kind
6 
9 
10 implicit none
11 character(len=*), parameter :: myname='ut_NCmass'
12 
13 integer(i_kind) iarg, argc, iargc
14 integer(i_kind) ier,icnt,nobs
15 character(len=255) :: ncfname
16 
17 type(diag_conv_header) :: conv_header
18 type(diag_conv_mass) ,pointer :: conv_mass(:)
19 type(diag_raob_header) :: raob_header
20 type(diag_raob_mass) ,pointer :: raob_mass(:)
21 
22 argc = iargc()
23 if ( argc < 1 ) then
24 endif
25 
26 iarg = 1
27 call getarg ( iarg, ncfname )
28 print *, myname, ': Input file: ', trim(ncfname)
29 
30 call read_conv_diag_nc_header(ncfname,conv_header,nobs)
31 allocate(conv_mass(nobs))
32 call read_conv_diag_nc_mass(ncfname,conv_header,conv_mass)
33 print*, myname, ': Found this many observations: ', nobs
34 print*, myname, ': Date of input file: ', conv_header%date
35 deallocate(conv_mass)
36 
37 call read_raob_diag_nc_header(ncfname,raob_header)
38 allocate(raob_mass(raob_header%n_Observations_Mass))
39 call read_raob_diag_nc_mass(ncfname,raob_header,raob_mass,ier)
40 print*, myname, ': Found this many RAOB observations: ', raob_header%n_Observations_Mass
41 print*, myname, ': Date of input RAOB file: ', raob_header%date
42 print*, myname, ': Size of type holding RAOB: ', size(raob_mass)
43 deallocate(raob_mass)
44 
45 end program ut_ncrad
subroutine, public read_conv_diag_nc_header(infn, conv_header, nobs)
integer, parameter, public i_kind
Definition: ncd_kinds.F90:71
program ut_ncrad
Definition: ut_ncmass.F90:1
subroutine, public read_raob_diag_nc_mass(infn, raob_header, raob_mass, ierr)
subroutine, public read_conv_diag_nc_mass(infn, conv_header, conv_mass)
subroutine, public read_raob_diag_nc_header(infn, raob_header)