<?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: Can not display netCDF using ArcGIS pro jupyter notebook in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/can-not-display-netcdf-using-arcgis-pro-jupyter/m-p/793292#M33395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone face this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 14:52:18 GMT</pubDate>
    <dc:creator>LeiZhou2</dc:creator>
    <dc:date>2019-10-02T14:52:18Z</dc:date>
    <item>
      <title>Can not display netCDF using ArcGIS pro jupyter notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-not-display-netcdf-using-arcgis-pro-jupyter/m-p/793291#M33394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I read netCDF file using ArcGIS pro Jupyter notebook. But I can not display it on ESRI basemap. Who can help me to solve this problem? The code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from arcgis.gis import GIS&lt;BR /&gt;arcgis_online = GIS()&lt;BR /&gt;subset_map = arcgis_online.map("USA")&lt;BR /&gt;subset_map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "C:/Users/leizhou-admin/Downloads/Hist"&lt;BR /&gt;in_netcdf = "**/tasmax_day_ACCESS1-0_historical_r1i1p1_20050101-20051231.LOCA_2016-04-02.16th.nc"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable = "tasmax"&lt;BR /&gt;XDimension = "lon"&lt;BR /&gt;YDimension = "lat"&lt;BR /&gt;outRasterLayer = "tmax28.lyr"&lt;BR /&gt;bandDimmension = "time"&lt;BR /&gt;dimensionValue = "5/19/2005 12:00:00 PM"&lt;BR /&gt;valueSelectionMethod = "BY_VALUE"&lt;BR /&gt;cellRegistration = ""&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;# Execute MakeNetCDFRasterLayer&lt;BR /&gt;tmax_layer = arcpy.MakeNetCDFRasterLayer_md(in_netcdf, variable, XDimension, YDimension,&lt;BR /&gt; outRasterLayer, bandDimmension, dimensionValue, &lt;BR /&gt; valueSelectionMethod, cellRegistration)&lt;BR /&gt;arcpy.SaveToLayerFile_management(outRasterLayer, "tamx.lyr", "ABSOLUTE")&lt;BR /&gt;subset_map.add_layer("tamx.lyr")&lt;BR /&gt;subset_map&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error information is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; padding: 1px 0px;"&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;---------------------------------------------------------------------------&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;RuntimeError&lt;/SPAN&gt;                              Traceback (most recent call last)&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;&amp;lt;ipython-input-10-e90e6e86e606&amp;gt;&lt;/SPAN&gt; in &lt;SPAN class="" style="color: #60c6c8;"&gt;&amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;     14&lt;/SPAN&gt;                                valueSelectionMethod, cellRegistration)&lt;SPAN class="" style="color: #00a250;"&gt;     15&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;SaveToLayerFile_management&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;outRasterLayer&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"tamx.lyr"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; &lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"ABSOLUTE"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;---&amp;gt; 16&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt; &lt;/SPAN&gt;subset_map&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;add_layer&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"tamx.lyr"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;     17&lt;/SPAN&gt; subset_map &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py&lt;/SPAN&gt; in &lt;SPAN class="" style="color: #60c6c8;"&gt;add_layer&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;(self, item, options)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    722&lt;/SPAN&gt;         &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;if&lt;/SPAN&gt; options &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;is&lt;/SPAN&gt; &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;None&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    723&lt;/SPAN&gt;             options &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;{&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;}&lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;--&amp;gt; 724&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;         &lt;/SPAN&gt;self&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;_add_layer_to_widget&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;item&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; options&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    725&lt;/SPAN&gt; &lt;SPAN class="" style="color: #00a250;"&gt;    726&lt;/SPAN&gt;     &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;def&lt;/SPAN&gt; _add_layer_to_webmap&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; item&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; options&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\widgets\_mapview.py&lt;/SPAN&gt; in &lt;SPAN class="" style="color: #60c6c8;"&gt;_add_layer_to_widget&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;(self, item, options)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    779&lt;/SPAN&gt;                     self&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;.&lt;/SPAN&gt;_add_layer_to_widget&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;item_&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; options&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    780&lt;/SPAN&gt;         &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;else&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;--&amp;gt; 781&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;             &lt;/SPAN&gt;&lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;raise&lt;/SPAN&gt; RuntimeError&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #0065ca; font-weight: bold;"&gt;"Cannot infer layer: will not be added to map"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #00a250;"&gt;    782&lt;/SPAN&gt; &lt;SPAN class="" style="color: #00a250;"&gt;    783&lt;/SPAN&gt;     &lt;SPAN class="" style="color: #007427; font-weight: bold;"&gt;def&lt;/SPAN&gt; _add_notype_layer&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;(&lt;/SPAN&gt;self&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; item&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;,&lt;/SPAN&gt; lyr_json&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b27d12; font-weight: bold;"&gt;:&lt;/SPAN&gt;&lt;SPAN class="" style="color: #b22b31; font-weight: bold;"&gt;RuntimeError&lt;/SPAN&gt;: Cannot infer layer: will not be added to map&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:51:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-not-display-netcdf-using-arcgis-pro-jupyter/m-p/793291#M33394</guid>
      <dc:creator>LeiZhou2</dc:creator>
      <dc:date>2019-10-02T14:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can not display netCDF using ArcGIS pro jupyter notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/can-not-display-netcdf-using-arcgis-pro-jupyter/m-p/793292#M33395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone face this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:52:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/can-not-display-netcdf-using-arcgis-pro-jupyter/m-p/793292#M33395</guid>
      <dc:creator>LeiZhou2</dc:creator>
      <dc:date>2019-10-02T14:52:18Z</dc:date>
    </item>
  </channel>
</rss>

