6 integer nargs, iargc, n
7 character*256,
allocatable :: arg(:)
9 logical ncep, append_suffix
14 integer(i_kind) :: nobs_mass, nobs_wind
22 append_suffix = .false.
29 if (trim(arg(n)).eq.
'-ncep' ) ncep=.true.
30 if (trim(arg(n)).eq.
'-append_suffix') append_suffix=.true.
37 call read_conv_diag(fn, hdr, mass, wind, nobs_mass, nobs_wind, ncep)
47 100
format(
"Usage: ",/,/ &
48 " convert_and_split_conv_diag.x <options> <filename>",/,/ &
50 " -ncep : Read NCEP (or MERRA2) diag file (default: read GMAO w/ ioff)",/ &
51 " -append_suffix : add '.type.nc4' suffix instead of conforming to GMAO filename standard",/ &
54 " convert_and_split_conv_diag.x nc_4emily_nc4.diag_conv_ges.20161202_06z.nc4",/ &
56 " nc_4emily_nc4.diag_conv_uv_ges.20161202_06z.nc4",/ &
57 " nc_4emily_nc4.diag_conv_t_ges.20161202_06z.nc4",/ &
58 " nc_4emily_nc4.diag_conv_q_ges.20161202_06z.nc4",/ &
59 " nc_4emily_nc4.diag_conv_ps_ges.20161202_06z.nc4",/ &
program convert_and_split_conv_diag
subroutine, public open_conv_diag(fn, conv_header, ncep)
subroutine, public read_conv_diag(fn, conv_header, conv_mass, conv_wind, nobs_mass, nobs_wind, ncep)
subroutine, public write_split_conv_diag_nc(infn, conv_header, conv_mass, conv_wind, append_suffix)