Hi Sylvia,
I would take a look to the proposal related to the
StructuredGridCoverage2DReader:
http://docs.codehaus.org/display/GEOTOOLS/Structured+grid+coverage+readers

Note that imageMosaic already implements StructuredGridCoverage2DReader and
it also allows to "mosaic"/"expose" set of netcdf files as a single
coverageStore.
What is your use case? Did you consider using ImageMosaic on top of NetCDF
files instead of using NetCDF self-contained plugin to access multiple
NetCDF files?

Long story short a StructuredGridCoverage2DReader may be used to provide
access to a coverageStore containing multiple coverages where we may think
about an "air_temperature" coverage, an "air_humidity" coverage, an
"air_current_magnitude" coverage and an "air_current_direction" coverage
containing values at different times and elevations for air temperature,
humidity and current...
You can also think that all of these values are contained, let say into a
single meteo-january.nc file.

The StructuredGridCoverage2DReader.getGranules method is used to get a
GranuleSource for a specific coverage (referred by the coverage name such
as "air_temperature", as an instance) which provides access to all the
granules of that coverage (in NetCDF, you can think about coverage =
variable).

A granule may be considered as an elementary 2D slice of the coverage.
So, when you deal as an instance with a mosaic made of multiple single
banded TIFFs where each TIFF contains data for a specific time, a specific
elevation and a specific variable, then each TIFF will represent a granule.
In case of a bigger single NetCDF file containing multiple times,
elevations and variables, that file will provide access to multiple
granules.

Some more concepts are available as part of a training multidim.You may
take a look to this section:
http://geoserver.geo-solutions.it/multidim/en/imagemosaic/mosaic_basics.html

Once you get a GranuleSource (A single GranuleSource to refer all possible
times, elevations, values of the same Coverage) you may restrict the
collections of granules to be returned by that source using the
GranuleSource.getGranules(Query q) method. It returns a
SimpleFeatureCollection where each element of the collection is a granule.

In terms of NCML support, the NetCDF plugin is built on top of the
NetCDF-java library which supports NCML. So you can do variable rename,
dimension subsetting, variable delete through NCML and the NetCDF-java
library will properly parse the "rules" contained in the NCML to the NetCDF
plugin.
Do you have some specific questions on that topic?

Best Regards,
Daniele










==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 for more information.
==

Ing. Daniele Romagnoli
Senior Software Engineer

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054  Massarosa (LU)
Italy
phone: +39 0584 962313
fax:      +39 0584 1660272

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------

*AVVERTENZE AI SENSI DEL D.Lgs. 196/2003*

Le informazioni contenute in questo messaggio di posta elettronica e/o
nel/i file/s allegato/i sono da considerarsi strettamente riservate. Il
loro utilizzo è consentito esclusivamente al destinatario del messaggio,
per le finalità indicate nel messaggio stesso. Qualora riceviate questo
messaggio senza esserne il destinatario, Vi preghiamo cortesemente di
darcene notizia via e-mail e di procedere alla distruzione del messaggio
stesso, cancellandolo dal Vostro sistema. Conservare il messaggio stesso,
divulgarlo anche in parte, distribuirlo ad altri soggetti, copiarlo, od
utilizzarlo per finalità diverse, costituisce comportamento contrario ai
principi dettati dal D.Lgs. 196/2003.



The information in this message and/or attachments, is intended solely for
the attention and use of the named addressee(s) and may be confidential or
proprietary in nature or covered by the provisions of privacy act
(Legislative Decree June, 30 2003, no.196 - Italy's New Data Protection
Code).Any use not in accord with its purpose, any disclosure, reproduction,
copying, distribution, or either dissemination, either whole or partial, is
strictly forbidden except previous formal approval of the named
addressee(s). If you are not the intended recipient, please contact
immediately the sender by telephone, fax or e-mail and delete the
information in this message that has been received in error. The sender
does not give any warranty or accept liability as the content, accuracy or
completeness of sent messages and accepts no responsibility  for changes
made after they were sent or for other risks which arise as a result of
e-mail transmission, viruses, etc.


On Tue, Jan 20, 2015 at 4:18 PM, Sylvia Charchut <
[email protected]> wrote:

>  Hello dev-list,
>
>
>
> I am currently trying to implement the StructuredGridCoverage2DReader to
> use for publishing aggregated NetCDF files.
>
>
>
> What exactly is the getGranules method used for and when is this method
> called in Geoserver?
>
>
>
> I’ve tried looking through the NetCDF plugin and this is my understanding
> of a granule, it is one coverage/variable in a netcdf file (i.e water temp)
> and a GranuleSource is a list of these variables in one netcdf file. If
> this is not correct, can someone clarify?
>
>
>
> Also, can anyone point me in the right direction with how NcML files are
> handled through the NetCDF plugin?
>
>
>
> Thank you!
>
>
>
>
>
> Sylvia Charchut
>
>
>
>
> ------------------------------------------------------------------------------
> New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
> GigeNET is offering a free month of service with a new server in Ashburn.
> Choose from 2 high performing configs, both with 100TB of bandwidth.
> Higher redundancy.Lower latency.Increased capacity.Completely compliant.
> http://p.sf.net/sfu/gigenet
> _______________________________________________
> GeoTools-Devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to