Export.image.toAsset

একটি আর্থ ইঞ্জিন সম্পদে একটি রাস্টার হিসাবে একটি চিত্র রপ্তানি করতে একটি ব্যাচ টাস্ক তৈরি করে৷ টাস্ক ট্যাব থেকে কাজ শুরু করা যেতে পারে।

ব্যবহার রিটার্নস
Export.image.toAsset(image, description , assetId , pyramidingPolicy , dimensions , region , scale , crs , crsTransform , maxPixels , shardSize , priority )
যুক্তি টাইপ বিস্তারিত
image ছবি রপ্তানি করতে ইমেজ.
description স্ট্রিং, ঐচ্ছিক টাস্কের একটি মানব-পাঠযোগ্য নাম। "myExportImageTask" এ ডিফল্ট।
assetId স্ট্রিং, ঐচ্ছিক গন্তব্য সম্পদ আইডি।
pyramidingPolicy বস্তু, ঐচ্ছিক পিরামিডিং নীতিটি ব্যান্ডের নামের দ্বারা চাবিকৃত চিত্রের প্রতিটি ব্যান্ডে প্রয়োগ করার জন্য। মানগুলি অবশ্যই একটি হতে হবে: গড়, নমুনা, ন্যূনতম, সর্বোচ্চ বা মোড৷ ডিফল্ট "মানে"। একটি বিশেষ কী, ".default" সব ব্যান্ডের জন্য ডিফল্ট পরিবর্তন করতে ব্যবহার করা যেতে পারে।
dimensions সংখ্যা|স্ট্রিং, ঐচ্ছিক রপ্তানি করা ছবির জন্য যে মাত্রাগুলি ব্যবহার করতে হবে৷ সর্বাধিক মাত্রা হিসাবে একটি একক ধনাত্মক পূর্ণসংখ্যা নেয় বা "WIDTHxHEIGHT" যেখানে WIDTH এবং HEIGHT প্রতিটি ধনাত্মক পূর্ণসংখ্যা।
region Geometry.LinearRing|Geometry.Polygon|স্ট্রিং, ঐচ্ছিক একটি রৈখিক রিং, বহুভুজ, বা রপ্তানির জন্য অঞ্চলের প্রতিনিধিত্বকারী স্থানাঙ্ক। এগুলিকে জ্যামিতি বস্তু বা স্ট্রিং হিসাবে ক্রমিক স্থানাঙ্ক হিসাবে নির্দিষ্ট করা যেতে পারে।
scale নম্বর, ঐচ্ছিক প্রতি পিক্সেল মিটারে রেজোলিউশন। ডিফল্ট 1000।
crs স্ট্রিং, ঐচ্ছিক রপ্তানি করা ছবির জন্য CRS ব্যবহার করতে হবে।
crsTransform তালিকা<Number>|স্ট্রিং, ঐচ্ছিক এক্সপোর্ট করা ছবির জন্য ব্যবহার করার জন্য Affine রূপান্তর। "crs" সংজ্ঞায়িত করা প্রয়োজন।
maxPixels নম্বর, ঐচ্ছিক এক্সপোর্টে পিক্সেলের সংখ্যা সীমিত করুন। ডিফল্টরূপে, রপ্তানি 1e8 পিক্সেল অতিক্রম করলে আপনি একটি ত্রুটি দেখতে পাবেন। এই মানটি স্পষ্টভাবে সেট করা একজনকে এই সীমা বাড়াতে বা কমানোর অনুমতি দেয়।
shardSize নম্বর, ঐচ্ছিক টাইলগুলির পিক্সেলের আকার যেখানে এই চিত্রটি গণনা করা হবে৷ ডিফল্ট 256.
priority নম্বর, ঐচ্ছিক প্রকল্পের মধ্যে কাজের অগ্রাধিকার. উচ্চ অগ্রাধিকারের কাজগুলি শীঘ্রই নির্ধারিত হয়। 0 এবং 9999 এর মধ্যে একটি পূর্ণসংখ্যা হতে হবে। ডিফল্ট 100।

উদাহরণ

কোড এডিটর (জাভাস্ক্রিপ্ট)

// 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'}
});

পাইথন সেটআপ

পাইথন এপিআই এবং ইন্টারেক্টিভ ডেভেলপমেন্টের জন্য geemap ব্যবহার করার জন্য পাইথন এনভায়রনমেন্ট পৃষ্ঠাটি দেখুন।

import ee
import geemap.core as geemap

Colab (পাইথন)

# 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()