You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The netCDF format can be used in various ways. As data set it can be seen and used as the carrier of bulk information often with a time component. Within Deltares netCDF's are used to store single data sets as well as time series of data set in scalars format as well as raster format. In a lot of cases the netCDF's are handled as an archive of data, so the format does not really matter. But in case of viewing purposes there are some tips and trics to be followed to be able to use netCDF's instantly. This wiki page describes the format that is preferably applied so the data in the netCDF can be used in multiple ways. 

Geoserver and netCDF's

The main reason to use geoserver as middle ware to create webservices from netCDF's is the ability to style data and to enable the time variable so that the data in a netCDF can be animated in a web interface. Geoserver can not handle netCDF files out of the box. You need to install an extension for geoserver. These extensions can be found at the website of boundlessgeo (bear in mind that the extensions depend on the version of geoserver that is used). 

The netCDF plugin documentation has some notes on supported netCDF's. It is quite clear that only netCDF's are supported with the following dimensions:

  • lon
  • lat
  • (time)
  • (z)

where dimensions between () are optional. The variables should have at leas dimension lat, lon. If time and z are dimensions, the order is time, z, lat, lon. 

The number of variables can vary from 1 to many as long as the dimensions are kept the same. This has implications in a lot of cases, especially where coordinates are not in lat lon (WGS84) but in projections systems. 

The picture below is a working example with time enable animation for several variables.

 

 

Metadata

Metadata is always very important. The easiest way to get full metadata is in your script is using the template that netCDF kickstarter is providing you.

  • No labels