Google Earth Engine (GEE) - Problems exporting imagery to assets

Question: why cant I export my layer in asset?, sometimes we will encounter some very basic errors, that is, we cannot export the results we want, so we have a solution i is to analyze according to the prompts, the first The second is to go back to see the function you called, and then reset it to eliminate all problems one by one.

The first problem with this picture is that it cannot have / slashes, we can use underscores instead

Canonical function:

Export.image.toAsset(image, descriptionassetIdpyramidingPolicydimensionsregionscalecrscrsTransformmaxPixelsshardSize)

Create a batch job to export the image as a raster into Earth Engine assets. Tasks can be started from the Tasks tab.

Parameters:
image (image).
image to export.

description (String, optional):
Human-readable name of the task. Defaults to "myExportImageTask".

assetId (string, optional).
Target asset ID.

pyramidingPolicy (object, optional).
Overlay strategy applied to each band in the image, with the band name as the key. Value must be one of: mean, sample, min, max, or mode. Defaults to "average". a special key.

"Default" can be used to change the default values ​​for all bands.

dimensions (Number|String, optional):
The dimensions used by the output image. It can take a positive integer as the maximum size, or it can be

"WIDTHxHEIGHT", where both WIDTH and HEIGHT are positive integers.

region (Geometry.LinearRing|Geometry.Polygon|String, optional).
A LinearRing, Polygon or coordinate representing the region to output. These can be specified as Geometry objects or serialized as strings with coordinates. If not specified, the region defaults to the viewport at the time of invocation.

scale (number, optional).
Resolution, in meters/pixel. Default is 1000.

crs (string, optional).
The CRS to use for the output image.

crsTransform(List<Number>|String, optional).
The Afar transform used by the exported image. "crs" needs to be defined.

maxPixels (number, optional).
Limit the number of pixels exported. By default, you will see an error if the output exceeds 1e8 pixels. Explicitly setting this value can raise or lower this limit.

shardSize (numeric, optional).
Calculate the tile size for this image, in pixels. The default is 256.

Original code:

Export.image.toAsset({
  image: s1_gammaMap,
  description: 's1_gammaMap',
  assetId: 'users/draadzic/',
  region: part_of_roi,
  scale: 10,
  //crs: 'EPSG:32633',
  maxPixels: 1e10})

 

Modified code:

Export.image.toAsset({
  image: s1_gammaMap,
  description: 's1_gammaMap',
  assetId: 'users_draadzic_s1_gammaMap',
  region: part_of_roi,
  scale: 10,
  //crs: 'EPSG:32633',
  maxPixels: 1e10})

Guess you like

Origin blog.csdn.net/qq_31988139/article/details/124047246