ArcGIS Blog

3D Visualization & Analytics

ArcGIS Pro

How to manipulate Pacific centric NetCDF data as a Voxel Layer

By Richard Vargas

ArcGIS Pro enables users to create high performance voxel layers using NetCDF data.  This blog describes how to use a publicly available toolkit to modify NetCDF data that is ‘Pacific centric,’ which is a common requirement for some users.

When working with NetCDF data, some data may be ‘Pacific centric’ with a longitude stretching from [0,360], instead of [-180,180]. Meaning, the Pacific Ocean is in the center of the map rather than the Atlantic Ocean.  Currently, ArcGIS Pro has no way of changing the longitude to be correct in this case, and instead the data must be manipulated to draw correctly.  If the longitude starts after 180 degrees, then 360 must be subtracted from all longitude values.  If the data longitude starts at a value less than 180 degrees, no changes should be made to the longitude values.

United States Voxel Layer Offset
Voxel layer of data covering the continental United States with an invalid longitude.

To determine more information about a NetCDF file, it is recommended to use a data viewer. One of my favorites is Panoply.  With Panoply examining the longitude array is as simple as loading the NetCDF, and double clicking the variable that is to be examined. In our example, our longitude values range from 230.1 to 304.9.  If your data were to cross the prime meridian, this method of data correction will not be enough.

Graph for longitude values
Graph for longitude values.

Using the open source NCO tools, the necessary changes can easily be made.  NCO tools, otherwise known as NetCDF Operator tools, are a collection of command line applications which can be used to analyze and manipulate NetCDF files.  NCO has been supported by volunteers and professionals, with external support from DOE, NASA, and NSF .  The ncap2 tool from NCO can be used for arithmetic operations on NetCDF variables.  In general, the command is

ncap2 -s “expression” input.nc output.nc

Therefore, the following will correct the example dataset

ncap2 -s “lon=lon-360” example.nc correctedExample.nc

The new NetCDF will now draw in the correct location in ArcGIS Pro.

Correct projection of the United States
Data covering the continental United States is projected correctly

For more information, please check out What is a voxel layer? in the help topics.

Share this article

Subscribe
Notify of
0 Comments
Oldest
Newest
Inline Feedbacks
View all comments
Héctor Meléndez(@hrm)
May 25, 2020 6:29 pm

@Scott M. MacDonald Would this method work with a 10.5.1 GeoEvent Server. I know high availability is complex with that server role. Should we use a different approach for it?

Jon Quinn(@jquinn)
May 26, 2020 10:31 am

Yes, this would still work with GeoEvent Server. You’ll need to export the configurations from GeoEvent and import them into your new environment, as well as migrate the spatiotemporal data store over manually.

sai khader(@khaderkailash)
June 25, 2020 12:36 am

is it possible to clone the arcgis server with all deployments

Bill Moody(@bmoodysouthbendin-gov_southbend)
December 15, 2021 10:31 am

Hello! Thanks for the documentation on this. I had a question – In step 2 for both Portal and Server, you mention using the “same install directory as your original machine.” Is this referring to the new location that you moved your content directory to in step 1?

Also for datastore, there is no mention of moving the directories to a network location. Is this not necessary?

Lance Kirby(@kirby-lance3665)
November 11, 2022 10:41 am
Reply to  Bill Moody

Hi, I was wondering if you ever figured out question 1? I have the same question.

Gareth Baker(@gareth-baker_wessexwater)
February 1, 2022 4:38 am

We ran into an issue with following this process to move our hosting server from a single machine to multi machine site. We followed the process and as far as we could tell it had worked fine with the server validating and being able to publish hosted feature services. However we noticed a problem in the content item for editable feature services in that despite them being editable (as evidenced by being able to add them to a map and make changes) the setting were showing as not editable. When we tried to update them we got an error message… Read more »