[ncl-talk] Error- wrf model output wind plot
Gaurav Tiwari
gaurav16 at iiserb.ac.in
Tue Dec 5 09:36:36 MST 2017
Hi Rick,
printVarSummary tells the given message about the variables "u" and "v"
Variable: u
Type: float
Total Size: 26261400 bytes
6565350 values
Number of Dimensions: 3
Dimensions and sizes: [bottom_top | 55] x [south_north | 345] x
[west_east_stag | 346]
Coordinates:
Number Of Attributes: 6
FieldType : 104
MemoryOrder : XYZ
description : x-wind component
units : m s-1
stagger : X
coordinates : XLONG_U XLAT_U XTIME
(similarly for v)
Although I tried what Dennis suggested me but still my concern is to
overcome by following error
fatal:Number of dimensions in parameter (1) of (gsn_csm_vector) is (3), (2)
dimensions were expected
Actually, wrf output variable U10, V10 have two dimensions and and U,V
have three dimension, so kindly give me some idea about the above error.
Thanks,
On Mon, Dec 4, 2017 at 11:06 PM, Rick Brownrigg <brownrig at ucar.edu> wrote:
> It is very difficult to tell what is wrong -- what does a printVarSummary
> tell you about the variables "u" and "v"?
>
>
>
> On Sat, Dec 2, 2017 at 4:45 AM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
> wrote:
>
>> Hi Dennis,
>>
>> I done few changes what you suggested but still I am getting some
>> error.
>> Current error is attached below
>>
>> fatal:VectorFieldInitialize: dimensions of vfUDataArray and vfVDataArray
>> are inconsistent
>> fatal:Unable to initialize layer-Can't Create
>> fatal:Unable to access object with id:-4
>> fatal:Unable to access object with id:-4
>> warning:Unable to add DataItem "(null)" to DataList "vcVectorFieldData"
>> fatal:CompileDataList:DataList has no valid members
>>
>>
>>
>> Kindly let me know some ideas to plot wrf wind at different different
>> pressure levels.
>>
>>
>> -Gaurav
>>
>>
>>
>>
>> ********************************************************************
>> *Gaurav Tiwari*
>> Research Scholar
>> Department of Earth and Environmental Sciences
>> Indian Institute of Science Education and Research Bhopal
>> (IISER B)
>> Bhopal- 462066, Madhya Pradesh
>> Mob: +91-7471112407 <+91%2074711%2012407>
>> LinkedIn
>> <https://www.linkedin.com/in/gaurav-tiwari-bb36357a?trk=hp-identity-name>
>> Research gate <https://www.researchgate.net/profile/Gaurav_Tiwari5>
>>
>>
>> On Tue, Nov 28, 2017 at 9:13 PM, Dennis Shea <shea at ucar.edu> wrote:
>>
>>>
>>> u10 = wrf_user_getvar(f, "U10",it)
>>> printVarSummary(u10) ; ===> [south_north | ?] x [west_east | ?]
>>>
>>>
>>> ---
>>> u = wrf_user_getvar(f, "U",it)
>>> printVarSummary(u) ; ===> [bottom_top | ?] x [south_north | ?] x
>>> [west_east_stag | ?]
>>>
>>> ---
>>>
>>> function gsn_csm_vector (
>>> wks [1] : graphic,
>>> u [*][*] : numeric, <=== 2-dimensions
>>> v [*][*] : numeric, <=== 2-dimensions
>>> res [1] : logical
>>> )
>>>
>>> kl = 5
>>> vector = gsn_csm_vector(wks,u(kl,:,:),v(kl,:,:),vec_res)
>>>
>>> On Mon, Nov 27, 2017 at 11:09 PM, Gaurav Tiwari <gaurav16 at iiserb.ac.in>
>>> wrote:
>>>
>>>> Dear Mary,
>>>>
>>>> I am trying to plot WRF model output wind at different different
>>>> atmospheric pressure levels, but I am facing an error
>>>>
>>>> atal:Number of dimensions in parameter (1) of (gsn_csm_vector) is (3),
>>>> (2) dimensions were expected
>>>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 42 in
>>>> file Zwind.ncl
>>>>
>>>>
>>>> The same script is working for U10, V10 but not for U,V.
>>>>
>>>>
>>>> --Gaurav
>>>>
>>>>
>>>> _______________________________________________
>>>> ncl-talk mailing list
>>>> ncl-talk at ucar.edu
>>>> List instructions, subscriber options, unsubscribe:
>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>>
>>>
>>
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20171205/34c56e76/attachment.html>
More information about the ncl-talk
mailing list