On Tue, Feb 5, 2013 at 2:04 PM, Roberto De Almeida
<
rob...@dealmeida.net> wrote:
>> As far as I know, the only library that currently represents the CF grid
>> class is the NetCDF-Java library, but it would be great to have this
>> capability in python.
What can NetCDF-Java do with the grid class? What would you want
OpenDAP to do with it?
>> If we had this capability in pydap, a user could, for example, request a
>> 3D spatial subset of temperature at a specific time step, and get back the
>> 2D lon,lat and the 3D z array that went with it.
so this isn't subsetting according to the grid (i.e. subsetting time,
not in lat-lon space), that should be starighforward. Is it a matter
of preserving the grid info?
> Chris Barker mentioned a few days ago how they are handling selection of
> unstructured grids; there's a presentation here:
>
>
http://www.opendap.org/node/265
>
> Basically they're using Opendap server-side functions to specify a bounding
> box:
>
> http://…/
model.nc?ugrid(SST,45,-80, 45,-60, 20,-60, 20,-80)
>
>
> In this example we're defining a square bounding box where we want the data,
> but any number of points can be specified. Is this what you had in mind? It
> would be fairly simple to implement in Pydap, I think.
This brings up another "can of worms" -- with a curvilinear (but
structured) grid, a subset is not necessarily any longer a logically
rectangular grid, even if the you are subsetting to a rectangle in
lat-lon space. So what would one want back?
- a UGRID ? -- that would be cool, but has hardly any )any at all?)
tools know how to deal with UGRIDS now, probably not the most useful
option.
- The logically-rectangular unstructured grid that holds all of the
requested region -- io.e. generally larger than it needs to be.
- The above, but with the parts of the grid that are outside the region masked.
There are also interesting issues with multiple grids in one file --
like the ROMS rho and psi grids.
But in any case, it would be nice to supply the same API for both
unstructured grids and curvilinear grids.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R
(206) 526-6959 voice
7600 Sand Point Way NE
(206) 526-6329 fax
Seattle, WA 98115
(206) 526-6317 main reception
Chris....@noaa.gov