Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/variables/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/powerbi/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google earth engine 当我试图获取插值的每月数据时,为什么Google Earth引擎中缺少一个属性?_Google Earth Engine_Satellite Image_Spatial Interpolation - Fatal编程技术网

Google earth engine 当我试图获取插值的每月数据时,为什么Google Earth引擎中缺少一个属性?

Google earth engine 当我试图获取插值的每月数据时,为什么Google Earth引擎中缺少一个属性?,google-earth-engine,satellite-image,spatial-interpolation,Google Earth Engine,Satellite Image,Spatial Interpolation,我在使用谷歌地球引擎时遇到了一个问题,希望你能帮助我。当我试图获得使用克里格插值的盐度月数据时,我遇到了一个错误: 缺少属性“0” 盐度0是HYCOM/sea温度盐度图像采集中的一个波段。我可以在不插值的情况下检索数据。然而,我想要获取信息的大部分点(代码中的amerbs)位于没有数据的像素中。因此,我在空像素上使用盐度的插值信息 我没有在下面的代码中包含几何体“chile”,因为它有太多的数据点 这里是指向我的代码的链接: 谢谢你的帮助 var MODIS_sst=ee.ImageColle

我在使用谷歌地球引擎时遇到了一个问题,希望你能帮助我。当我试图获得使用克里格插值的盐度月数据时,我遇到了一个错误:

缺少属性“0”

盐度0是HYCOM/sea温度盐度图像采集中的一个波段。我可以在不插值的情况下检索数据。然而,我想要获取信息的大部分点(代码中的amerbs)位于没有数据的像素中。因此,我在空像素上使用盐度的插值信息

我没有在下面的代码中包含几何体“chile”,因为它有太多的数据点

这里是指向我的代码的链接:

谢谢你的帮助

var MODIS_sst=ee.ImageCollection(“NASA/OCEANDATA/MODIS Aqua/L3SMI”),
amerbs=ee.FeatureCollection(“用户/felipejquezadae/AMERB\u坐标\u id”),
HYCOM_盐度=ee.ImageCollection(“HYCOM/海洋温度盐度”),
amerbs_region=ee.FeatureCollection(“用户/felipejquezadae/AMERB”),
navy=ee.FeatureCollection(“用户/felipejquezadae/navy_辖区”);
//设定年份和月份
var startYear=2002;
var endYear=2018年;
变量年=ee.List.sequence(起始年、结束年);
var月数=ee.List.sequence(1,12);
//加载图像集合
var数据卫星=HYCOM盐度。过滤日期('2002-01-01','2019-01-01')。选择('盐度0'))
//制作每月汇总的马赛克
//循环数年和数月,以获得每月汇总的图像
var byMonth=ee.ImageCollection(ee.FeatureCollection(years.map)(函数y){
var yearCollection=data_satellite.filter(ee.filter.calendarRange(y,y,'year'));
var byYear=ee.ImageCollection.fromImages(
月。地图(功能(m){
var summedImage=yearCollection.filter(ee.filter.calendarRange(m,m,'month'))
.reduce(ee.Reducer.mean()).clip(智利);
var proj=ee.投影('EPSG:4326');
var summedImage2=summedImage.reproject(项目,null,500);
//在1000个随机位置对SST图像进行采样。
var samples=summedImage2.addBands(ee.Image.pixelLonLat())
.sample({地区:智利,单位:5500})
.map(函数(示例){
var lat=sample.get('latitude');
var lon=sample.get('longitude');
var Salition_0=sample.get('Salition_0');
返回ee.Feature(ee.Geometry.Point([lon,lat]),{盐度0:盐度0});
});
//从采样点插值SST。
var插值=采样数。克里格法({
propertyName:“0”,
形状:'指数',
范围:90*1000,
门槛:1.0,
金块:0.1,
最大距离:90*1000,
“平均值”,
});
var date=ee.date.fromYMD(y,m,5).格式(“MM_dd_YYYY”);
返回插值的.set('system:time_start',ee.Date.fromYMD(y,m,5))
.重命名(日期)
.reduce(ee.Reducer.mean());
//.set('month',m).set('year',y);//最终设置年份和月份
}));
按年返回;
})).flatte());
var outputMonthly=byMonth.filter(ee.filter.listContains('system:band_names'),
“常量”)。而不是()
.sort('system:time_start').toBands();
打印(每月输出,“每月数据”);
var features=每月输出的.reduceRegions(amerbs,ee.Reducer.mean(),30);
变量数据打印=ee.特征集合(特征);
打印(数据打印);
Export.table.toDrive(数据打印,“盐度”\u 2003\u 2018\u插值”)