desired_time_index = 3
ctt = getvar(my_data_set, "ctt", timeidx=desired_time_index)
from wrf import getvar, ALL_TIMES
...
# Compute ctt for all times
ctt = getvar(my_data_set, "ctt", ALL_TIMES)
# Select the desired time via xarray
desired_ctt = ctt.sel(time='2008-01-01_12:00:00')
--
You received this message because you are subscribed to the Google Groups "wrfpython-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wrfpython-tal...@ucar.edu.
To post to this group, send email to wrfpyth...@ucar.edu.
Visit this group at https://groups.google.com/a/ucar.edu/group/wrfpython-talk/.
netcdf wrfout_d02_2005-08-28_00\:00\:00 {
dimensions:
Time = UNLIMITED ; // (4 currently)
DateStrLen = 19 ;
west_east = 96 ;
south_north = 96 ;
bottom_top = 29 ;
bottom_top_stag = 30 ;
soil_layers_stag = 4 ;
west_east_stag = 97 ;
south_north_stag = 97 ;
Thanks for the reply. Your suggestion is what I thought I should have done to start. The issue is when I define timeidx I get a bound error."IndexError: index exceeds dimension bounds"Perhaps there is something else wrong on my end? In the netdcf file (using ncdump), the time dimension is listed as " Time = UNLIMITED ; // (1 currently)" , which is common in model output as it stacks time on each other. Could this be the issue?
-Dave