我有一张图片,该图片已上传到Google Earth引擎上,其资产ID为:“ users / chandrakant / Max_RZSC_WGS1984_25km”。
我想可视化数据,但是我无法使用下面的代码来做到这一点。
下面的链接中有指向我的tiff图片的链接。 https://www.dropbox.com/sh/hpqj2tfei8o82xo/AADNPWEA4PN9ybNN6zx8771Ca?dl=0
var image = ee.Image("users/chandrakant/Max_RZSC_WGS1984_25km");
var vizParams = {
bands: ['b1'],
min: 0.0,
max: 1000.0,
palette: ['bbe029', '0a9501', '074b03'],
};
Map.setCenter(6.746, 46.529, 2);
Map.addLayer(image, vizParams, 'Rootzone Storage Capacity');
Map.centerObject(image);
有人可以提出一些建议,为什么我运行地图时什么都没显示?控制台中没有显示错误。
添加的信息:
**Point** (-58.9, -4.83) at 10Km/px
Longitude: -58.895520981116704
Latitude: -4.833137881525199
Zoom Level: 4
Scale (approx. m/px): 9783.93962050256
**Pixels**
Rootzone Storage Capacity: Image (1 band)
b1: masked
Objects
Rootzone Storage Capacity: Image users/chandrakant/RZSC_2000_2015 (1 band)
type: Image
id: users/chandrakant/RZSC_2000_2015
version: 1561473739510841
bands: List (1 element)
0: "b1", float, EPSG:32745, 1440x400 px
properties: Object (4 properties)
system:asset_size: 786204
system:footprint: LinearRing, 5 vertices
system:index: 0
system:time_start: 1451520000000
重新投影后
var image = ee.Image("users/chandrakant/RZSC_2000_2015_Trial_2");
var vizParams = {
bands: ['b1'],
min: 0.0,
max: 1000.0,
palette: ['bbe029', '0a9501', '074b03'],
};
Map.setCenter(6.746, 46.529, 2);
//Map.addLayer(image, vizParams, 'Rootzone Storage Capacity');
Map.centerObject(image);
print('Projection, crs, and crs_transform:', image.projection());
var reprojected = image.reproject('EPSG:4326');
print('Projection, crs, and crs_transform:', reprojected.projection());
Map.addLayer(reprojected, vizParams, 'Reprojected');
仍然无法查看图像。