Re: Add rain to a meteogram

From: Dennis Shea <shea_at_nyahnyahspammersnyahnyah>
Date: Tue May 31 2011 - 16:16:44 MDT

The NCL error message is telling you exactly what is wrong
and where it occur:.

---
 > fatal:Number of subscripts on rhs do not match number of dimensions of
 > variable,(4) Subscripts used, (3) Subscripts expected
 > fatal:Execute: Error occurred at or near line 65 in file meteo_test.ncl
---
Your variable, "rain", is
 > Number of Dimensions: 3
 > Dimensions and sizes: [Time | 17] x [south_north | 56] x [west_east | 99]
There are 3 dimensions.
====
You are referencing the variable with 4 dimensions
 > rain_point = rain(:,:,locY,locX)
Change to:
rain_point = rain(:,locY,locX)
On 5/31/11 2:31 PM, Carina V. Barca wrote:
> Hello everybody: I'm trying to add rain to wrf_meteo5.ncl
> 1) I get rain for all times.
> rain = wrf_user_getvar(a,"RAINC",-1)
> 2) But twhen I want to extract series al the point with this:
> rain_point = rain(:,:,locY,locX)
> I get this error..
> fatal:Number of subscripts on rhs do not match number of dimensions of
> variable,(4) Subscripts used, (3) Subscripts expected
> fatal:Execute: Error occurred at or near line 65 in file meteo_test.ncl
> With printVarSummary(rain) I get this...
> Variable: rain
> Type: float
> Total Size: 376992 bytes
> 94248 values
> Number of Dimensions: 3
> Dimensions and sizes: [Time | 17] x [south_north | 56] x [west_east | 99]
> Coordinates:
> Number Of Attributes: 6
> coordinates : XLONG XLAT
> stagger :
> units : mm
> description : ACCUMULATED TOTAL CUMULUS PRECIPITATION
> MemoryOrder : XY
> FieldType : 104
> I can't attach the netcdf file because it's too big...(151 MB)
> regards
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue May 31 16:16:51 2011

This archive was generated by hypermail 2.1.8 : Wed Jun 01 2011 - 12:41:15 MDT