2020-02-10

Sentinel-2 image 武漢火神山醫院 GEE sample code

/**
 * Function to mask clouds using the Sentinel-2 QA band
 * @param {ee.Image} image Sentinel-2 image
 * @return {ee.Image} cloud masked Sentinel-2 image
 */
function maskS2clouds(image) {
  var qa = image.select('QA60');

  // Bits 10 and 11 are clouds and cirrus, respectively.
  var cloudBitMask = 1 << 10;
  var cirrusBitMask = 1 << 11;

  // Both flags should be set to zero, indicating clear conditions.
  var mask = qa.bitwiseAnd(cloudBitMask).eq(0)
      .and(qa.bitwiseAnd(cirrusBitMask).eq(0));

  return image.updateMask(mask).divide(10000);
}

// Map the function over one year of data and take the median.
// Load Sentinel-2 TOA reflectance data.
var dataset = ee.ImageCollection('COPERNICUS/S2')
                  .filterDate('2020-02-04', '2020-02-05')
                  // Pre-filter to get less cloudy granules.
                  .filter(ee.Filter.lt('CLOUDY_PIXEL_PERCENTAGE', 40))
                  .map(maskS2clouds);

var rgbVis = {
  min: 0.0,
  max: 0.3,
  bands: ['B4', 'B3', 'B2'],
};

Map.setCenter(114.084915,30.5275156, 16);
Map.addLayer(dataset.median(), rgbVis, 'RGB');

2018-12-13

水文氣象資料參考資料

颱風最路徑資料內容 http://www.metoc.navy.mil/jtwc/jtwc.html?western-pacific CWB 颱風資料庫 http://rdc28.cwb.gov.tw/TDB/

2018-08-02

感測器應用資料更新

將收集到的水位相關感測器的成果資訊加以更新 英國公民參與 https://internetofbusiness.com/oxford-iot-flood-protection/ http://www.eawag.ch/de/news-agenda/news-plattform/news/news/mit-dem-internet-der-dinge-die-abwasserentsorgung-verbessern/?tx_news_pi1[controller]=News&tx_news_pi1[action]=detail&cHash=6bf94d30c5195acea7907a196306e717 https://twitter.com/ScottishEPA/status/1010050330460147712 The Things Network Calderdale http://www.rs-online.com/designspark/electronics/eng/blog/the-things-network-calderdale https://www.rs-online.com/designspark/search?q=flood+water+level+sensor https://twitter.com/oxfloodnet/status/817321931477237760 https://twitter.com/flood_network USGS 臨時水位計 https://www.facebook.com/USGeologicalSurvey/photos/a.169734339739224.34845.102635589782433/1576890599023584/?type=3&theater https://www.facebook.com/USGeologicalSurvey/posts/1522711781108133 國外商產化品 https://twitter.com/decentlab https://twitter.com/decentlab/status/770224422133325825 https://www.axis360-sensors.com/product/elsys-maxbotix

2018-05-30

開放點雲資料

荷蘭 5m 0.5m https://www.pdok.nl/nl/ahn3-downloads 英國 2m 1m 0.5m http://environment.data.gov.uk/ds/survey/#/survey?grid=TQ17 美國華盛頓州 DEM DSM ,las 點雲 http://lidarportal.dnr.wa.gov/#45.97120:-122.65411:9 OpenTopography 各國開放點雲地形資料 http://opentopo.sdsc.edu/datasets

2018-05-13

颱風豪雨監控頁面參考資訊

模式風場展示 https://www.ventusky.com/?p=23.5;121.0;4&l=wind-10m&t=20180515/21 https://www.windy.com/favs?rain%2C29.955%2C127.002%2C5%2Ci%3Ap%2Cm%3AelzajSU https://www.cwb.gov.tw/cwbwifi/#2018/05/13/0000Z/wind/sfc/mercator 雨量站監控 https://www.cwb.gov.tw/V7/observe/rainfall/A136.htm https://www.cwb.gov.tw/V7/observe/rainfall/hk.htm 雷達資訊 http://qpesums.thb.gov.tw/taiwan-html/ http://61.56.11.45/taiwan-html2/index.html 颱風資訊 https://www.cwb.gov.tw/V7/prevent/typhoon/TY_Google.html http://typhoon.ws/typhoon/report_gov 衛星 https://himawari8.nict.go.jp/ 災害整合 https://watch.ncdr.nat.gov.tw/

2017-05-31

國外感測器資訊


美國
http://float.berkeley.edu/drifters/hardware

澳洲
https://research.jcu.edu.au/tropwater/research-programs/oceanography-1/river-drifters
澳洲
http://www.marinegeophysics.com.au/

英國蘇格蘭
https://twitter.com/RiverTrackOrg

英國
https://twitter.com/flood_network

2017-05-25

QGIS 利用 Polygon 切割Raster資料

多年前發表
Arcgis 利用polygon 切割raster資料


這一次用的是QGIS 
搭配SAGA 進行polygon 切割raster資料
利用SAGA 的 vector to raster
   的Clip raster with polygon 功能






原始raster   G100M_TWD97


切割的polygon  C1140_cut_line

切割後的成果

QGIS 圖資自動輸出與簡報產製流程說明

  QGIS 圖資自動輸出與簡報產製流程說明 一、目的說明 本流程主要目的,是將既有的 GIS 圖資與分析成果,透過 QGIS 專案與版面配置設定,自動輸出為圖片,並依序套用到簡報檔案中,減少人工截圖、貼圖與排版時間。 透過此方式,可快速產製多個行政區、鄉鎮、市區或指定範圍的成果...