Skip to content

convert color degreed image map (ex heatmap from satellite) to degree and lat-lng pair

Notifications You must be signed in to change notification settings

hagiwaratakayuki/image_to_degree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Image To Degree

Get degree parameter from color coded map. Sometimes Space agency does not open meshed data ,but in many time open color coded map. It is tool for get meshed data from such "map".

温度などのパラメーターによって色分けされた地図画像から緯度経度とパラメーターを逆算して取り出すためのツールです
NASA等が公開しているデータでは、メッシュで表現されたデータが非常に少ない一方でデータ量によって色分けされた地図が多く、その間を埋める目的で開発しました

HOW TO USE

require 'image_to_degree';
$format = 'png';
$file_url = 'http://test.example.com/';
$min_color = array('r'=>10,'g'=>20,'b' =>30);
$max_color = array('r'=>40,'g'=>50,'b' =>60);
$ne_lat    = 35.12;
$ne_lng    = 135.43;
$sw_lat    = 35.11';
$sw_lng    = 135.42;
echo json_encode(image_to_degree($format,$file_url,$min_color,$max_color,$ne_lat,$ne_lng,$sw_lat,$sw_lng));
  • $format : image format

  • $file_url : url of file

  • $min_color : rgb of min paranmerter color.

  • $max_color : rgb of max paranmerter color.

  • $ne_lat : north east latitude of map.

  • $ne_lng : sowth west longitude of map.

  • $sw_lat : south west latitude of map.

  • $sw_lng : north east longitude of map.

licence

Copyright © 2012 hagiwara takayuki Licensed under the [PHP Licence][php]

[php]http://www.php.net/license/

About

convert color degreed image map (ex heatmap from satellite) to degree and lat-lng pair

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages