ArcObjects Library Reference  

DataSourcesNetCDF Library Overview


Supported with: ArcGIS Engine, ArcGIS Desktop, ArcGIS Server

Library dependencies: System, SystemUI, Geometry, Display, Server, Output, GeoDatabase, GISClient, ArcWeb, DataSourcesFile, DataSourcesGDB, DataSourcesOleDB, DataSourcesRaster

Additional library information: Contents, Object Model Diagram

 

This content is also available in versions that specifically target .NET and Java developers. Click on the appropriate link to view either version.
        .NET overview of the DataSourcesNetCDF assembly
        Java overview of the DataSourcesNetCDF package


The DataSourcesNetCDF library contains objects used for accessing netCDF files and for creating rasters, features, or tables from netCDF variables in ArcGIS.

The main objects in this library are: NetCDFWorkspaceFactory, NetCDFWorkspace, NetCDFFeatureClassName, NetCDFTableName, NetCDFRasterDatasetName, NetCDFFeatureClass, NetCDFTable, NetCDFRasterDataset, and NetCDFRasterBand.

NetCDFWorkspaceFactory and NetCDFWorkspace

To work with a netCDF file, you need to create a workspace factory using the NetCDFWorkspaceFactory class. After creating a new instance of the NetCDFWorkspaceFactory object, use the OpenFromFile method to get a NetCDFWorkspace object that is used to work with the data.

You can also create a WorkspaceName and set its WorkspaceFactoryProgID and PathName to a netCDF file.

[Visual Basic 6.0]
Dim pWSName As IWorkspaceName
Set pWSName = New WorkspaceName
pWSName.WorkspaceFactoryProgID = "esriDataSourcesNetCDF.NetCDFWorkspaceFactory"
pWSName.PathName = sNetCDFFile

NetCDFFeatureClassName

NetCDFFeatureClassName extends DatasetName. You can get a NetCDFFeatureClass instance by calling the Open method on any NetCDFFeatureClassName instance.

You can use the properties of the IMDFeatureClassView interface to specify the parameters required to create a netCDF feature class from a netCDF file.

[Visual Basic 6.0]
Dim pVariables As IStringArray
Set pVariables = New StrArray
pVariables.Add “elevation”

Dim pRowDimensions As IStringArray
Set pRowDimensions = New StrArray
pRowDimensions.Add “station”

Dim pMDFCView As IMDFeatureClassView
Set pMDFCView = New NetCDFFeatureClassName
pMDFCView.VariableList = pVariables
pMDFCView.XDimension = “longitude”
pMDFCView.YDimension = “latitude”
pMDFCView.RowDimensionList = pRowDimensions

NetCDFTableName

The NetCDFTableName object extends DatasetName. You can get a NetCDFTable instance by calling the Open method on any NetCDFTableName instance.

You can use the properties of the IMDTableView interface to specify the parameters required to create a netCDF table view from a netCDF file.

[Visual Basic 6.0]
Dim pVariables As IStringArray
Set pVariables = New StrArray
pVariables.Add “elevation”

Dim pRowDimensions As IStringArray
Set pRowDimensions = New StrArray
pRowDimensions.Add “station”

Dim pMDTableView As IMDTableView
Set pMDTableView = New NetCDFTableName
pMDTableView.VariableList = pVariables
pMDTableView.DimensionList = pDimensions

NetCDFRasterDatasetName

NetCDFRasterDatasetName extends DatasetName. You can get a NetCDFRasterDataset instance by calling the Open method on any NetCDFRasterName instance.

You can use the properties of the IMDRasterDatasetView interface to specify the parameters required to create a netCDF raster dataset from a netCDF file.

[Visual Basic 6.0]
Dim pMDRDSView As IMDRasterDatasetView
Set pMDRDSView = New NetCDFRasterDatasetName
pMDRDSView.Variable = “elevation”
pMDRDSView.XDimension = “longitude”
pMDRDSView.YDimension = “latitude”

NetCDFFeatureClass

The NetCDFFeatureClass object is inherited from the FeatureClass object. It implements IFeatureClass, ITable and other interfaces.

You can use IName::Open method to create a NetCDFFeatureClass from the NetCDFFeatureClassName object. You can then use the NetCDFFeatureClass for analysis or to create a feature layer.

NetCDFTable

The NetCDFTable object extends Table. It implements IDataset, ITable and other interfaces.

You can use the IName::Open method to create a NetCDFTable from the NetCDFtableName object. You can then use the NetCDFTable for analysis or to create a table view.

NetCDFRasterDataset

The NetCDFRasterDataset object is inherited from the RasterDataset object. It implements IRasterDataset, IRasterBandCollection and other interfaces.

You can use the IName::Open method to create a NetCDFRasterDataset from the NetCDFRasterDatasetName object. You can then use the NetCDFRasterDataset for analysis or to create a raster layer.

NetCDFRasterBand

The NetCDFRasterBand object extends RasterBand. It implements INetCDFrasterBand, IRasterBand, IRasterDataset, IRasterBandCollection and other interfaces.