Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

'plotgrids_var.f90 error' with 'plotgrids_new.ncl'

Liquy

New member
Hi, all:
I got an error when I was drawing domains with the file 'plotgrids_new.ncl' .
I have plotgrids_new.ncl in /fs2/home/sfhua/liqiuyang/WPS/util, I have namelist.wps in /fs2/home/sfhua/liqiuyang/WPS.
when I run this script('plotgrids_new.ncl') under WPS directory, where my namelist.wps is located, (ncl util/plotgrids_new.ncl)
it says 'At line 66 of file plotgrids_var.f90 (unit = 10, file = 'namelist.wps')
Fortran runtime error: Invalid string input in item 0
',


I can't find this file('plotgrids_var.f90'), so I don't know what's wrong.
This is my plotgrids_new.ncl:
load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"

begin
;

; Check the version of NCL
version = systemfunc("ncl -V")
if(version.lt.6.2) then
print("You need NCL V6.2 or later to run this script. Try running plotgrids.ncl. Stopping now...")
return
end if

; We generate plots, but what kind do we prefer?
type = "x11"
; type = "pdf"
; type = "ps"
; type = "ncgm"
wks = gsn_open_wks(type,"wps_show_dom")

; read the following namelist file
filename = "namelist.wps"

; Set the colors to be used
colors = (/"white","black","White","ForestGreen","DeepSkyBlue","Red","Blue"/)
gsn_define_colormap(wks, colors)


; Set some map information ; line and text information
mpres = True
mpres@mpFillOn = True
mpres@mpFillColors = (/"background","DeepSkyBlue","ForestGreen","DeepSkyBlue", "transparent"/)
…………
…………

This is my namelist.wps:
&share
wrf_core = 'ARW'
max_dom = 2
start_date = '2025-09-19_00:00:00', '2025-09-19_00:00:00'
end_date = '2025-09-19_18:00:00', '2025-09-19_18:00:00'
interval_seconds = 21600,
io_form_geogrid = 2
debug_level = 0
/

&geogrid
parent_id = 1, 1
parent_grid_ratio = 1, 5
i_parent_start = 1, 184
j_parent_start = 1, 25
e_we = 334, 401
e_sn = 239, 426
geog_data_res = 'modis_30s_withlake+gmted2010_30s',''modis_30s_withlake+gmted2010_30s', 'topo_3s+glc3s'
dx = 5000
dy = 5000
map_proj = 'lambert'
ref_lat = 46.11
ref_lon = 83.493
truelat1 = 46.74
truelat2 = 46.74
pole_lat = 90
pole_lon = 0
stand_lon = 83.493
geog_data_path = '/fs2/software/WRFDATA/4.x/geog/'
/

&ungrib
out_format = 'WPS'
prefix = 'FNL'
/

&metgrid
fg_name = 'FNL'
io_form_metgrid = 2
opt_metgrid_tbl_path = './metgrid'
/
 

Attachments

  • namelist.wps
    1.1 KB · Views: 0
  • plotgrids_new.txt
    7.4 KB · Views: 0
Just a quick check to make sure that:
(1) you have namelist.wps in your WPS directory? and you have WPS/util?
(2) you can run other NCL scripts? --- this is to make sure your NCL is installed correctly
 
Please delete the following two lines:
pole_lat = 90
pole_lon = 0

Then try again. Let me know if you still have the same problem.
 
Just a quick check to make sure that:
(1) you have namelist.wps in your WPS directory? and you have WPS/util?
(2) you can run other NCL scripts? --- this is to make sure your NCL is installed correctly
Yes.
I have namelist.wps in my WPS directory, and I have WPS/util.
I can run other NCL scripts.
 
Top