[ncl-talk] About Relative Humidity
Dennis Shea
shea at ucar.edu
Thu Sep 28 19:02:16 MDT 2017
You should examine the error message and the line at which it occurs.
RH: [Time | ntim] x [bottom_top | klevel] x [south_north | ny] x [west_east
| nx]
-----
You have
do it = 0,ntimes-1
print (sprintf("%5.2f",it)+""\
+sprintf("%19.2f",RH(it(0,:,:,:)))+"") ; <====== you have
indexed 'it'
end do
---
Change to:
print (sprintf("%5.2f",it)+""\
+sprintf("%19.2f",RH(it,:,:,:))
At *each* 'it' you are printing a 3D array ... point by point.
I have no idea why you would want to do that
On Thu, Sep 28, 2017 at 6:50 PM, isakhar sakhar isakhar <
isakhar.inside13 at gmail.com> wrote:
> Hi Mr. Marston
>
> Yes, I have tried many times to solve the problems before send it here. Do
> you have any idea about the code I attached?
>
> Thank you
>
> Soares
>
> On Tue, Sep 26, 2017 at 3:55 PM, Marston Johnston <shejo284 at gmail.com>
> wrote:
>
>> The error message is quite clear. Did you try and address the problem as
>> it states?
>>
>>
>>
>> fatal:Number of subscripts do not match number of dimensions of
>> variable,(4) Subscripts used, (1) Subscripts expected
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 43 in
>> file RH_WRF.ncl
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>> Marston S. Ward, PhD
>>
>> Department of Earth Sciences
>>
>> University of Gothenburg, Sweden
>>
>> Email: marston.johnston at gu.se
>>
>> SkypeID: marston.johnston
>>
>> Phone: +46-31-7864901 <+46%2031%20786%2049%2001>
>>
>> Only the fruitful thing is true!
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>>
>>
>> *From: *ncl-talk <ncl-talk-bounces at ucar.edu> on behalf of isakhar sakhar
>> isakhar <isakhar.inside13 at gmail.com>
>> *Date: *Tuesday, 26 September 2017 at 07:50
>> *To: *<ncl-talk at ucar.edu>
>> *Subject: *[ncl-talk] About Relative Humidity
>>
>>
>>
>> Dear NCL Team
>>
>> I am interesting to know Relative Humidity base on website
>> https://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_rh.shtml by
>> using Example 1 but it didn't work.
>>
>>
>>
>> What is still go wrong with the code. Here I attach the code.
>>
>>
>>
>> Best regards,
>>
>> Soares
>>
>>
>>
>>
>>
>>
>> Variable: RH
>> Type: float
>> Total Size: 419208372 bytes
>> 104802093 values
>> Number of Dimensions: 4
>> Dimensions and sizes: [Time | 289] x [bottom_top | 37] x [south_north
>> | 99] x [west_east | 99]
>> Coordinates:
>> Number Of Attributes: 2
>> units : %
>> description : Relative Humidity
>> fatal:Number of subscripts do not match number of dimensions of
>> variable,(4) Subscripts used, (1) Subscripts expected
>> fatal:["Execute.c":8640]:Execute: Error occurred at or near line 43 in
>> file RH_WRF.ncl
>>
>> _______________________________________________ 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/20170928/283ff6da/attachment.html>
More information about the ncl-talk
mailing list