CSol
Public Member Functions | Protected Member Functions | List of all members
CSol_GDALDatasetHandle_to_Grid Class Reference

Converts GDAL dataset into multi-dimensional Grid. More...

#include <csol_gdal_to_grid.h>

Inherits Operation.

Public Member Functions

 CSol_GDALDatasetHandle_to_Grid ()
 
virtual ~CSol_GDALDatasetHandle_to_Grid ()
 

Protected Member Functions

virtual bool execute ()
 

Detailed Description

Creates a Grid based on the layers within the GDAL dataset. One, two and three dimensional grids can be created. If the GDAL dataset has higher dimensional data, it is folded into the third grid dimension. Two dimensional raster layers are stored in the Grid x and y dimensions. For two-dimensional raster layers with time, the time is stored in the Grid z dimension. Any two-dimensional geotransform stored in the GDAL file are used to transform the Grid data and set the Grid spacing and offset. Time values are automatically detected from NetCDF files by searching for a 'time' entry in NETCDF_DIM_EXTRA. If this exists the NETCDF_DIM_time_VALUES are parsed and used to set the z dimension spacing. The first time value, if found, is used to set the 'Data start time' output. Time units are converted to seconds using the 'time::units' parameter in the metadata, if found. All dimensions have an optional coefficient which can be applied to the value read from the GDAL file as the value is stored in the Grid. Metadata can also optionally be written as a QString output.

Constructor & Destructor Documentation

Member Function Documentation

bool execute ( )
protectedvirtual