Reading netCDF data as a raster layer

CautionCaution:

You cannot add a netCDF file using the Add Data button Add Data.

Using the Make NetCDF Raster Layer tool from the Multidimension Tools toolbox, you can create a raster layer from a netCDF variable. The output raster layer can be used in other tools that accept rasters as input for further analysis. To save the output layer, right-click the layer in the ArcMap table of contents and click Save As Layer File, or use the Save To Layer File tool from the Data Management Tools toolbox.

A raster layer can be created using variables with two or more dimensions. The output raster layer type is either float or integer based on the netCDF variable type. The following example shows a variable, rainfall, with three dimensions:

netcdf annualrainfall {
dimensions:
	latitude = 48 ;
	longitude = 115 ;
	time = UNLIMITED ; 
variables:
	float latitude (latitude) ;
		latitude:units = "degrees_north" ;
	float longitude (longitude) ;
		longitude:units = "degrees_east" ;
	int time(time) ;
		time:units = "days since 1895-01-01" ;
		time:time_step = "annual" ;
		time:calendar = "gregorian" ;
	float rainfall (time, latitude, longitude) ;
		rainfall:units = "mm yr-1" ;
		rainfall:_FillValue = -9999.f ;
		rainfall:missing_value = -9999.f ;
}
Steps:
  1. Click the Search window button Search or tab.
  2. Click Tools.
  3. Type Make NetCDF Raster Layer in the text box and click Search Search.
  4. Click Make NetCDF Raster Layer in the returned list to open the tool.
  5. Type the name in the Input netCDF File text box, or click the browse button to navigate to the input file.
  6. Click the Variable drop-down arrow and choose a variable from the list.
  7. Click the X Dimension drop-down arrow and choose a dimension from the list, or alternatively, leave the default.
  8. Click the Y Dimension drop-down arrow and choose a dimension from the list, or alternatively, leave the default.
  9. Type the name in the Output Raster Layer text box, or leave the default.
  10. Optionally, to create a multiband raster, click the Band Dimension drop-down arrow and choose a dimension from the list.
  11. To specify a slice other than the default of multidimensional data, click the Default Values drop-down arrow and choose a dimension from the list. The dimension is added to the table. Click the Value drop-down arrow next to the added dimension and choose a value. Repeat this step to specify values for other dimensions.
  12. Click OK.

    An in-memory raster layer is created. You cannot see this layer in the ArcCatalog tree, but it can be used as input to geoprocessing tools that support it. In ArcMap, a raster layer is added to the table of contents.

NoteNote:

You can also drag and drop a netCDF file in ArcMap. If the file contains variables with two or more dimensions, a raster layer is created and displayed using the first variable.

Related Topics

3/7/2014