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 06:58:26 2012
This archive was generated by hypermail 2.1.8 : Fri Oct 12 2012 - 15:38:19 MDT