本文簡要介紹 python 語言中 arcgis.raster.analytics.create_image_collection
的用法。
用法:
arcgis.raster.analytics.create_image_collection(image_collection, input_rasters, raster_type_name, raster_type_params=None, out_sr=None, context=None, source_mosaic_dataset=None, *, gis=None, future=False, **kwargs)
創建將參與 ortho-mapping 項目的圖像集合。提供通過引用使用輸入柵格以及通過上下文參數指定圖像集合屬性的規定。
該函數還可以通過將數據上傳到服務器,從本地柵格數據集在 ArcGIS Enterprise 和 ArcGIS Online 中創建托管影像圖層。可以根據多個輸入柵格創建集合。
為了使此函數在 ArcGIS Online 上運行,需要預先安裝適用於 Python 的 Azure 庫包(適用於 Python 的 Azure SDK - azure-storage-blob:12.1<= 版本 <=12.9)。參考https://docs.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-python#install-the-package
Parameter
Description
image_collection
必需,要創建的圖像集合的名稱。
影像集合可以是現有影像服務,其中該函數將創建鑲嵌數據集,然後現有托管影像服務將指向新的鑲嵌數據集。
如果圖像集合不存在,則會創建新的multi-tenant服務。
此參數可以是表示現有 image_collection 的項目,也可以是表示 image_collection 名稱的字符串(現有的或要創建的。)
input_rasters
必需,要添加到正在創建的圖像集合中的輸入柵格列表。該參數可以是以下任意一項:
圖像的門戶項目列表
圖像服務 URL
共享數據路徑(該路徑必須可由服務器訪問)
門戶上文件夾的名稱
本地柵格數據集的路徑
該函數可以通過將數據上傳到服務器,從本地柵格數據集創建企業和 AGOL 上的托管影像圖層。
raster_type_name
必需的字符串。用於將數據添加到圖像集合的柵格類型的名稱。
選擇清單:
[“Aerial”, “ASTER”, “DMCII”, “DubaiSat-2”, “GeoEye-1”, “GF-1 PMS”, “GF-1 WFV”,“GF-2 PMS”, “GRIB”, “HDF”, “IKONOS”, “Jilin-1”, “KOMPSAT-2”, “KOMPSAT-3”,“Landsat 1-5 MSS”, “Landsat 4-5 TM”, “Landsat 7 ETM+”, “Landsat 8”, “Landsat 9”,“NetCDF”, “PlanetScope”, “Pleiades-1”, “Pleiades NEO”, “QuickBird”, “RapidEye”,“Raster Dataset”, “ScannedAerial”, “Sentinel-2”, “SkySat”, “SPOT 5”, “SPOT 6”,“SPOT 7”, “Superview-1”, “Tiled Imagery Layer”, “UAV/UAS”, “WordView-1”,“WordView-2”, “WordView-3”, “WordView-4”, “ZY3-SASMAC”, “ZY3-CRESDA”]如果使用
source_mosaic_dataset
參數將現有鑲嵌數據集發布為動態影像圖層,則raster_type_name
參數可以設置為“無”,因為這不是必需的。例子:
“QuickBird”
raster_type_params
可選字典。其他
raster_type
特定參數。將柵格添加到圖像集合的過程可以通過指定其他柵格類型參數來控製。
柵格類型參數參數是一個字典。
字典可以包含productType、processingTemplate、pansharpenType、Filter、pansharpenWeights、ConstantZ、dem、zoffset、CorreateGeoid、ZFactor、StretchType、ScaleFactor、ValidRange
請查看下表(支持的柵格類型),了解有關每種柵格類型的產品類型、處理模板、全色銳化權重的更多詳細信息。
pansharpenType 的可能值 - [“Mean”、“IHS”、“Brovey”、“Esri”、“Mean”、“Gram-Schmidt”]
過濾器的可能值 - [無、“Sharpen”、“SharpenMore”]
StretchType 字典的值可以如下:
“None”
“最小最大; <分鍾>; <最大>”
“百分比最小最大; <最小百分比>; <最大百分比>”
“標準差; <標準偏差數>”
示例:{“StretchType”:“MinMax; <分鍾>; <最大>”}
ValidRange 字典的值可以如下:
“<掩碼最小值>,<掩碼最大值>”
示例:{“ValidRange”: “10, 200”}
例子:
{“productType”:”All”,”processingTemplate”:”Pansharpen”, “pansharpenType”:”Gram-Schmidt”,”filter”:”SharpenMore”, “pansharpenWeights”:”0.85 0.7 0.35 1”,”constantZ”:-9999}
out_sr
可選整數。服務的附加參數。
可以指定以下附加參數:
image_collection的空間參考;輸入幾何的空間參考或空間參考字典對象的眾所周知的 ID。
如果柵格類型名稱設置為“UAV/UAS”,則輸出圖像集合的空間參考將由定義的柵格類型參數確定。
context
可選字典。上下文參數用於提供附加輸入參數。
語法:{“image_collection_properties”: {“imageCollectionType”:”衛星”},”byref”:True}
使用
image_collection_properties
鍵設置 imageCollectionType 的值。注意:“imageCollectionType” 屬性對於圖像收集非常重要,稍後將通過正射映射係統服務進行調整。根據影像采集類型,正射測繪係統服務會選擇不同的算法進行調整。因此,如果圖像集合是通過引用創建的,則請求者應使用以下關鍵字根據圖像集合中圖像的類型設置此屬性。如果未設置imageCollectionType,則默認為“UAV/UAS”
如果
byref
設置為“True”,則不會上傳數據。如果未設置,則默認為“False”當嘗試從本地柵格數據集在 ArcGIS Online 中創建托管影像圖層時,
upload_properties
鍵可用於控製特定上傳參數。可用選項:
maxUploadConcurrency
:可選整數。用於大型上傳的最大並行連接數(當單個文件/blob 大小超過 64MB 時)。這是max_concurrency的參數BlobClient.upload_blob()方法。 (默認為 6)maxWorkerThreads
:可選整數。上傳多個文件時異步執行的最大線程數。這是max_workers的參數ThreadPoolExecutor()類。 (默認為無)displayProgress
:可選布爾值。如果設置為 True,將顯示一個進度條,用於跟蹤上傳到用戶光柵存儲的進度。 (默認為False)Example:
{“upload_properties”:{“maxUploadConcurrency”:8,“maxWorkerThreads”:20,“displayProgress”:True}}
context 參數還可用於指定是否構建概述、構建封裝、指定表示 NoData 等的像素值。
例子:
{“buildFootprints”:True,“footprintsArguments”:{“method”:”RADIOMETRY”,”minValue”:1,”maxValue”:5,“shrinkDistance”:50,”skipOverviews”:True,”updateBoundary”:True,“maintainEdge”:False,”simplification”:None,”numVertices”:20,“minThinnessRatio”:0.05,”maxSliverSize”:20,”requestSize”:2000,“minRegionSize”:100},“defineNodata”:True,“noDataArguments”:{“noDataValues”:[500],”numberOfBand”:99,”compositeValue”:True},“buildOverview”:True}上下文參數可用於在創建圖像集合時添加新字段。
例子:
{“fields”: [{“name”: “cloud_cover”, “type”: “Long”},{“name”: “cloud_shadow_count”, “type”: “Long”}]}source_mosaic_dataset
可選字符串。要發布為托管動態影像圖層的現有鑲嵌數據集的路徑。
要發布現有鑲嵌數據集,請在
input_rasters
參數中指定鑲嵌輸入數據的路徑。數據將上傳至ArcGIS Online。raster_type_name
參數可以設置為“無”,因為不需要從鑲嵌數據集發布影像圖層。注意:該選項僅適用於 ArcGIS 在線
例子:
“./data/temp_uploaded.gdb/test”
gis
僅關鍵字參數。可選的
GIS
對象。運行該工具的 GIS。如果未指定,則使用活動 GIS。future
僅關鍵字參數。可選的布爾值。如果為 True,則結果將是一個 GPJob 對象,並且結果將異步返回。
folder
僅關鍵字參數。可選的 str 或 dict。使用給定的文件夾名稱在門戶中創建一個文件夾(如果不存在),並將輸出保留在此文件夾中。
create_folder()
返回的字典也可以作為輸入傳入。例子:
{‘username’: ‘user1’,‘id’: ‘6a3b77c187514ef7873ba73338cf1af8’,‘title’: ‘trial’}- 返回
影像圖層項目
Supported Raster Types
Raster Type
pansharpenWeights
productType
processingTemplate
“QuickBird”
“0.85, 0.7, 0.35, 1”
“All” (default), “Basic”, “Orthorectified”, “Standard Orthoready”, “Standard”
“All Bands”, “Multispectral”, “Multispectral AComp”, “Panchromatic”, “Panchromatic AComp”, “Pansharpen”, “Pansharpen AComp”, “Pansharpen and Multispectral” (default)
“Orthorectified Acomp”, “Standard AComp”, “Standard OrthoreadyAcomp”
“Multispectral AComp” (default), “Panchromatic AComp”, “Pansharpen AComp”
“DubaiSat-2”
“0.166,0.167,0.167,0.5”
“All” (default), “Geo”, “Radio”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default)
“GF-1 PMS”
“0.2501,0.3646,0,0.3853”
“All” (default), “LEVEL 1”
“All Bands”, “Multispectral” , “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default)
“GF-1 WFV”
“All” (default), “LEVEL 1”
“Multispectral” (default)
“GF-2 PMS”
“0.2501,0.3646,0,0.3853”
“All” (default), “LEVEL 1”
“All Bands”, “Multispectral” , “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default)
“KOMPSAT-2”
“0.166,0.167,0.167,0.5”
“All” (default), “KOMPSAT-2 Scene 1A”, “KOMPSAT-2 Scene 2A”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default)
“KOMPSAT-3”
“0.166,0.167,0.167,0.5”
“All” (default), “Level 1G”, “Level 1O” “Level 1R”
“All Bands”, “Multispectral” , “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default)
“Landsat 9”
“0.42, 0.51, 0.07, 0.0”
“All” (default)
“All Bands”, “Brightness Temperature”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Spectral Indices”, “Surface Reflectance”, “Thermal”, “Top of Atmosphere Reflectance”, “Vegetation”, “Water” “Surface Temperature”
“Level1”
“All Bands”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Thermal”, “Vegetation”, “Water”
“Surface Reflectance”
“Surface Reflectance”
“Spectral Indices”
“Spectral Indices”
“Top of Atmosphere Reflectance”
“Top of Atmosphere Reflectance”
“Brightness Temperature”
“Brightness Temperature”
“Surface Temperature”
“Surface Temperature”
“Landsat 8”
“0.42, 0.51, 0.07, 0.0”
“All” (default)
“All Bands”, “Brightness Temperature”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Spectral Indices”, “Surface Reflectance”, “Thermal”, “Top of Atmosphere Reflectance”, “Vegetation”, “Water” “Surface Temperature”
“Level1”
“All Bands”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Thermal”, “Vegetation”, “Water”
“Surface Reflectance”
“Surface Reflectance”
“Spectral Indices”
“Spectral Indices”
“Top of Atmosphere Reflectance”
“Top of Atmosphere Reflectance”
“Brightness Temperature”
“Brightness Temperature”
“Surface Temperature”
“Surface Temperature”
“Landsat 7 ETM+”
“0.11, 0.14, 0.14, 0.61”
“All” (default)
“All Bands”, “Brightness Temperature”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Spectral Indices”, “Surface Reflectance”, “Thermal”, “Top of Atmosphere Reflectance”, “Vegetation”, “Water” “Surface Temperature”
“Level1”
“All Bands”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default),”QA”, “SnowIce”, “Thermal”, “Vegetation”, “Water”
“Surface Reflectance”
“Surface Reflectance”
“Spectral Indices”
“Spectral Indices”
“Top of Atmosphere Reflectance”
“Top of Atmosphere Reflectance”
“Brightness Temperature”
“Brightness Temperature”
“Surface Temperature”
“Surface Temperature”
“Landsat 4-5 TM”
“All” (default)
“All Bands”, “Brightness Temperature”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral” (default), “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral”, “QA”, “SnowIce”, “Spectral Indices”, “Surface Reflectance”, “Thermal”, “Top of Atmosphere Reflectance”, “Vegetation”, “Water” “Surface Temperature”
“Level1”
“All Bands”, “Cirrus”, “Cloud”,”Landcover”, “Multiband”, “Multispectral” (default), “Panchromatic”, “Pansharpen” , “Pansharpen and Multispectral”, “QA”, “SnowIce”, “Thermal”, “Vegetation”, “Water”
“Surface Reflectance”
“Surface Reflectance”
“Spectral Indices”
“Spectral Indices”
“Top of Atmosphere Reflectance”,
“Top of Atmosphere Reflectance”,
“Brightness Temperature”,
“Brightness Temperature”,
“Surface Temperature”
“Surface Temperature”
“Landsat 1-5 MSS”
“All” (default), “Level1”
“All Bands”, “Multiband”, “Multispectral” (default), “Pseudocolor”, “Thermal”, “QA”
“Sentinel-2”
“0.85, 0.7, 0.35, 1”
“ALL” (default)
“All Bands”, “BOA Reflectance-10m”, “BOA Reflectance-20m”, “BOA Reflectance-60m”, “Multispectral” (default), “Multispectral-10m”, “Multispectral-20m”, “Multispectral-60m”, “True Color”, “SCL-20m”, “SCL-60m” “Aerosol Optical Thickness”, “Water Vapour”, “BOA Reflectance”
“Level1”
“Multispectral” (default), “Multispectral-10m”, “Multispectral-20m”, “Multispectral-60m”, “True Color”
“Level2”
“BOA Reflectance-10m”, “BOA Reflectance-20m”, “BOA Reflectance-60m” “Aerosol Optical Thickness”, “Water Vapour”, “BOA Reflectance”
“GeoEye-1”
“0.41, 0.16, 0.13, 0.3”
“All” (default), “Basic”, “Geo”, “GeoProfessional” “Orthorectified”, “Standard”, “Standard Orthoready”,
“All Bands”, “Multispectral”, “Multispectral AComp”, “Panchromatic”, “Panchromatic AComp”, “Pansharpen”, “Pansharpen AComp”, “Pansharpen and Multispectral” (default)
“Orthorectified Acomp”, “Standard AComp”, “Standard OrthoreadyAcomp”
“Multispectral AComp” (default), “Panchromatic AComp”, “Pansharpen AComp”
“Pleiades-1”
“0.9, 0.75, 0.5, 0.5”
“All” (default), “ORTHO”, “PRIMARY”, “PROJECTED”
“All Bands”, “Multispectral”, “Multispectral Display”, “Multispectral Reflectance”, “Panchromatic”, “Panchromatic Display”, “Panchromatic Reflectance”, “Pansharpen” “Pansharpen and Multispectral” (default), “Pansharpen Display”, “Pansharpen Reflectance”
“ORTHO DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“ORTHO REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PRIMARY DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“PRIMARY REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PROJECTED DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Dispplay”
“PROJECTED REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“Pleiades Neo”
“0.45, 0.55, 0, 0”
“All” (default), “ORTHO”, “PRIMARY”, “PROJECTED”
“All Bands”, “Multispectral”, “Multispectral Display”, “Multispectral Reflectance”, “Panchromatic”, “Panchromatic Display”, “Panchromatic Reflectance”, “Pansharpen” “Pansharpen and Multispectral” (default), “Pansharpen Display”, “Pansharpen Reflectance”
“ORTHO DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“ORTHO REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PRIMARY DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“PRIMARY REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PROJECTED DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Dispplay”
“PROJECTED REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“SPOT 5”
“0.166,0.167,0.167,0.5”
“All” (default), “SPOT Scene 1A”, “SPOT Scene 2A”, “SPOTView Ortho”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen”, “Pansharpen and Multispectral” (default), “Pseudocolor”
“SPOT 6”
“0.45, 0.55, 0, 0”
“All” (default), “ORTHO”, “PRIMARY”, “PROJECTED”
“All Bands”, “Multispectral”, “Multispectral Display”, “Multispectral Reflectance”, “Panchromatic”, “Panchromatic Display”, “Panchromatic Reflectance”, “Pansharpen”, “Pansharpen and Multispectral” (default), “Pansharpen Display”, “Pansharpen Reflectance”
“ORTHO DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“ORTHO REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PRIMARY DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“PRIMARY REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PROJECTED DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Dispplay”
“PROJECTED REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“SPOT 7”
“0.45, 0.55, 0, 0”
“All” (default), “ORTHO”, “PRIMARY”, “PROJECTED”
“All Bands”, “Multispectral”, “Multispectral Display”, “Multispectral Reflectance”, “Panchromatic”, “Panchromatic Display”, “Panchromatic Reflectance”, “Pansharpen” “Pansharpen and Multispectral” (default), “Pansharpen Display”, “Pansharpen Reflectance”
“ORTHO DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“ORTHO REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PRIMARY DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Display”
“PRIMARY REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“PROJECTED DISPLAY”
“Multispectral Display” (default), “Panchromatic Display”, “Pansharpen Dispplay”
“PROJECTED REFLECTANCE”
“Multispectral Reflectance” (default), “Panchromatic Reflectance”, “Pansharpen Reflectance”
“IKONOS”
“0.378, 0.211, 0, 0.411”
“All” (default), “Geo”, “GeoProfessional”,
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen” “Pansharpen and Multispectral” (default),
“WorldView-1”
“All” (default), “Basic”, “Orthorectified”, “Standard”, “Standard Orthoready”
“Panchromatic” (default)
“WorldView-2”
“0.39, 0.23, 0.21, 0.17”
“All” (default), “Basic”, “Orthorectified”, “Standard Orthoready”, “Standard”
“All Bands”, “Multispectral”, “Multispectral AComp” “Panchromatic”, “Panchromatic AComp”, “Pansharpen AComp”, “Pansharpen” “Pansharpen and Multispectral” (default)
“Orthorectified Acomp”, “Standard AComp”, “Standard OrthoreadyAcomp”
“Multispectral AComp” (default), “Panchromatic AComp”, “Pansharpen AComp”
“WorldView-3”
“0.38, 0.25, 0.2, 0.16”
“All” (default), “Basic”, “Orthorectified”, “Standard Orthoready”, “Standard”
“All Bands”, “Multispectral”, “Multispectral AComp” “Panchromatic” , “Panchromatic AComp”, “Pansharpen”, “Pansharpen AComp”, “Pansharpen and Multispectral” (default), “SWIR”
“Orthorectified Acomp”, “Standard AComp”, “Standard OrthoreadyAcomp”
“Multispectral AComp” (default), “Panchromatic AComp”, “Pansharpen AComp”
“WorldView-4”
“0.39, 0.23, 0.21, 0.17”
“All” (default), “Basic”, “Standard OrthoReady”
“All Bands” “Multispectral”, “Panchromatic” “Pansharpen” , “Pansharpen and Multispectral” (default), “Multispectral AComp”, “Panchromatic AComp”, “Pansharpen AComp”
“ZY3-SASMAC”
“0.329, 0.509, 0, 0.162”
“All” (default), “LEVEL1”
“All Bands” “Double Line Stereo”, “Multispectral”, “Panchromatic”, “Panchromatic BWD”, “Panchromatic FWD”, “Panchromatic NAD”, “Pansharpen” “Pansharpen and Multispectral” (default) “Three Line Stereo”
“Raster Dataset”
“NetCDF”
“All” (default)
“Default”(default), “Multiband Composite”, “Vector Field”
“GRIB”
“All” (default)
“Default”(default), “Multiband Composite”, “Vector Field”
“HDF”
“All” (default)
“Default”(default), “Multiband Composite”, “Vector Field”
“ASTER”
“All” (default), “L1T”, “L1B”, “Surface Reflectance” “Surface Radiance”, “Surface Emissivity” “Surface Kinetic Temperature” “DEM” “Registered Radiance”
“VNIR” (default), “SWIR”, “TIR”, “Multispectral” (default), “TIR - Surface Emissivity”, “VNIR - Surface Reflectance”, “SWIR - Surface Reflectance”, “TIR - Surface kinetic Temperature”, “VNIR - Surface Radiance”, “SWIF - Surface Radiance”, “TIR - Surface Radiance”, “VNIR - Registered Radiance”, “VNIR - Registered Radiance”, “SWIR - Registered Radiance”, “TIR - Registered Radiance”, “Global Digital Elevation Model (ASTGTM)”, “Digital Elevation Model”, “All Bands”
“DMCii”
“All” (default), “L1R”, “L1T”
“Multispectral” (default), “ALL”, “Pseudocolor”
“RapidEye”
“All”, “Level1B”, “Level3A”, “Level3B”
“Multispectral” (default)
“SkySat”
“0.41, 0.16, 0.13, 0.3”
“All” (default), “Basic”, “Ortho”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen” , “Skysat Pansharpen”, “Visual” “Pansharpen and Multispectral” (default)
“Jilin-1”
“0.2501, 0.3646, 0”
“All” (default), “LEVEL1”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen” , “Pansharpen and Multispectral” (default)
“PlanetScope”
“0.166,0.167,0.167,0.5”
“All” (default), “Level1”, “Level3”
“Multispectral” (default)
“SuperView-1”
“0.85, 0.7, 0.35, 1”
“All” (default), “LEVEL1B”, “LEVEL2A”, “LEVEL3A”
“All Bands”, “Multispectral”, “Panchromatic”, “Pansharpen” , “Pansharpen and Multispectral” (default)
例子:
# Usage Example 1: create image collection using a list of image items. image_item_list = [<Item title:"YUN_0040.JPG" type:Image owner:admin>, <Item title:"YUN_0041.JPG" type:Image owner:admin>, <Item title:"YUN_0042.JPG" type:Image owner:admin>, <Item title:"YUN_0043.JPG" type:Image owner:admin>, <Item title:"YUN_0044.JPG" type:Image owner:admin>] params = {"gps": [['YUN_0040.JPG', 34.0069887, -117.09279029999999], ['YUN_0041.JPG', 34.0070131, -117.09311519972222], ['YUN_0042.JPG', 34.0070381, -117.09346329972222], ['YUN_0043.JPG', 34.00706339972222, -117.09381479999999], ['YUN_0044.JPG', 34.0070879, -117.09416449999999]], "cameraProperties":{"maker":"Yuneec", "model":"E90", "focallength":8, "columns":5472, "rows":3648, "pixelsize":0.0024}, "isAltitudeFlightHeight":"false", "averagezdem": {"url": "https://rais.dev.geocloud.com/arcgis/rest/services/Hosted/WorldSRTM90m/ImageServer"}} img_coll_result = create_image_collection(image_collection="imageCollection", input_rasters=image_item_list, raster_type_name="UAV/UAS", raster_type_params=params, out_sr=32632) # Usage Example 2: This example creates an image collection from the datasets detected in the input folder. img_coll_result = create_image_collection(image_collection="imageCollection", input_rasters=r"C:\data", raster_type_name="Raster Dataset", gis=gis) # Usage Example 3: This example creates an image collection using Landsat 1-5 MSS Raster Type with a Level 1 product and a Multispectral template. landsat15_collection = create_image_collection(image_collection="landsat15_collection", input_rasters=r"C:\data\Landsat15MSS", raster_type_name="Landsat 1-5 MSS", raster_type_params={"productType": "Level1", "processingTemplate": "Multispectral"}, gis=gis) # Usage Example 4: This example creates an image collection using Sentinel-2 Raster Type with a Level 1 product and a Multispectral template. sentinel2_collection = create_image_collection(image_collection="sentinel2_collection", input_rasters=r"C:\data\Sentinel2", raster_type_name="Sentinel-2", raster_type_params={"productType": "Level1", "processingTemplate": "Multispectral-10m"}, gis=gis) # Usage Example 5: This example creates an image collection using Pleiades-1 Raster Type with an Ortho product and a Pansharpened template. pleiades1_collection = create_image_collection(image_collection="pleiades1_collection", input_rasters=r"C:\data\Pleiades1", raster_type_name="Pleiades-1", raster_type_params={"productType":"ORTHO","processingTemplate":"Pansharpen"}, gis=gis) # Usage Example 6: This example creates an image collection using SPOT 6 Raster Type with an Ortho Reflectance product and a Pansharpen Reflectance template. spot6_collection = create_image_collection(image_collection="spot6_collection", input_rasters=r"C:\data\SPOT6", raster_type_name="SPOT 6", raster_type_params={"productType": "ORTHO REFLECTANCE", "processingTemplate": "Pansharpen Reflectance"}, gis=gis) # Usage Example 7: This example creates an image collection using WorldView-2 Raster Type with a Pansharpen and Multispectral template. worldview2_collection = create_image_collection(image_collection="worldview2_collection", input_rasters=r"C:\data\WorldView", raster_type_name="WorldView-2", raster_type_params= {"productType": "Basic", "processingTemplate": "Pansharpen and Multispectral"}, gis=gis) # Usage Example 8: This example creates an image collection from Tiled Imagery Layers. tiled_layers_collection = create_image_collection(image_collection="tiled_collection", input_rasters=[tile_lyr_input1, tile_lyr_input2], raster_type_name="Tiled Imagery Layer", gis=gis) # Usage Example 9: This example creates an image collection on ArcGIS Enterprise from datastore by reference. sentinel_by_ref_collection = create_image_collection(image_collection="sentinel_by_ref_multispectral", input_rasters=["/rasterStores/LocalRasterStore/S2A_MSIL1C_20180624T184921_N0206_R113_T10SEJ_20180624T234856.SAFE", "/rasterStores/LocalRasterStore/S2B_MSIL1C_20180622T185919_N0206_R013_T10SEJ_20180622T205930.SAFE" ], raster_type_name="Sentinel-2", raster_type_params={"productType":"All","processingTemplate":"Multispectral"}, context={"image_collection_properties":{"imageCollectionType":"Satellite"},"byref":True}, gis = gis) # Usage Example 10: This example publishes an existing mosaic dataset as a dynamic imagery layer in ArcGIS Online. # Specify the actual source data path referenced by the uploaded mosaic dataset using input_rasters parameter. The data would be uploaded # to the ArcGIS Online's user store from this path. landsat_mosaic = create_image_collection(image_collection="landsat_image_collection", input_rasters=[r"C:\data\landsat_data_folder"], raster_type_name=None, context={"upload_properties":{"displayProgress":True}}, source_mosaic_dataset=r"C:\data\md.gdb\landsat", gis=gis)
相關用法
- Python ArcGIS create_space_time_cube用法及代碼示例
- Python ArcGIS create_viewshed用法及代碼示例
- Python ArcGIS create_route_layers用法及代碼示例
- Python ArcGIS create_drive_time_areas用法及代碼示例
- Python ArcGIS create_buffers用法及代碼示例
- Python ArcGIS create_watersheds用法及代碼示例
- Python ArcGIS calculate_statistics用法及代碼示例
- Python ArcGIS classify用法及代碼示例
- Python ArcGIS compute_change_raster用法及代碼示例
- Python ArcGIS ccdc_analysis用法及代碼示例
- Python ArcGIS copy_raster用法及代碼示例
- Python ArcGIS compute_accuracy_for_object_detection用法及代碼示例
- Python ArcGIS connect_origins_to_destinations用法及代碼示例
- Python ArcGIS copy_to_data_store用法及代碼示例
- Python ArcGIS colormap用法及代碼示例
- Python ArcGIS convert_feature_to_raster用法及代碼示例
- Python arcgis.learn.classify_objects用法及代碼示例
- Python ArcGIS convert_raster_to_feature用法及代碼示例
- Python ArcGIS cosh用法及代碼示例
- Python ArcGIS contour用法及代碼示例
- Python ArcGIS clip_layer用法及代碼示例
- Python arcgis.learn.classify_pixels用法及代碼示例
- Python ArcGIS cellstats_range用法及代碼示例
- Python ArcGIS calculate_fields用法及代碼示例
- Python ArcGIS con用法及代碼示例
注:本文由純淨天空篩選整理自arcgis.com大神的英文原創作品 arcgis.raster.analytics.create_image_collection。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。