[null, {"document_url": "http://www.p-gis.com/2018/09/fun-with-google-earth-engine.html", "unformatted_src": "https://3.bp.blogspot.com/-GfR9v12WYxQ/W63tcqmdpMI/AAAAAAAA1Rk/1VkIHyMQEhIa1ruQE9b0G9ENeQlVxK6XQCLcBGAs/s640/legend.jpg", "src": "https://3.bp.blogspot.com/-GfR9v12WYxQ/W63tcqmdpMI/AAAAAAAA1Rk/1VkIHyMQEhIa1ruQE9b0G9ENeQlVxK6XQCLcBGAs/s640/legend.jpg", "formatted_filename": "legend", "rendered_width": 626, "rendered_height": 640}, null, null]
Thứ Sáu, 28 tháng 9, 2018

Fun with Google Earth Engine

In recent time, the question of "where to find data?" is no longer a big concern. Another bigger issue has emerged, which relates to "what sort of information that can be extracted from data?".

Storing raw data as files in hard disks or storage media is also no longer fashionable because "we don't have to do it, all of them are in the cloud now".

A few lines of codes below demonstrate how to use Google Earth Engine to find and extract information from cloud storage (by Google) and show them in the way you like. Of course, if you're good enough at Java programming, you can manipulate and analyze this data and turn it into more valuable information.... in a flash. The codes work in a few seconds to acquire, select and display monthly average temperature, plus  accumulated rainfall across the country of Vietnam. You can modify desired time period to get more data if you wish. My codes are free.

// Fun with weather information, monthly values
// Written by Phuong Do, Sep 2018
// Data sources: CHIRPS (rainfall) and MODIS (temperature). Resolution: 1km

var before = '2017-01-01';
var after = '2017-01-31';

// Data sources

var PRE = ee.ImageCollection("UCSB-CHG/CHIRPS/DAILY")
.filterDate(before, after)
.sort('system:time_start', true);

var LST = ee.ImageCollection("MODIS/006/MOD11A1")


var meanLST = LST.reduce('mean');
meanLST = meanLST.multiply(0.02).subtract(273.15);
var meanPRE = PRE.sum();

Map.addLayer(meanLST,{palette: '#09b6ff, #f1ff07, #e00303', min: 0, max: 50},"Temperature",false);
Map.addLayer(meanPRE,{palette: '#dbfffc, #29c9ff, #66aeff, #3801ff', min: 0, max: 2000},"Precipitation",false);

To run codes, you need to register an account with Google Earth Engine. For ones who do not have GEE's account, see the outputs below.

3 nhận xét:

 
61 Hang Chuoi, Hai Ba Trung district, Hanoi, Vietnam
61 Hàng Chuối, Q. Hai Bà Trưng, Hà Nội, Việt Nam

