NCL Users,
I've created a ncl script that should loop through multiple wrfout.nc files
extracting and plotting variables of interest. Everything works so far until
I reach this section where I receive an error message:
dims = getfilevardims(f,"slp")
slp = f->slp(:,:,:)
slpN = slp( 0 , : , : )
; slp = wrf_user_getvar(X,slp,TimeChar)
opts = res
opts_at_cnFillOn = True
opts_at_gsnSpreadColorEnd = -3
opts_at_cnLineColor = "White"
opts_at_cnHighLabelsOn = True
opts_at_cnLowLabelsOn = True
opts_at_ContourParameters = (/ 980., 1040., 4. /)
opts_at_cnLineLabelBackgroundColor = -1
opts_at_gsnContourLineThicknessesScale = 2.0
contour_psl = wrf_contour(f,wks,slpN,opts)
delete(opts)
; wrf_smooth_2d( slp, 3 ) ; smooth slp
plot = wrf_map_overlays(f,wks,(/contour_psl/),pltres,mpres)
fatal:Dimension size of attribute and right-hand side of assignment do not
match
fatal:Execute: Error occurred at or near line 1067 in file ../WRFUserARW.ncl
fatal:Execute: Error occurred at or near line 141 in file wrf_field_var.ncl
The NCL script output is as follows:
Copyright (C) 1995-2007 - All Rights Reserved
University Corporation for Atmospheric Research
NCAR Command Language Version 5.0.0
The use of this software is governed by a License Agreement.
See http://www.ncl.ucar.edu/ for more details.
Variable: files
Type: string
Total Size: 712 bytes
89 values
Number of Dimensions: 1
Dimensions and sizes: [89]
Coordinates:
(0) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_01.nc
(1) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_02.nc
(2) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_03.nc
(3) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_04.nc
(4) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_05.nc
(5) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_06.nc
(6) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_07.nc
(7) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_08.nc
(8) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_09.nc
(9) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_10.nc
(10) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_11.nc
(11) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_12.nc
(12) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_13.nc
(13) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_14.nc
(14) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_15.nc
(15) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_16.nc
(16) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_17.nc
(17) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_18.nc
(18) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_19.nc
(19) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_20.nc
(20) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_21.nc
(21) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_22.nc
(22) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_23.nc
(23) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_24.nc
(24) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_25.nc
(25) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_26.nc
(26) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_27.nc
(27) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_28.nc
(28) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_01.nc
(29) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_02.nc
(30) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_03.nc
(31) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_04.nc
(32) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_05.nc
(33) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_06.nc
(34) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_07.nc
(35) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_08.nc
(36) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_09.nc
(37) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_10.nc
(38) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_11.nc
(39) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_12.nc
(40) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_13.nc
(41) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_14.nc
(42) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_15.nc
(43) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_16.nc
(44) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_17.nc
(45) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_18.nc
(46) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_19.nc
(47) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_20.nc
(48) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_21.nc
(49) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_22.nc
(50) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_23.nc
(51) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_24.nc
(52) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_25.nc
(53) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_26.nc
(54) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_27.nc
(55) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_28.nc
(56) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_29.nc
(57) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_30.nc
(58) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_03_31.nc
(59) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_01.nc
(60) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_02.nc
(61) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_03.nc
(62) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_04.nc
(63) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_05.nc
(64) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_06.nc
(65) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_07.nc
(66) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_08.nc
(67) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_09.nc
(68) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_10.nc
(69) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_11.nc
(70) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_12.nc
(71) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_13.nc
(72) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_14.nc
(73) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_15.nc
(74) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_16.nc
(75) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_17.nc
(76) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_18.nc
(77) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_19.nc
(78) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_20.nc
(79) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_21.nc
(80) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_22.nc
(81) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_23.nc
(82) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_24.nc
(83) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_25.nc
(84) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_26.nc
(85) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_27.nc
(86) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_28.nc
(87) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_29.nc
(88) /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_04_30.nc
Variable: nfiles
Type: integer
Total Size: 4 bytes
1 values
Number of Dimensions: 1
Dimensions and sizes: [1]
Coordinates:
(0) 89
Variable: f (file variable)
filename: wrfpost_1998_02_01
path: /wrkdir/fisel/WRF/WRF_I/run/outwrf/wrfpost_1998_02_01.nc
file global attributes:
title : wrfpost_1998_02_01.nc
Conventions : CF-1.0
source : wrfout_d01_1998-02-01_12:00:00
notes : Created with NCL script: wrfout_to_cf.ncl v1.1.2
created_by : Brandon Fisel - bjfisel_at_iastate.edu
institution : Iowa State University - RACM
creation_date : Mon Feb 16 13:06:17 AKST 2009
dimensions:
time = 2 // unlimited
pressure = 5
south_north = 205
west_east = 275
ncl4 = 1
variables:
double time ( time )
long_name : Time
standard_name : time
units : hours since 1998-01-01 12:00:00
calendar : standard
integer DateTime ( time )
long_name : Date and Time
integer year ( time )
long_name : Year
integer month ( time )
long_name : Month
integer day ( time )
long_name : Day
integer hour ( time )
long_name : Hour
integer minute ( time )
long_name : Minutes
float pressure ( pressure )
long_name : Pressure Level
standard_name : air_pressure
units : hPa
positive : down
pressure : 300
integer south_north ( south_north )
long_name : y-coordinate in Cartesian system
axis : Y
units : m
integer west_east ( west_east )
long_name : x-coordinate in Cartesian system
axis : X
units : m
float p_top ( ncl4 )
units : hPa
standard_name : air_pressure
long_name : Pressure at Top of the Model
float lat ( south_north, west_east )
long_name : Latitude
standard_name : latitude
units : degrees_north
float lon ( south_north, west_east )
long_name : Longitude
standard_name : longitude
units : degrees_east
float Z_sfc ( south_north, west_east )
long_name : Terrain Height
standard_name : height
units : m
coordinates : lon lat
float SST ( time, south_north, west_east )
long_name : Sea-Surface Temperature
standard_name : sea_surface_temperature
units : K
coordinates : lon lat
float T_sfc ( time, south_north, west_east )
long_name : Temperature at the Surface
standard_name : surface_temperature
units : K
coordinates : lon lat
float p_sfc ( time, south_north, west_east )
long_name : Pressure at the Surface
standard_name : surface_air_pressure
units : hPa
coordinates : lon lat
float slp ( time, south_north, west_east )
long_name : Sea-Level Pressure
standard_name : air_pressure_at_sea_level
units : hPa
coordinates : lon lat
float T_2m ( time, south_north, west_east )
long_name : Temperature at 2 m
standard_name : air_temperature
units : degC
coordinates : lon lat
float Th_2m ( time, south_north, west_east )
long_name : Potential Temperature at 2 m
standard_name : air_potential_temperature
units : K
coordinates : lon lat
float Td_2m ( time, south_north, west_east )
long_name : Dewpoint Temperature at 2 m
standard_name : dew_point_temperature
units : degC
coordinates : lon lat
float q_2m ( time, south_north, west_east )
long_name : Mixing Ratio at 2 m
standard_name : humidity_mixing_ratio
units : kg kg-1
coordinates : lon lat
float u_10m_gr ( time, south_north, west_east )
long_name : u-Component at 10 m (grid)
standard_name : eastward_wind
units : m s-1
coordinates : lon lat
float v_10m_gr ( time, south_north, west_east )
long_name : v-Component at 10 m (grid)
standard_name : northward_wind
units : m s-1
coordinates : lon lat
float precip_g ( time, south_north, west_east )
long_name : Accumulated Total Grid Scale Precipitation
standard_name : large_scale_precipitation_amount
units : mm
coordinates : lon lat
float precip_c ( time, south_north, west_east )
long_name : Accumulated Total Cumulus Precipitation
standard_name : convective_precipitation_amount
units : mm
coordinates : lon lat
float Z_p ( time, pressure, south_north, west_east )
long_name : Geopotential Height at Pressure Levels
standard_name : geopotential_height
units : m
_FillValue : -999999
coordinates : lon lat
float T_p ( time, pressure, south_north, west_east )
long_name : Temperature at Pressure Levels
standard_name : air_temperature
units : K
_FillValue : -999999
coordinates : lon lat
float q_p ( time, pressure, south_north, west_east )
long_name : Mixing Ratio at Pressure Levels
standard_name : humidity_mixing_ratio
units : kg kg-1
_FillValue : -999999
coordinates : lon lat
float rh_p ( time, pressure, south_north, west_east )
long_name : Relative Humidity at Pressure Levels
standard_name : relative_humidity
units : percent
_FillValue : -999999
coordinates : lon lat
float u_gr_p ( time, pressure, south_north, west_east )
long_name : u-Component at Pressure Levels (grid)
standard_name : eastward_wind
units : m s-1
_FillValue : -999999
coordinates : lon lat
float v_gr_p ( time, pressure, south_north, west_east )
long_name : v-Component at Pressure Levels (grid)
standard_name : northward_wind
units : m s-1
_FillValue : -999999
coordinates : lon lat
float w_p ( time, pressure, south_north, west_east )
long_name : w-Component at Pressure Levels
standard_name : upward_wind
units : m s-1
_FillValue : -999999
coordinates : lon lat
float SW_d ( time, south_north, west_east )
long_name : Shortwave Flux - Downward - at surface
standard_name : surface_downwelling_shortwave_flux
units : W m-2
coordinates : lon lat
float LW_d ( time, south_north, west_east )
long_name : Longwave Flux - Downward - at surface
standard_name : surface_downwelling_longwave_flux
units : W m-2
coordinates : lon lat
float LW_toa ( time, south_north, west_east )
long_name : Longwave Flux - Outgoing - TOA
standard_name : toa_outgoing_longwave_flux
units : W m-2
coordinates : lon lat
float albedo ( time, south_north, west_east )
long_name : Albedo
standard_name : surface_albedo
units :
coordinates : lon lat
float SHFlx ( time, south_north, west_east )
long_name : Sensible Heat Flux - Upward - at surface
standard_name : surface_upward_sensible_heat_flux
units : W m-2
coordinates : lon lat
float LHFlx ( time, south_north, west_east )
long_name : Latent Heat Flux - Upward - at surface
standard_name : surface_upward_latent_heat_flux
units : W m-2
coordinates : lon lat
float MFlx ( time, south_north, west_east )
long_name : Moisture Heat Flux - Upward - at surface
standard_name : surface_upward_water_flux
units : kg m-2 s-1
coordinates : lon lat
float u_star ( time, south_north, west_east )
long_name : Friction Velocity (u*)
standard_name :
units : m s-1
coordinates : lon lat
float SoilT_L ( time, south_north, west_east )
long_name : Soil Temperature - at lower boundery
standard_name : soil_temperature
units : K
coordinates : lon lat
float GroundFlx ( time, south_north, west_east )
long_name : Ground Heat Flux
standard_name : upward_heat_flux_at_ground_level_in_soil
units : W m-2
coordinates : lon lat
float SeaIce ( time, south_north, west_east )
long_name : Sea Ice Concentration
standard_name : seaice_concentration
units : %
notes : Percentage %
coordinates : lon lat
(0) 1998_2_1_12_0
(1) 1998_2_2_0_0
(0) slp: 744
(1) slp: 756
(0) Path is: /wrkdir/fisel/WRF/NCL/graphics/wrfout_slp_1998_2_1_12_Z
(1) Path is: /wrkdir/fisel/WRF/NCL/graphics/wrfout_slp_1998_2_2_0_Z
(0) Working on time: 19982112Z and variable: slp
(1) Working on time: 1998220Z and variable: slp
(0) 16.535,89.7878
(0) -179.995,179.997
(0) You chose options: slp
fatal:Dimension size of attribute and right-hand side of assignment do not
match
fatal:Execute: Error occurred at or near line 1067 in file ../WRFUserARW.ncl
fatal:Execute: Error occurred at or near line 141 in file wrf_field_var.ncl
How would I go about changing this 3 dimensional variable to a 2 dimensional
one that wrf_contour can handle?
Cheers,
Brandon Fisel
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 24 2009 - 12:53:02 MST
This archive was generated by hypermail 2.2.0 : Tue Mar 03 2009 - 09:53:57 MST