HOW TO

Convert netCDF data to GeoJSON in ArcGIS Pro

Last Published: May 22, 2024

Summary

Network Common Data Form (netCDF) is a file format used to store multidimensional scientific data such as temperature, humidity, pressure, wind speed, and direction. In ArcGIS Pro, each of these variables can be displayed in a dimension, such as time, by creating a raster layer from the netCDF file using the Make NetCDF Raster Layer tool. The polygon feature class can then be created from the raster layer and exported to GeoJSON format using the Features To JSON tool. This method enables web maps and apps to visualize and integrate geographical data, simplify feature geometry, reduce complexity, and retain spatial information while reducing file size. This article provides the workflow to convert netCDF data to GeoJSON in ArcGIS Pro. The image below shows the netCDF data used for converting to GeoJSON.

The netCDF data

Procedure

  1. Open the project in ArcGIS Pro.
  2. Create a raster layer from the netCDF file using the Make NetCDF Raster Layer tool.
    1. On the Analysis ribbon tab, in the Geoprocessing group, click Tools.
    2. In the Geoprocessing pane, search for and click Make NetCDF Raster Layer (Multidimension Tools).
    3. In the Make NetCDF Raster Layer pane, for Input netCDF File, click Browse The Browse button and select the netCDF file from the local folder.
    4. For Variable, select the desired variable of the netCDF file used to assign cell values to the output raster from the drop-down list. In this example, the water temperature variable named water_temp is selected.
    5. For X Dimension, select the netCDF dimension used to define the longitude of the output layer from the drop-down list.
    6. For Y Dimension, select the netCDF dimension used to define the latitude of the output layer from the drop-down list.
    7. For Output Raster Layer, specify a name for the output raster layer.
    8. Click Run.
The Make NetCDF Raster Layer pane
  1. Convert the floating-point raster to an integer using the Copy Raster tool.
    1. On the Analysis ribbon tab, in the Geoprocessing group, click Tools.
    2. In the Geoprocessing pane, search for and click Copy Raster (Data Management Tools).
    3. In the Copy Raster pane, for Input Raster, select the raster layer created in Step 2 from the drop-down list.
    4. For Output Raster Dataset, click Browse The Browse button and specify a location and name for the output raster dataset.
    5. For Pixel Type, select the preferred bit depth from the drop-down list. In this example, 32 bit signed is selected. Refer to ArcGIS Pro: Parameters for more information.
    6. For Format, select the preferred format for the output raster dataset.
    7. Click Run.
The Copy Raster pane
Note:
Alternatively, use the Int tool to convert each cell value of the raster dataset to an integer by truncation. This tool requires a Spatial Analyst, Image Analyst, or 3D Analyst license.
  1. Convert the integer raster to polygon features using the Raster to Polygon tool.
    1. On the Analysis ribbon tab, in the Geoprocessing group, click Tools.
    2. In the Geoprocessing pane, search for and click Raster to Polygon (Conversion Tools).
    3. In the Raster to Polygon pane, for Input raster, select the output raster layer in Step 3 from the drop-down list.
    4. For Output polygon features, click Browse The Browse button. and specify a location and name for the output polygon features.
    5. Uncheck the Simplify polygons check box.
    6. Click Run.
The Raster to Polygon pane
  1. Convert the polygon feature layer to a GeoJSON format using the Features To JSON tool.
    1. On the Analysis ribbon tab, in the Geoprocessing group, click Tools.
    2. In the Geoprocessing pane, search for and click Features To JSON (Conversion Tools).
    3. In the Features To JSON pane, for Input Features, select the polygon feature layer from the drop-down list.
    4. For Output JSON, click Browse The Browse button and specify a location and name for the output GeoJSON file.
    5. Check the Output to GeoJSON check box.
    6. Click Run.
The Features To JSON pane

The image below shows the GeoJSON file converted from the netCDF file in the local folder.

The GeoJSON file

Article ID: 000032591

Software:
  • ArcGIS Pro 3 1
  • ArcGIS Pro 3 3
  • ArcGIS Pro 3 2

Receive notifications and find solutions for new or common issues

Get summarized answers and video solutions from our new AI chatbot.

Download the Esri Support App

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options