TransWikia.com

NetCDF to raster layer, spacing in their coordinate values

Geographic Information Systems Asked on April 3, 2021

I’m trying to convert a NetCDF file to a raster layer in ArcGIS Pro, in order to make a space-time animation.
But I’m getting a error message that I don’t know how to solve:

ERROR 000276: One or both dimensions have variable spacing in their coordinate values

I know that the spacing between x-coordinates must be equal and the spacing between y-coordinates must be equal, but the differences between latitudes decreases towards poles, so, how can I correct this?

This is the code that I have so far:

# Import system modules
import arcpy


# Set local variables
inNetCDFFile = "C:/Users/Miguel/Documents/ORIGINS/animationWRF/data/wrfout/wrfout_d03_2020-03- 
09_00_00_00.nc"
variable = "CO2_ANT"
XDimension = "XLON"
YDimension = "YLAT"
outRasterLayer = "C:/Users/Miguel/Documents/ORIGINS/animationWRF/data/netcdf2raster/wrfout_d03_2020- 
03-09_00_00_00"
bandDimmension = ""
dimensionValues = ""
valueSelectionMethod = ""

# Execute MakeNetCDFRasterLayer
arcpy.MakeNetCDFRasterLayer_md(inNetCDFFile, variable, XDimension, YDimension,
                           outRasterLayer, bandDimmension, dimensionValues, 
                           valueSelectionMethod)

How can I solve this issue?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP