Hello,
I am trying to use WRF utility, plotfmt_nc.ncl script to read output of ungrib..
Command: ncl plotfmt_nc.ncl 'inputFILE="FILE:2018-05-16_06"'
Error:
(0) VAR = missing
fatal:file (inFILE) isn't defined
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 50 in file plotfmt_nc.ncl (consider X11/Xming open in background)
I dont understand which variable and how do I introduce variable in command line.. All the available source have mention above syntax to run the file...
Thanks in advance..
Visualize Ungrib output using Plotfmt.ncl
Re: Visualize Ungrib output using Plotfmt.ncl
Please run the script plotfmt.ncl. The command should be like:
ncl plotfmt.ncl 'filename="GFS:2019-06-10_06.new"'
Note that GFS:2019-06-10_06.new must exist in the directory where plotfmt.ncl is located.
ncl plotfmt.ncl 'filename="GFS:2019-06-10_06.new"'
Note that GFS:2019-06-10_06.new must exist in the directory where plotfmt.ncl is located.
WRF Help Desk
Re: Visualize Ungrib output using Plotfmt.ncl
Here is a list of my WPS directory, indicating that I have the output from a GFS file.
This file is the output from the ungrib program.
To view this file, use the plotfmt.ncl script that is in the util directory. Be careful to use the double and single quotes correctly:
Here is the first frame:

To use the plotfmt_nc.ncl script, you need to first convert the intermediate format data into netcdf. You are trying to use the wrong ncl script with the intermediate data.
Code: Select all
> ls -ls FILE:2018-06-07_12
197124 -rw-r--r-- 1 root root 194463544 May 8 14:57 FILE:2018-06-07_12
To view this file, use the plotfmt.ncl script that is in the util directory. Be careful to use the double and single quotes correctly:
Code: Select all
ncl util/plotfmt.ncl 'filename="FILE:2018-06-07_12"'

To use the plotfmt_nc.ncl script, you need to first convert the intermediate format data into netcdf. You are trying to use the wrong ncl script with the intermediate data.
Re: Visualize Ungrib output using Plotfmt.ncl
Sir,
thank you for response..
It still not solved, getting same error::
(ncl_stable) rami@abakus util$ ncl plotfmt_nc.ncl 'inputFILE="FILE:2018-05-16_12"' (command I gave) (below is whtz generate in terminal)
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
warning:_NclOpenFile: Can not open file <FILE:2018-05-16_12>; file format not supported or file is corrupted
warning:getfilevarnames: inFILE is not a valid file variable
(0) VAR = missing (Error)
fatal:file (inFILE) isn't defined
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 50 in file plotfmt_nc.ncl
Pls guide..
thank you for response..
It still not solved, getting same error::
(ncl_stable) rami@abakus util$ ncl plotfmt_nc.ncl 'inputFILE="FILE:2018-05-16_12"' (command I gave) (below is whtz generate in terminal)
Copyright (C) 1995-2019 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 6.6.2
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
warning:_NclOpenFile: Can not open file <FILE:2018-05-16_12>; file format not supported or file is corrupted
warning:getfilevarnames: inFILE is not a valid file variable
(0) VAR = missing (Error)
fatal:file (inFILE) isn't defined
fatal:["Execute.c":8637]:Execute: Error occurred at or near line 50 in file plotfmt_nc.ncl
Pls guide..
Re: Visualize Ungrib output using Plotfmt.ncl
You should run plotfmt.ncl, not plotfmt_nc.ncl.
WRF Help Desk