9 character(len=*),
intent(in),
optional :: err
11 if (
present(err))
then 12 write(*,
"(A)")
" ** ERROR: " // err
16 write (*,
"(A)")
" nc_diag_cat v1.0" 17 write (*,
"(A)")
" NetCDF Diag File Concatenator" 18 write (*,
"(A)")
" Usage: " // trim(
prgm_name) //
" -o OUTPUT_FILE FILES..." 19 write (*,
"(A)")
" Concatenate the NetCDF files listed in FILES into OUTPUT_FILE." 20 write (*,
"(A)")
" At least 2 input files must be specified in order for this tool" 21 write (*,
"(A)")
" to run. The resulting file will be compressed." 38 call ncdc_usage(
"Invalid option - '-o' must be specified in the 1st argument.")
52 call ncdc_usage(
"Invalid first input file name.")
59 call ncdc_usage(
"Invalid second input file name.")
character(len=10000000) output_file
subroutine nc_diag_cat_process_args
integer(i_long) cli_arg_count
character(len=10000000) prgm_name
subroutine ncdc_usage(err)
character(len=10000000) dummy_arg
character(len=10000000) input_file