1

I am basically copying and pasting the code provided on Esri's website and every time I try to run it in ipython, the program crashes and needs to restart the kernels. The code is below, does anyone know what is happening? Is there a known bug in the programming for this?

#Import system modules
import arcpy

# Set local variables
inNetCDFFile = "C:/Users/alex/Downloads/soilw.mon.mean.V2.nc"
variable = "soil"
outTableView = "fps_001"
rowDimension = "time"
dimensionValue = "[[lat{39.8736}],[lon{-104.3379}]]"
valueSelectionMethod = ""

# Execute MakeNetCDFTableView
arcpy.MakeNetCDFTableView_md(inNetCDFFile, variable, outTableView, rowDimension, dimensionValue,valueSelectionMethod)
  • Try putting your lat and long is as strings rather than numbers – Oliver Burdekin Apr 9 '15 at 18:42
  • I like the suggestion; but if you mean simply add a ' to the outside of lat and lon to make 'lat' 'lon'. I tried it, and I get an error. – Alexander Maas Apr 11 '15 at 12:36
  • No no. Check the tool. The numbers are actually taken as strings – Oliver Burdekin Apr 11 '15 at 15:53
  • Send me your email – Oliver Burdekin Apr 17 '15 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.