Re: wrf_user_getvar

From: wrfhelp <wrfhelp_at_nyahnyahspammersnyahnyah>
Date: Thu Oct 11 2012 - 16:15:18 MDT

Virginie,

This will work in version 6.1.0-beta
The why you do it is
        (/0,6,1/)

wrfhelp
------------------------------------------------------------------------------
http://www.mmm.ucar.edu/wrf/users/supports/wrfhelp.html

On Oct 11, 2012, at 6:58 AM, Dennis Shea <shea@ucar.edu> wrote:

> All questions related to wrf_* functions should be sent to wrfhelp@ucar.edu
>
> wrfhelp wrote all the wrf_* functions
>
> ---
> To my knowledge, the answer is "no" you can not do what you
> request below. You can write a function. The following is untested
> and may need to be modified. No support for this function.
>
> undef("wrf_user_getvar_time_extract")
> function wrf_user_getvar_time_extract \
> ( file_handle, varin[*]:string, tStrt[1]:integer, tLast[1]:integer)
> begin
> X = wrf_user_getvar(file_handle, varin, -1) ; get all times
>
> dimX = dimsizes(X)
> rankX = dimsizes(dimX)
>
> if (rankX.eq.3) then
> return(X(tStrt:tLast),:,:))
> end if
>
> if (rankX.eq.4) then
> return(X(tStrt:tLast),:,:,:))
> end if
>
> end
>
> On 10/11/12 6:37 AM, virginie hergault wrote:
>> Hi users,
>>
>> I know that it's possible to retrieve all times in a file putting -1
>> in "wrf_user_getvar" but is it possible to retrieve an interval of
>> times?
>> For example, I tried putting "0:6" but it doesn't work..
>>
>> Thank you
>> Virginie
>> _______________________________________________
>> 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 Thu Oct 11 16:15:31 2012

This archive was generated by hypermail 2.1.8 : Fri Oct 12 2012 - 15:38:19 MDT