I'm new to GEE and Java Script but hopefully I can be clear in describing my question. I've been looking through the tutorials and stack overflow but I'm still having difficulty.
I have a csv file consisting of lat/lon locations that I have uploaded with Google Fusion Tables. With my script, I have successfully been able to bin my data into user-defined bins. I wish to display the column truthCloudCover
at the resolution from which my data was derived, i.e., 12 km, with a gray-scaled color palette. I am assuming that as I zoom in and out of the visualization, the glyph used to describe the lat/lon point maintains the 12 km resolution. Is this even possible? If so, can you please provide some example? Below I provide my script up to the point where I can bin my data. If you can point me to helpful examples of plotting FeatureCollections at their specified resolutions, I would be very grateful.
I believe you should be able to access my sample data from https://drive.google.com/open?id=1czdOaBYVyu0GA1mcNKIpwEdImsuQqwc0hGudCqv3.
My script for accessing the data and binning it is as follows:
// Load a FeatureCollection from a Fusion Table.
var fromFT = ee.FeatureCollection('ft:1czdOaBYVyu0GA1mcNKIpwEdImsuQqwc0hGudCqv3');
//var selection = fromFT.select('truthCloudCover');
var computePct = function(feature) {
var trPct = ee.Number(feature.get('truthCloudCover')).divide(100.0);
var bin = ee.Number(-99);
if (trPct >= 0.9) {
bin = ee.Number(3);
}
else if (trPct <= 0.1) {
bin = ee.Number(1);
}
else {
bin = ee.Number(2);
}
return feature.set({bin: bin});
};
var fromFT = fromFT.map(computePct);
// show new property values
print('fromFT', fromFT.limit(6));
var foo = fromFT.select('bin');
print('bin', foo);
var getDict = function(feature) {
var foo = feature.get('bin');
};
var binDict = ee.List.add()
var binDict = fromFT.toDictionary(['name']);
print('binDict', binDict);