Re: [thredds] Grib data behind script

Hi Stéphane,

Stéphane wrote:
> Stephane:
> Sorry, but I don't have any knowledge about grib generation!
> 
> Ethan:
> My grib data is stored in a database, in a specific format.
> The script extract the data from my database and is able to perform
> specific action, like sub grib extraction.
> 
> I think the good way is to trigger the script on demand from Thredds.
> But I don't see any way to do call external program from Thredds ?

The TDS does not currently have a way to call a script or access a
database for data retrieval. Besides extracting some data by hand and
then configuring the TDS to serve that data, the only things that come
to mind involve writing some Java code. If that is something you are
interested in, take a look at the following two possibilities:

1) The thredds.servlet.DatasetSource interface which provides
implementations with information from the incoming HTTP request and
response objects that can then be used to locate/build and return a
netCDF dataset. The TDS Reference Document discusses the DatasetSource
interface at the following link:

http://www.unidata.ucar.edu/projects/THREDDS/tech/reference/DatasetSource.html

2) The ucar.nc2.iosp.IOServiceProvider interface can be implemented to
read new data formats and represent them through the netCDF-Java API as
a netCDF dataset. The netCDF-Java Tutorial has a section on the I/O
Service Provider interface:

http://www.unidata.ucar.edu/software/netcdf-java/tutorial/index.html

Hope that is helpful.

Ethan

> On Tue, Jun 2, 2009 at 6:59 PM, Ethan Davis <edavis@xxxxxxxxxxxxxxxx
> <mailto:edavis@xxxxxxxxxxxxxxxx>> wrote:
> 
>     Hi Stéphane,
> 
>     Where is the GRIB data and what is the script doing to copy/move the
>     data into your directory?
> 
>     Ethan
> 
>     Stéphane wrote:
>     > Hello,
>     >
>     > I access a set of grib data from a script.
>     > I would like to offer these data through Thredds server.
>     >
>     > I success to manualy extract a grib with my script, put it in a
>     > directory and then access it through Thredds. It works fine !
>     > But now, I would like that Thredds server automatically call my script
>     > to extract the data.
>     >
>     > Is there any way to do that ?
>     >
>     > Thanks a lot,
>     > Stéphane
> 
> 

-- 
Ethan R. Davis                                Telephone: (303) 497-8155
Software Engineer                             Fax:       (303) 497-8690
UCAR Unidata Program Center                   E-mail:    edavis@xxxxxxxx
P.O. Box 3000
Boulder, CO  80307-3000                       http://www.unidata.ucar.edu/
---------------------------------------------------------------------------



  • 2009 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the thredds archives: