<?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: Batch processing: turning NetCDF to raster in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408651#M32189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it returns an in-memory raster layer. Use SaveToLayerFile_management or CopyRaster_management to persist the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jul 2015 20:25:05 GMT</pubDate>
    <dc:creator>SteveLynch</dc:creator>
    <dc:date>2015-07-10T20:25:05Z</dc:date>
    <item>
      <title>Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408646#M32184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did a bit searching on the Internet and here's my practice:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy as ap&amp;nbsp; 
import glob&amp;nbsp; 
&amp;nbsp; 
# this will give you a Python list object that you can use to batch process all of your files&amp;nbsp; 
# just insert the path to your folder holding the netCDF files&amp;nbsp; 
cdfList = glob.glob('F:\\NLDAS 2-primary forcing\\test\\*.nc')&amp;nbsp; 
print cdfList


# now you can loop through your list and process each file one at a time&amp;nbsp; 
for cdf in cdfList:&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; print "Now processing: " + cdf&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; ap.md.MakeNetCDFRasterLayer(cdf,"pevapsfc","lon","lat",cdf+"_r")&amp;nbsp; 
print "Done!"&lt;/PRE&gt;&lt;P&gt;It ran smoothly but I didn't see anything on my output folder. Did I do something wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:34:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408646#M32184</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2021-12-11T18:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408647#M32185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of ArcGIS are you running?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Arc 10.X, it should be ap.MakeNetCDFRasterLayer_md for the tool, not ap.md.MakeNetCDFRasterLayer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Make_NetCDF_Raster_Layer/004300000006000000/" title="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Make_NetCDF_Raster_Layer/004300000006000000/"&gt;ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:06:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408647#M32185</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-07-10T20:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408648#M32186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;still nothing! weird! I know this should provide a layer file. where can I find that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:12:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408648#M32186</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-07-10T20:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408649#M32187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using 10.2.2&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:13:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408649#M32187</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-07-10T20:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408650#M32188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you doing this within a map document or outside?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If outside, you need to save a layer file for each one, as the help says&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"To save the output layer, right-click the layer in the ArcMap table of contents and click &lt;SPAN class="uicontrol"&gt;Save As Layer File&lt;/SPAN&gt;, or use the &lt;SPAN&gt;Save To Layer File&lt;/SPAN&gt; tool."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise, you can change the environment settings to guarantee geoprocessing outputs are added to the map document, if it doesn't add automatically after geoprocessing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:21:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408650#M32188</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-07-10T20:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408651#M32189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it returns an in-memory raster layer. Use SaveToLayerFile_management or CopyRaster_management to persist the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jul 2015 20:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408651#M32189</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2015-07-10T20:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch processing: turning NetCDF to raster</title>
      <link>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408652#M32190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't know there's a difference running code in and out of software and I found that very helpful! Thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 13:30:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/batch-processing-turning-netcdf-to-raster/m-p/408652#M32190</guid>
      <dc:creator>awei</dc:creator>
      <dc:date>2015-07-14T13:30:12Z</dc:date>
    </item>
  </channel>
</rss>

