Is it a bug about Google Earth Engine flatten() function?How to visualize a FeatureCollection in Google Earth...
Is it common to refer to someone as "Prof. Dr. [LastName]"?
Last Reboot commands don't agree
Did the characters in Moving Pictures not know about cameras like Twoflower's?
Why are `&array` and `array` pointing to the same address?
Aligning Systems of Equations
What does "don't have a baby" imply or mean in this sentence?
Why would you use 2 alternate layout buttons instead of 1, when only one can be selected at once
Multiplying elements of a list
Build ASCII Podiums
Why is the meaning of kanji 閑 "leisure"?
What did Putin say about a US deep state in his state-of-the-nation speech; what has he said in the past?
Is opening /proc/meminfo faster than reading variable content?
What does @ mean in a hostname in DNS configuration?
What if you do not believe in the project benefits?
How can I differentiate duration vs starting time
Boss asked me to sign a resignation paper without a date on it along with my new contract
Are encryption algorithms with fixed-point free permutations inherently flawed?
How should I ship cards?
Are all power cords made equal?
Manager has noticed coworker's excessive breaks. Should I warn him?
Badly designed reimbursement form. What does that say about the company?
Why is Bernie Sanders maximum accepted donation on actblue $5600?
How do I handle a blinded enemy which wants to attack someone it's sure is there?
What is formjacking?
Is it a bug about Google Earth Engine flatten() function?
How to visualize a FeatureCollection in Google Earth Engine?LinearFit with Google Earth EngineGoogle Earth Engine: ASTER Reflectance from DNArea error in Google Earth EngineGoogle Earth Engine - Map.addLayerUnsupervised classification in Google Earth EngineIs this a Google Earth Engine bug when zooming in the Map.Layer?Supervised classification Google Earth EngineGoogle Earth Engine, how to distinguish between rivers/streams and ponds/lakes in a water maskMissing band in mapping function using Google Earth EngineGoogle Earth Engine formaTrend function
I'm trying to calculate weather statistics(a histogram) for some areas, after the reduce, I can see histogram in my FeatureCollection, but after I flatten the FeatureCollection, the histogram disappeared, I've exported the featureCollection to verify it. The histogram column did disappeared. Where is the histogram? Is it a bug?
var CONUS = ['KS','AR','MO','MI','IL'];
var studyAreas = ee.FeatureCollection('ft:17aT9Ud-YnGiXdXEJUyycH2ocUqreOeKGbzCkUw')
.filter(ee.Filter.inList('id',CONUS));
Map.addLayer(studyAreas,{},'studyAreas');
var prcp = ee.ImageCollection("NASA/ORNL/DAYMET_V3").filterDate('2003-4-1','2003-4-20').select(1)//1:prciptation
var prcpHist1 = prcp.map(function(image){
return image.reduceRegions({
collection: studyAreas,
reducer: ee.Reducer.fixedHistogram(1,100,32),
scale: 1000 // the resolution of the dataset
});
})
print('prcpHist1',prcpHist1)
var prcpOutHist1 = ee.FeatureCollection(prcpHist1).flatten().select(['.*'],null,false);
print('prcpOutHist1',prcpOutHist1)
Export.table.toDrive({
collection: prcpOutHist1,
description: 'PRCP',
folder: 'Daymet_V3',
fileFormat: 'CSV'
});
google-earth-engine
add a comment |
I'm trying to calculate weather statistics(a histogram) for some areas, after the reduce, I can see histogram in my FeatureCollection, but after I flatten the FeatureCollection, the histogram disappeared, I've exported the featureCollection to verify it. The histogram column did disappeared. Where is the histogram? Is it a bug?
var CONUS = ['KS','AR','MO','MI','IL'];
var studyAreas = ee.FeatureCollection('ft:17aT9Ud-YnGiXdXEJUyycH2ocUqreOeKGbzCkUw')
.filter(ee.Filter.inList('id',CONUS));
Map.addLayer(studyAreas,{},'studyAreas');
var prcp = ee.ImageCollection("NASA/ORNL/DAYMET_V3").filterDate('2003-4-1','2003-4-20').select(1)//1:prciptation
var prcpHist1 = prcp.map(function(image){
return image.reduceRegions({
collection: studyAreas,
reducer: ee.Reducer.fixedHistogram(1,100,32),
scale: 1000 // the resolution of the dataset
});
})
print('prcpHist1',prcpHist1)
var prcpOutHist1 = ee.FeatureCollection(prcpHist1).flatten().select(['.*'],null,false);
print('prcpOutHist1',prcpOutHist1)
Export.table.toDrive({
collection: prcpOutHist1,
description: 'PRCP',
folder: 'Daymet_V3',
fileFormat: 'CSV'
});
google-earth-engine
add a comment |
I'm trying to calculate weather statistics(a histogram) for some areas, after the reduce, I can see histogram in my FeatureCollection, but after I flatten the FeatureCollection, the histogram disappeared, I've exported the featureCollection to verify it. The histogram column did disappeared. Where is the histogram? Is it a bug?
var CONUS = ['KS','AR','MO','MI','IL'];
var studyAreas = ee.FeatureCollection('ft:17aT9Ud-YnGiXdXEJUyycH2ocUqreOeKGbzCkUw')
.filter(ee.Filter.inList('id',CONUS));
Map.addLayer(studyAreas,{},'studyAreas');
var prcp = ee.ImageCollection("NASA/ORNL/DAYMET_V3").filterDate('2003-4-1','2003-4-20').select(1)//1:prciptation
var prcpHist1 = prcp.map(function(image){
return image.reduceRegions({
collection: studyAreas,
reducer: ee.Reducer.fixedHistogram(1,100,32),
scale: 1000 // the resolution of the dataset
});
})
print('prcpHist1',prcpHist1)
var prcpOutHist1 = ee.FeatureCollection(prcpHist1).flatten().select(['.*'],null,false);
print('prcpOutHist1',prcpOutHist1)
Export.table.toDrive({
collection: prcpOutHist1,
description: 'PRCP',
folder: 'Daymet_V3',
fileFormat: 'CSV'
});
google-earth-engine
I'm trying to calculate weather statistics(a histogram) for some areas, after the reduce, I can see histogram in my FeatureCollection, but after I flatten the FeatureCollection, the histogram disappeared, I've exported the featureCollection to verify it. The histogram column did disappeared. Where is the histogram? Is it a bug?
var CONUS = ['KS','AR','MO','MI','IL'];
var studyAreas = ee.FeatureCollection('ft:17aT9Ud-YnGiXdXEJUyycH2ocUqreOeKGbzCkUw')
.filter(ee.Filter.inList('id',CONUS));
Map.addLayer(studyAreas,{},'studyAreas');
var prcp = ee.ImageCollection("NASA/ORNL/DAYMET_V3").filterDate('2003-4-1','2003-4-20').select(1)//1:prciptation
var prcpHist1 = prcp.map(function(image){
return image.reduceRegions({
collection: studyAreas,
reducer: ee.Reducer.fixedHistogram(1,100,32),
scale: 1000 // the resolution of the dataset
});
})
print('prcpHist1',prcpHist1)
var prcpOutHist1 = ee.FeatureCollection(prcpHist1).flatten().select(['.*'],null,false);
print('prcpOutHist1',prcpOutHist1)
Export.table.toDrive({
collection: prcpOutHist1,
description: 'PRCP',
folder: 'Daymet_V3',
fileFormat: 'CSV'
});
google-earth-engine
google-earth-engine
edited 1 hour ago
Jsun
asked 2 hours ago
JsunJsun
64
64
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "79"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313099%2fis-it-a-bug-about-google-earth-engine-flatten-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Geographic Information Systems Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fgis.stackexchange.com%2fquestions%2f313099%2fis-it-a-bug-about-google-earth-engine-flatten-function%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown