Difference between revisions of "BES - Modules - FileOut Netcdf"
|Line 5:||Line 5:|
with Hyrax 1.BES 3..
Revision as of 20:50, 9 May 2010
The File Out NetCDF module provides the ability to return OPeNDAP DataDDS objects as netcdf files. The module takes an OPeNDAP DataDDS and translates the attributes, data structure, and data into a netcdf file and streams the resulting file back to the caller. Currently, simple types, arrays, structures and grids are supported. Sequences are not yet supported.
Go to this page for more information on the specifics of how OPeNDAP data objects are written to NetCDF.
Stable release 1.0.1 with Hyrax 1.6.2, BES version 3.8.3
3 Services Handled
This module does not handle any services but adds to an existing service
4 Services Provided
The module provides an additional format to the
dods command. The format is used to specify a "returnAs" format. Typically you will see responses of the dap2 format. This module provides the additional format of returning the OPenDAP data object as a netcdf file.
The latest release of this module is fileout_netcdf 0.9.0 and can be downloaded off of the File Out NetCDF opendap web page
6 How to use the module
Once installed, the module is used by adding it to the list of modules to load by the BES. To do this you can simply run the bes-fonc-data.sh shell script that is included with the installation. This will update your BES configuration file in the appropriate places. There is a configuration option that you can change for this module. The
FONc.Tempdir parameter in the BES configuration file tells the module where to store the netcdf files generated by the module until the file is streamed back to the caller. The default value for this parameter is the /tmp directory. You could change this to a location where there is plenty of disk space/quota.
The next time the BES is started it will load this module. And, once installed, the OLFS will know that it can use this module to transform your data. Next to a dataset you will see the list of data products provided for that dataset. This will include a link for File Out Netcdf.
If not using the OLFS to serve your data, for example if using the bescmdln, you would run a command file that would look something like this:
<?xml version="1.0" encoding="UTF-8"?> <request reqID="some_unique_value" > <setContext name="dap_format">dap2</setContext> <setContainer name="c" space="catalog">data/nc/fnoc1.nc</setContainer> <define name="d"> <container name="c" /> </define> <get type="dods" definition="d" returnAs="netcdf"/> </request>