Export.image.toAsset
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
किसी इमेज को रेस्टर के तौर पर Earth Engine ऐसेट में एक्सपोर्ट करने के लिए, एक बैच टास्क बनाता है. Tasks टैब से टास्क शुरू किए जा सकते हैं.
इस्तेमाल | रिटर्न |
---|
Export.image.toAsset(image, description, assetId, pyramidingPolicy, dimensions, region, scale, crs, crsTransform, maxPixels, shardSize, priority) | |
आर्ग्यूमेंट | टाइप | विवरण |
---|
image | इमेज | एक्सपोर्ट की जाने वाली इमेज. |
description | स्ट्रिंग, ज़रूरी नहीं | टास्क का ऐसा नाम जिसे आसानी से पढ़ा जा सकता है. डिफ़ॉल्ट रूप से, "myExportImageTask" पर सेट होता है. |
assetId | स्ट्रिंग, ज़रूरी नहीं | डेस्टिनेशन एसेट का आईडी. |
pyramidingPolicy | ऑब्जेक्ट, ज़रूरी नहीं | इमेज में मौजूद हर बैंड पर लागू होने वाली पिरामिडिंग नीति, जिसे बैंड के नाम से दिखाया गया है. वैल्यू में से कोई एक वैल्यू होनी चाहिए: मीन, सैंपल, कम से कम, ज़्यादा से ज़्यादा या मोड. डिफ़ॉल्ट रूप से, "mean" पर सेट होता है. सभी बैंड के लिए डिफ़ॉल्ट वैल्यू बदलने के लिए, एक खास बटन,
".default" का इस्तेमाल किया जा सकता है. |
dimensions | Number|String, optional | एक्सपोर्ट की गई इमेज के लिए इस्तेमाल किए जाने वाले डाइमेंशन. ज़्यादा से ज़्यादा डाइमेंशन के तौर पर, एक पॉज़िटिव पूर्णांक या
"WIDTHxHEIGHT" का इस्तेमाल किया जा सकता है. इसमें WIDTH और HEIGHT, दोनों पॉज़िटिव पूर्णांक होते हैं. |
region | Geometry.LinearRing|Geometry.Polygon|String, ज़रूरी नहीं | एक्सपोर्ट किए जाने वाले इलाके को दिखाने वाला लीनियर रिंग, पॉलीगॉन या निर्देशांक. इन्हें ज्यामिति ऑब्जेक्ट या स्ट्रिंग के तौर पर सीरियल किए गए निर्देशांक के तौर पर बताया जा सकता है. |
scale | नंबर, ज़रूरी नहीं | हर पिक्सल के हिसाब से मीटर में रिज़ॉल्यूशन. डिफ़ॉल्ट रूप से, यह वैल्यू 1,000 होती है. |
crs | स्ट्रिंग, ज़रूरी नहीं | एक्सपोर्ट की गई इमेज के लिए इस्तेमाल किया जाने वाला सीआरएस. |
crsTransform | List<Number>|String, ज़रूरी नहीं | एक्सपोर्ट की गई इमेज के लिए इस्तेमाल किया जाने वाला ऐफ़ाइन ट्रांसफ़ॉर्म. "crs" की वैल्यू तय होनी चाहिए. |
maxPixels | नंबर, ज़रूरी नहीं | एक्सपोर्ट में पिक्सल की संख्या सीमित करें. अगर एक्सपोर्ट किए जाने वाले डेटा का साइज़ 10 करोड़ पिक्सल से ज़्यादा है, तो आपको डिफ़ॉल्ट रूप से गड़बड़ी का मैसेज दिखेगा. इस वैल्यू को साफ़ तौर पर सेट करने से, इस सीमा को बढ़ाया या घटाया जा सकता है. |
shardSize | नंबर, ज़रूरी नहीं | उन टाइल का साइज़ पिक्सल में जिनमें इस इमेज का हिसाब लगाया जाएगा. डिफ़ॉल्ट रूप से, यह 256 पर सेट होती है. |
priority | नंबर, ज़रूरी नहीं | प्रोजेक्ट में टास्क की प्राथमिकता. ज़्यादा प्राथमिकता वाले टास्क जल्दी शेड्यूल किए जाते हैं. यह 0 और 9999 के बीच का पूर्णांक होना चाहिए. डिफ़ॉल्ट रूप से, यह 100 पर सेट होती है. |
उदाहरण
कोड एडिटर (JavaScript)
// A Landsat 8 surface reflectance image.
var image = ee.Image('LANDSAT/LC08/C02/T1_L2/LC08_044034_20210508')
.select(['SR_B.']); // reflectance bands
// A region of interest.
var region = ee.Geometry.BBox(-122.24, 37.13, -122.11, 37.20);
// Set the export "scale" and "crs" parameters.
Export.image.toAsset({
image: image,
description: 'image_export',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070'
});
// Use the "crsTransform" export parameter instead of "scale" for more control
// over the output grid. Here, "crsTransform" is set to align the output grid
// with the grid of another dataset. To view an image's CRS transform:
// print(image.projection())
Export.image.toAsset({
image: image,
description: 'image_export_crstransform',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
crsTransform: [30, 0, -2493045, 0, -30, 3310005],
crs: 'EPSG:5070'
});
// If the export has more than 1e8 pixels, set "maxPixels" higher.
Export.image.toAsset({
image: image,
description: 'image_export_maxpixels',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070',
maxPixels: 1e13
});
// The default "pyramidingPolicy" is mean. If data are categorical,
// consider mode.
Export.image.toAsset({
image: image.select('SR_B5'),
description: 'image_export_pyramiding',
assetId: 'projects/<project-name>/assets/<asset-name>', // <> modify these
region: region,
scale: 30,
crs: 'EPSG:5070',
pyramidingPolicy: {SR_B5: 'mode'}
});
Python सेटअप
Python API के बारे में जानकारी पाने और इंटरैक्टिव डेवलपमेंट के लिए geemap
का इस्तेमाल करने के लिए,
Python एनवायरमेंट पेज देखें.
import ee
import geemap.core as geemap
Colab (Python)
# A Landsat 8 surface reflectance image.
image = ee.Image(
'LANDSAT/LC08/C02/T1_L2/LC08_044034_20210508'
).select(['SR_B.']) # reflectance bands
# A region of interest.
region = ee.Geometry.BBox(-122.24, 37.13, -122.11, 37.20)
# Set the export "scale" and "crs" parameters.
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070'
)
task.start()
# Use the "crsTransform" export parameter instead of "scale" for more control
# over the output grid. Here, "crsTransform" is set to align the output grid
# with the grid of another dataset. To view an image's CRS transform:
# print(image.projection().getInfo())
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export_crstransform',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
crsTransform=[30, 0, -2493045, 0, -30, 3310005],
crs='EPSG:5070'
)
task.start()
# If the export has more than 1e8 pixels, set "maxPixels" higher.
task = ee.batch.Export.image.toAsset(
image=image,
description='image_export_maxpixels',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070',
maxPixels=1e13
)
task.start()
# The default "pyramidingPolicy" is mean. If data are categorical,
# consider mode.
task = ee.batch.Export.image.toAsset(
image=image.select('SR_B5'),
description='image_export_pyramiding',
assetId='projects/<project-name>/assets/<asset-name>', # <> modify these
region=region,
scale=30,
crs='EPSG:5070',
pyramidingPolicy={'SR_B5': 'mode'}
)
task.start()
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2025-07-25 (UTC) को अपडेट किया गया."],[],[],null,[]]