analyze_raster_bigdata

In [11]:
from arcgis.gis import *
from getpass import getpass
password = getpass()
portal = GIS("https://dev003246.esri.com/portal", "admin",password)
········
In [12]:
montana_landsat_search = portal.content.search("Landast_Montana")
montana_landsat_search
Out[12]:
[<Item title:"ImgSrv_Landast_Montana2015" type:Image Service owner:admin>,
 <Item title:"ImgSrv_Landast_Montana2014" type:Image Service owner:admin>]
In [13]:
montana_landsat = montana_landsat_search[0]
In [14]:
search_results = portal.content.search('owner:admin', item_type='Image Layer')
search_results
Out[14]:
[<Item title:"GeneratedRasterProduct_QOEHJE" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_L5K0YV" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_31RY1Z" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_6HKB4N" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_SOZF4T" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_DTUH8A" type:Image Service owner:admin>,
 <Item title:"SummarizeRasterWithin_EUE3W2" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_N4RITA" type:Image Service owner:admin>,
 <Item title:"ImgSrv_Landast_Montana2015" type:Image Service owner:admin>,
 <Item title:"GeneratedRasterProduct_MMGS91" type:Image Service owner:admin>]
In [15]:
raster_analysis_result = search_results[0]
In [16]:
location = arcgis.geocoding.geocode("Marthas Basin, Montana")[0]

base_map = portal.map(location, 12)

natural_color_map = portal.map(location, 12)
natural_color_map.add_layer(montana_landsat)

false_color_map = portal.map(location, 12)
false_color_map.add_layer(raster_analysis_result)
In [17]:
import ipywidgets as widgets

tab = widgets.Tab([base_map, natural_color_map, false_color_map])
tab.set_title(0, 'base map')
tab.set_title(1, 'Natural Color')
tab.set_title(2, 'False Color')
tab
In [ ]:
 
In [ ]: