Scott,
It's really slow to read time series at a single point from
aggregations of most gridded model output because the records are
written at each time step as the model plods along, with time the
least fast varying dimension. So when you extract a time series at
one location, you have to read one value, then skip a whole bunch of
data, read one more value, etc.
If it wasn't GRIB, this could be potentially be changed on the
provider side by flipping the dimensions, or rechunking the data along
the time dimension if was NetCDF4 or HDF5, but that is rarely done.
Just for comparison, I tried this in NetCDF4-Python, and yes, it takes
a really long time: 538 seconds (nearly 9 minutes) to extract 745
points! (I extracted a different point, just in case the server is
caching, but the same number of time steps):
In [1]: import netCDF4
import time
url='
http://nomads.ncdc.noaa.gov/thredds/dodsC/cfsr1hr/200912/wnd10m.gdas.200912.grb2'
nc=netCDF4.Dataset(url)
tic=time.time()
u=nc.variables['U-component_of_wind'][0:744,0,40,40]
toc=time.time()
print ('elapsed time= %f seconds' % (toc-tic))
Out [1]: elapsed time= 538.030953 seconds
Just to confirm that it's a server side problem, I also tried
accessing the data using the NCO "ncks" program, and it took a long
time also:
rsignell@gam:/usgs/data2/rsignell/data/bathy$ time ncks -O -d lat,12
-d lon,20 -d height_above_ground,0 -v U-component_of_wind
'
http://nomads.ncdc.noaa.gov/thredds/dodsC/cfsr1hr/200912/wnd10m.gdas.200912.grb2'
test.nc
real 7m7.268s
user 0m0.012s
sys 0m0.020s
-Rich
> --
> You received this message because you are subscribed to the Google Groups
> "pydap" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
pydap+un...@googlegroups.com.
> To post to this group, send email to
py...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/pydap?hl=en.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Dr. Richard P. Signell
(508) 457-2229
USGS, 384 Woods Hole Rd.
Woods Hole, MA 02543-1598