2017-10-01ãã1ã¶æéã®è¨äºä¸è¦§
å°å³æ å ±ï¼ãã¼ãã«ï¼ã¯ç·¯åº¦çµåº¦ã§æã¡ãå¤é¨ã¨ã®ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¯ã¡ã¼ãã«ã§ãããã¡ã¼ãã«ã¯ç·¯åº¦çµåº¦ã«å¤æãã¦ãã¼ãã«ã«æ¸¡ããã¨ããã®ãããåããã¾ããã å°çå表ç¾ã使ãéãããã®æ¹æ³ã«ãªãã®ã§ãããã æ°è±¡åºããã®ãã¼ã¿ãã¼ã¹ã緯度çµåº¦ã¯â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ãvimã®tagsãã¡ã¤ã«ã¸ã£ã³ããã¢â¦
å°éã®äºæ¸¬ããããªãããã°ã©ã ãä½ã£ã¦ãã¦çµæã QGIS ã®å°çåå³ã«åºãã¦ãã¾ãã å°éã®å ãã¼ã¿ãæ°è±¡åºããã®ãã®ã§ç·¯åº¦çµåº¦ã§è¨è¼ããã¦ããããã®ã¾ã¾ä½ã®çåãæãã緯度çµåº¦ã§æ±ã£ã¦æ¥ã¾ããããããã«æ¥ã¦ï½ï½ãªã¼ãã®ç²¾åº¦ãå¿ è¦ã«ãªã£ã¦ãã¾ãâ¦
å°éãããã ï¼ãã°ããã¥ã¼ã6.0ã¯ã©ã¹é¸å°æ層åå°éäºæ¸¬ã®é£ããï¼ï¼
æ師ãã¼ã¿ï¼ï¼ç¨®ã®ä¸ã§æ¬ããã°ã©ã ãäºæ¸¬ã§ããªãã®ã¯ãã£ãã²ã¨ã¤ã§ãããã¯ï¼ æ¥ä»2013-04-13 Mag6.0 åç·¯34.41 æ±çµ134.81 æ·±ã15km ã®ãå µåº«ç淡路島å°éãã§ãã[1] 大被害ããããããéªç¥æ·¡è·¯å¤§éç½ã®å¾ï¼ï¼å¹´å¾ã«çºçãããã®ã§ãã å¾ã£ã¦ãç¾å¨â¦
ã¯ããã«ï¼ 以åãããè½ç»å島ã§ã¯ããé西é²æãã¼ã¯ãåºãã®ã§ãä¸åº¦æ¥æ¬ã®ãã¬ã¼ã群æ§é ã調ã¹ã¦ãããã¨æã£ã¦ãã¾ããã ï¼2017_10_25 æ´æ°ãã¦ãã¾ãï¼ ããã§ãæ°è±¡åºããã®ãµã¤ãããå¼ç¨ããã¦é ããå³ã示ãã¾ãã [1] 2017-10-12 ã®æ¸¬å®çµæã«â¦
QGISã®å°çåå³ã«ã¿ã¤ãã«ãå ¥ãããã¨æããè²ã 試ãã¾ãããé§ç®ã§ããã å°çåã®å³ã¯æåãåãä»ãã¾ããã ã¬ã¤ã¤ã«åºã¦ããããã¹ãããã¹ã¦ç¡è¦ããã¾ãã ã³ã³ãã¼ã¶ã¨ããã®ãå°çåã«ã¯å¹ããªãããã§ãã çµå±ãã»ã¼ãããpngãç·¨éãã¦ãã¿ã¤ãâ¦
å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯ãåç·¯ï¼ï¼åº¦æ±çµï¼ï¼ï¼åº¦ããåç·¯ï¼ï¼åº¦æ±çµï¼ï¼ï¼åº¦ã®é åã対象ã«çºçããå°éã®çµ±è¨è§£æãè¡ã£ã¦ãã¾ãã ã§ããã®å¯¾è±¡ç¯å²ãQGISã«ç¤ºãããã£ãã®ã§ããï¼ä»ã¾ã§ãã£ã¦ãªãã®ãï¼ãåºæ¥ã¾ããã wkt ã csv ã§åºãã¾ããâ¦
æ¬å°éã®äºæ¸¬ãããã§ã¯çµæãQGISã«ã¦è¡¨ç¤ºãã¦ããã®ã§ãããããããï¼æ¥µãã¦åæ©è½ããï¼ä½¿ããªãã¦ãããã¯å°ã ããºã¤ãªã¨æã£ã¦ãã¾ããã ããããåå¼·éå§ãã¾ãã 以ä¸ã§ãã
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã®éçºè¨èªã¯ Ruby ãªã®ã§ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ãã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ã並åå¶å¾¡ã® Paralle.each ã使ãå ´åã®â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã®éçºè¨èªã¯ Ruby ãªã®ã§ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ãã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ãæ£è¦è¡¨ç¾ã§æ¯è¼å¼ã« #{} ã使ãå ´åã®æ³¨â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ããªãã¸ã§ã¯ããªã³ã¯ã®æã¡åãâ¦
ã¯ããã«ï¼ å°éã®è©ä¾¡ãããã»ããã°ã©ã ä»æ§ãä½åãã«åãã¦èª¬æãã¦ãããããã¨èãã¦ãã¾ãã ç´°ããç¹ã¯ã¹ãããããã¦ãçµµã沢山使ã£ã¦ãè¿°ã¹ã¦ããããã¨æã£ã¦ãã¾ãã ã¾ãã¯ãã®å ¨ä½æ¦è¦ããã§ãã ï¼è¿½è¨ãããã¾ã 2017å¹´12æ27æ¥ï¼ å ¨ä½ããâ¦
æ±é²ã®å§åï¼èµ¤æï¼ã¯ã¦ã¼ã©ã·ã¢ãã¬ã¼ãã«ãããã®ã§ããã®åããç¥ããã¨ããã¨ã©ããã¦ãä¸å½ã§ã®éå»ã®ä¸»ã ã£ãå°éãç¥ã£ã¦ããå¿ è¦ãããã¾ãã ããã§wikipediaã調ã¹ã¦æ±ã¢ã¸ã¢ã»ãã·ã¢æ±é¨ã§ã®ä¸»ã ã£ãå°éããªã¹ããã¾ããã æ¥æ¬ã¯å ¥ãã¾ããã[1â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ãå°éã®äºæ¸¬ãããã»ããã°ã©ã â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ã.scanã®ä½¿ãæ¹ã§ãã ï¼çãã¾â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ã大è¦æ¨¡ãã¼ã¿ãããã·ã¥ã§ãã©â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ä»åã¯ãèªå·±å¢æ®ããããã·ã¥ã§ãã ï¼â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯ãçµ±è¨è§£æã®å¯¾è±¡ã¨ããå°éãæ·±ãï¼ï¼ï¼ï½ï½ããæµ ãæã§çºçããå°éã«çµã£ã¦ãã¾ãã[1] çç±ã¯ï¼ï¼ï¼ï¼å¹´ï¼æï¼æ¥ã®ååå°æ¹åé¨å°éã®æ·±ããï¼ï¼ï¼ï½ï½ã ã£ããããªã®ã§ãããä»ã®ä¸»ã ã£ãå°éã®æ·±ããè¨è¼ãã¦ããã¹â¦
æ¬å°éã®äºæ¸¬ãããã»ããã°ã©ã ã¯Rubyã§æ¸ããã¦ãã¾ããã以åããåãã¦ã®æ¹ããã«ã³ã¼ãã£ã³ã°ãã¯ã®ãããªã¢ããã¾ã¨ãã¦ãããã°ãã¨èãã¦ãã¾ããã ããã§æãä»ãã¾ã¾ã«ã¾ã¨ãã¦ã¿ãããã¨èãã¦ããã¾ãã ã¾ãæåã¯ãè¤éãªè«çã®ifæãæ¸ãéâ¦
æ¯åå ±åãããå°éã®äºæ¸¬ããããã«æ¸ãã¨é·ããªãã®ã§ãããã§ç§ãç解ãã¦ããå°éã®ã¢ãã«ãè¿°ã¹ã¦ããã¾ãã å°éã®ã¢ã㫠以ä¸ã¯wikipediaããå¼ç¨ããå³ã§ãéå±æ£ãå¼ã£å¼µã£ãæã®ç ´å£ã«è³ãã¢ãã«ã示ãã¦ãã¾ãã[2] ãå¿åã¨æªãæ²ç·ã¨è¨ãããã§â¦