0

I have a NetCDF file that has locations and events stored in 2D coordinates. For instance, the coordinates are stored like this lat(x,y), lon(x,y). Please refer to the latitude variable example image attached below for what i mean

How can I open such a file in ArcGIS Pro without interpolation or any other conversion?

When I open it up it displays nothing as ArcGIS Pro is unable to read the data due to file being in 2D coordinate system. It gives the error: "One or both dimensions have variable spacing in their coordinate values" enter image description here

5
  • 2
    lat(x,y) and lon(x,y) don't make sense. Can you post the CSV file for download? If not, can you include a screen shot of the CSV header and the first row or two of data?
    – GBG
    Jul 13, 2021 at 15:27
  • @GBG sorry its a netcdf file. i just mistyped it. it looks something like this cfconventions.org/Data/cf-conventions/cf-conventions-1.2/build/…
    – Rehan
    Jul 13, 2021 at 15:39
  • lat(x,y) and lon(x,y) make sense for use cases like projected coordinate systems. Can you show us the netcdf header info, like ncdump -h filename.nc gdalinfo filename.nc or something?
    – Dave X
    Jul 24, 2021 at 16:15
  • @DaveX i have added a screenshot which shows information about the netcdf from the Panoply spoftware. It shows that each variable is a 2D variable and if you see the header, it has x,y dimensions and lat and lon. This is what my problem is. Could you help me with this?
    – Rehan
    Jul 27, 2021 at 15:19
  • It doesn't look like your netcdf file has metadata enough to determine the projection. Several examples in cfconventions.org/Data/cf-conventions/cf-conventions-1.2/build/… show details on how to map projected coordinates to lat-lon in CF, but your screenshot doesn't appear to show any vars/metadata for projected coordinates. Lacking those, Jersey Andy's suggestion is good: several datasets on a random lat,lon points. Something like the NCO operators' ncks -H filename.nc would dump into time,lat,lon,value records that could be converted into x,y, Point Data CSV files.
    – Dave X
    Jul 27, 2021 at 19:16

1 Answer 1

1

Get your data into a simple CSV format, then use the "XY Point Data" option on the "Add Data" menu.

https://pro.arcgis.com/en/pro-app/latest/help/mapping/layer-properties/add-x-y-coordinate-data-as-a-layer.htm

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/xy-table-to-point.htm

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.