<?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  arcpy.MakeNetCDFRasterLayer_md tool help in Esri Certified Individuals Questions</title>
    <link>https://community.esri.com/t5/esri-certified-individuals-questions/arcpy-makenetcdfrasterlayer-md-tool-help/m-p/765502#M24</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My name is Amanda, and I have a quick question regarding the&amp;nbsp;&lt;SPAN&gt;arcpy.MakeNetCDFRasterLayer_md tool. I figured this group of experts would be a great resource for answering my question&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/SPAN&gt;I am in the process of running the&amp;nbsp;arcpy.MakeNetCDFRasterLayer_md tool for over 12000 netcdf files, and I am having issues with the tool. My script works and is able to convert netcdfs to tiffs through a combination of the&amp;nbsp;&lt;SPAN&gt;arcpy.MakeNetCDFRasterLayer_md and&amp;nbsp;arcpy.CopyRaster_management tools, but after about 2000 files the script errors with "ERROR 000271: Cannot open the input datasets". It is not a data set&amp;nbsp;issue, as if you start the script again at the failing point, it works for the next 2000+ data files and errors again. I am wondering why this is happening. I have a suspicion&amp;nbsp;that it is memory related or environment related, but I cannot seem to fix the issue. I have attached the script below (not including the loop information or specific directory information). Again, this is not a syntax issue as it works. It seems like a deeper issue with the tool.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My questions include:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.do i need to set any temp environments&amp;nbsp;to stop the error from happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.do i need to clear the memory? I attempted this but any guidance would help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. why doesn't the tool output the raster through&amp;nbsp;arcpy.MakeNetCDFRasterLayer_md? why do you have to create a copy through&amp;nbsp;CopyRaster_management in order to extract the data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amanda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;arcpy.CheckOutExtension("Spatial")&lt;BR /&gt;in_netCDF_file=os.path.join( directory where netcdf files are stored)&lt;BR /&gt;variable=netcdf file name+".tif"&lt;BR /&gt;x_dimension="lon"&lt;BR /&gt;y_dimension="lat"&lt;BR /&gt;out_raster_layer=os.path.join(output to same directory where netcdf files are stored plus file name)&lt;BR /&gt;band_dimension=""&lt;BR /&gt;dimension_values=""&lt;BR /&gt;value_selection_method="BY_VALUE"&lt;BR /&gt;k_tiff=arcpy.MakeNetCDFRasterLayer_md(in_netCDF_file, variable, x_dimension, y_dimension, out_raster_layer, band_dimension, dimension_values, value_selection_method)&lt;/P&gt;&lt;P&gt;in_raster=k_tiff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out_rasterdataset=os.path.join(output to new directory called tiffs)&lt;BR /&gt;config_keyword=""&lt;BR /&gt;background_value=""&lt;BR /&gt;onebit_to_eightbit="NONE"&lt;BR /&gt;colormap_to_RGB="NONE"&lt;BR /&gt;pixel_type=""&lt;BR /&gt;scale_pixel_value="NONE"&lt;BR /&gt;RGB_to_Colormap="NONE"&lt;BR /&gt;transform="NONE"&lt;BR /&gt;format="TIFF"&lt;BR /&gt;nodata_value="-2147483647"&lt;BR /&gt;arcpy.CopyRaster_management(in_raster, out_rasterdataset, config_keyword, background_value, nodata_value, onebit_to_eightbit, colormap_to_RGB, pixel_type, scale_pixel_value, RGB_to_Colormap, format, transform)&lt;BR /&gt;#checkin arcpy spatial toolset&lt;BR /&gt;arcpy.CheckInExtension("Spatial")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Nov 2017 03:46:18 GMT</pubDate>
    <dc:creator>amandarumsey</dc:creator>
    <dc:date>2017-11-21T03:46:18Z</dc:date>
    <item>
      <title>arcpy.MakeNetCDFRasterLayer_md tool help</title>
      <link>https://community.esri.com/t5/esri-certified-individuals-questions/arcpy-makenetcdfrasterlayer-md-tool-help/m-p/765502#M24</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My name is Amanda, and I have a quick question regarding the&amp;nbsp;&lt;SPAN&gt;arcpy.MakeNetCDFRasterLayer_md tool. I figured this group of experts would be a great resource for answering my question&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp;&lt;/SPAN&gt;I am in the process of running the&amp;nbsp;arcpy.MakeNetCDFRasterLayer_md tool for over 12000 netcdf files, and I am having issues with the tool. My script works and is able to convert netcdfs to tiffs through a combination of the&amp;nbsp;&lt;SPAN&gt;arcpy.MakeNetCDFRasterLayer_md and&amp;nbsp;arcpy.CopyRaster_management tools, but after about 2000 files the script errors with "ERROR 000271: Cannot open the input datasets". It is not a data set&amp;nbsp;issue, as if you start the script again at the failing point, it works for the next 2000+ data files and errors again. I am wondering why this is happening. I have a suspicion&amp;nbsp;that it is memory related or environment related, but I cannot seem to fix the issue. I have attached the script below (not including the loop information or specific directory information). Again, this is not a syntax issue as it works. It seems like a deeper issue with the tool.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;My questions include:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1.do i need to set any temp environments&amp;nbsp;to stop the error from happening?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2.do i need to clear the memory? I attempted this but any guidance would help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. why doesn't the tool output the raster through&amp;nbsp;arcpy.MakeNetCDFRasterLayer_md? why do you have to create a copy through&amp;nbsp;CopyRaster_management in order to extract the data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advise would be greatly appreciated!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Amanda&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;arcpy.CheckOutExtension("Spatial")&lt;BR /&gt;in_netCDF_file=os.path.join( directory where netcdf files are stored)&lt;BR /&gt;variable=netcdf file name+".tif"&lt;BR /&gt;x_dimension="lon"&lt;BR /&gt;y_dimension="lat"&lt;BR /&gt;out_raster_layer=os.path.join(output to same directory where netcdf files are stored plus file name)&lt;BR /&gt;band_dimension=""&lt;BR /&gt;dimension_values=""&lt;BR /&gt;value_selection_method="BY_VALUE"&lt;BR /&gt;k_tiff=arcpy.MakeNetCDFRasterLayer_md(in_netCDF_file, variable, x_dimension, y_dimension, out_raster_layer, band_dimension, dimension_values, value_selection_method)&lt;/P&gt;&lt;P&gt;in_raster=k_tiff&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out_rasterdataset=os.path.join(output to new directory called tiffs)&lt;BR /&gt;config_keyword=""&lt;BR /&gt;background_value=""&lt;BR /&gt;onebit_to_eightbit="NONE"&lt;BR /&gt;colormap_to_RGB="NONE"&lt;BR /&gt;pixel_type=""&lt;BR /&gt;scale_pixel_value="NONE"&lt;BR /&gt;RGB_to_Colormap="NONE"&lt;BR /&gt;transform="NONE"&lt;BR /&gt;format="TIFF"&lt;BR /&gt;nodata_value="-2147483647"&lt;BR /&gt;arcpy.CopyRaster_management(in_raster, out_rasterdataset, config_keyword, background_value, nodata_value, onebit_to_eightbit, colormap_to_RGB, pixel_type, scale_pixel_value, RGB_to_Colormap, format, transform)&lt;BR /&gt;#checkin arcpy spatial toolset&lt;BR /&gt;arcpy.CheckInExtension("Spatial")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 03:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-certified-individuals-questions/arcpy-makenetcdfrasterlayer-md-tool-help/m-p/765502#M24</guid>
      <dc:creator>amandarumsey</dc:creator>
      <dc:date>2017-11-21T03:46:18Z</dc:date>
    </item>
    <item>
      <title>Re:  arcpy.MakeNetCDFRasterLayer_md tool help</title>
      <link>https://community.esri.com/t5/esri-certified-individuals-questions/arcpy-makenetcdfrasterlayer-md-tool-help/m-p/765503#M25</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see your duplicate thread&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.esri.com/thread/205494-arcpy-makenetcdfrasterlayermd-batch-problems"&gt;https://community.esri.com/thread/205494-arcpy-makenetcdfrasterlayermd-batch-problems&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Nov 2017 12:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/esri-certified-individuals-questions/arcpy-makenetcdfrasterlayer-md-tool-help/m-p/765503#M25</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-11-21T12:34:59Z</dc:date>
    </item>
  </channel>
</rss>

