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" का इस्तेमाल किया जा सकता है.
dimensionsNumber|String, optionalएक्सपोर्ट की गई इमेज के लिए इस्तेमाल किए जाने वाले डाइमेंशन. ज़्यादा से ज़्यादा डाइमेंशन के तौर पर, एक पॉज़िटिव पूर्णांक या "WIDTHxHEIGHT" का इस्तेमाल किया जा सकता है. इसमें WIDTH और HEIGHT, दोनों पॉज़िटिव पूर्णांक होते हैं.
regionGeometry.LinearRing|Geometry.Polygon|String, ज़रूरी नहींएक्सपोर्ट किए जाने वाले इलाके को दिखाने वाला लीनियर रिंग, पॉलीगॉन या निर्देशांक. इन्हें ज्यामिति ऑब्जेक्ट या स्ट्रिंग के तौर पर सीरियल किए गए निर्देशांक के तौर पर बताया जा सकता है.
scaleनंबर, ज़रूरी नहींहर पिक्सल के हिसाब से मीटर में रिज़ॉल्यूशन. डिफ़ॉल्ट रूप से, यह वैल्यू 1,000 होती है.
crsस्ट्रिंग, ज़रूरी नहींएक्सपोर्ट की गई इमेज के लिए इस्तेमाल किया जाने वाला सीआरएस.
crsTransformList<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()