Replies: 2 comments
-
@Abu0232 I'm sorry, but you're asking in the wrong place. This is Rasterio, not Google Earth Engine. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you, although I did get very helpful insights that solved my issue
completely.
…On Mon, Jan 29, 2024 at 8:09 AM Sean Gillies ***@***.***> wrote:
@Abu0232 <https://github.com/Abu0232> I'm sorry, but you're asking in the
wrong place. This is Rasterio, not Google Earth Engine.
—
Reply to this email directly, view it on GitHub
<#3017 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A5QBFG32LJUBR2AHC5AF4OLYQ7CTLAVCNFSM6AAAAABCO2V632VHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DEOBVHAYTG>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am getting the an when trying to generate the chart in Google Earth Engine, kindly help:
Error generating chart: Collection.first: Projection error: Unable to compute intersection of geometries in projections SR-ORG:6974: affine [463.3127165279165, 0.0, -2.0015109354E7, 0.0, -463.3127165279167, 1.0007554677003E7] and EPSG:4326: affine [1.0, 0.0, 0.0, 0.0, 1.0, 0.0].
Here is the full Code:
Map.centerObject(myRegion,4);
Map.addLayer(myRegion,false,"my region");
var startdate = ee.Date.fromYMD(2021,1,1);
var enddate= ee.Date.fromYMD(2023,12,31);
var nppCollection = npp.filterDate(startdate, enddate)
.filterBounds(myRegion)
.select("Npp");
var gppCollection = gpp.filterDate(startdate, enddate)
.filterBounds(myRegion)
.select("Gpp");
var myNpp = function(myimg){
var d = ee.Date(myimg.get("system:time_start"));
var y = d.get('year').toInt();
var GPPy = ee.Image(gppCollection.filter(ee.Filter.calendarRange(y, y, 'year')).sum());
var NPPy = ee.Image(nppCollection.filter(ee.Filter.calendarRange(y, y, 'year')).mean());
var npp8 = myimg.expression('(GGP8 / GPPy) * NPPy' ,
{
GGP8: myimg,
GPPy: GPPy,
NPPy:NPPy
});
return npp8.copyProperties(myimg,['system:time_start']);
};
var npp8Collection = ee.ImageCollection(gppCollection.map(myNpp));
var npp_viz = {min:0.0, max:300, palette:"ff0000,f0ff00,004717"};
Map.addLayer(npp8Collection.mean().clip(myRegion),npp_viz,"npp");
print("chart");
print(
ui.Chart.image.series({
imageCollection: npp8Collection,
region: myRegion,
reducer: ee.Reducer.mean(),
scale: 30,
xProperty: 'system:time_start'
}));
Beta Was this translation helpful? Give feedback.
All reactions