<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Make NetCDF Raster Layer via Phyton. RuntimeError: Object: Error in executing too in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570861#M32339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The function mentions that it takes a Value Table for that parameter, so your values should be specified with a list of lists (or tuples), e.g:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;[["time","1995"]]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also create an object to &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000013000000"&gt;store the value tables&lt;/A&gt;&lt;SPAN&gt;, but I think the nested approach is simpler. You should also be able to use the 'flattened' syntax, which has each value pair separated by a semicolon: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;'time 1995;time 1994'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 May 2013 05:36:54 GMT</pubDate>
    <dc:creator>ShaunWalbridge</dc:creator>
    <dc:date>2013-05-27T05:36:54Z</dc:date>
    <item>
      <title>Make NetCDF Raster Layer via Phyton. RuntimeError: Object: Error in executing tool</title>
      <link>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570860#M32338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I try to automize the creation of NetCDF Raster Layer via Phyton.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the tools help to get the basic syntax.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So a simple import from my data with this code works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.MakeNetCDFRasterLayer_md("E:/Daten/Geodata/LPJ Outputs/hadley co2 konstant fix 2 mit single crops run/pft_harvest_maize.nc","harvest","longitude","latitude","test_netcdf_raster")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;Result 'test_netcdf_raster'&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so that's no problem. No I would like to specify the dimension values within the same code. Unfortunatly the tools help doesn't provide an example for this but in the syntax description one can find [[dimension, {value}],...]...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I tried the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; arcpy.MakeNetCDFRasterLayer_md("E:/Daten/Geodata/LPJ Outputs/hadley co2 konstant fix 2 mit single crops run/pft_harvest_maize.nc","harvest","longitude","latitude","test_netcdf_raster_2","",[["time",{"1995"}]],"BY_VALUE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;than I get this error message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Runtime error &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Traceback (most recent call last):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; File "c:\program files (x86)\arcgis\desktop10.1\arcpy\arcpy\md.py", line 171, in MakeNetCDFRasterLayer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise e&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RuntimeError: Object: Error in executing tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so can anybody help me to fix this? Also I would be interested if there is a way to make a loop for this operation, so that I can create&amp;nbsp; NetCDF Raster Layers for the years from 1995-2005 in a loop...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;any help would be apreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best johannes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 08:17:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570860#M32338</guid>
      <dc:creator>JS1</dc:creator>
      <dc:date>2013-05-08T08:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: Make NetCDF Raster Layer via Phyton. RuntimeError: Object: Error in executing too</title>
      <link>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570861#M32339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The function mentions that it takes a Value Table for that parameter, so your values should be specified with a list of lists (or tuples), e.g:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;[["time","1995"]]&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also create an object to &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#//002z00000013000000"&gt;store the value tables&lt;/A&gt;&lt;SPAN&gt;, but I think the nested approach is simpler. You should also be able to use the 'flattened' syntax, which has each value pair separated by a semicolon: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;'time 1995;time 1994'&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 05:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570861#M32339</guid>
      <dc:creator>ShaunWalbridge</dc:creator>
      <dc:date>2013-05-27T05:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Make NetCDF Raster Layer via Phyton. RuntimeError: Object: Error in executing too</title>
      <link>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570862#M32340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you Shawn for your valuable comment. The following code solved my problem and I hope others can use it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.MakeNetCDFRasterLayer_md("C:/pft_harvest_maize.nc","harvest","longitude","latitude","test_nedcf_raster_2","#","time 1995","BY_VALUE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Still I started to use the R software environment to process my NetCDF Data. Comes with more speed and ease to process several layers and makes it possible to apply any given statistical Function on your Rasterdata. The results can be written to normal Rasterfiles and than be visualized our outlayed in ArcGIS. For anybody who is not afraid to use a little bit of code when working with raster data I would highly recommend R.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 06:44:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/make-netcdf-raster-layer-via-phyton-runtimeerror/m-p/570862#M32340</guid>
      <dc:creator>JS1</dc:creator>
      <dc:date>2013-05-27T06:44:27Z</dc:date>
    </item>
  </channel>
</rss>

