[Tool] Get BingWallpapers for Windows desktop!

Repository: https://github.com/thuzhu/BingWallpaper

Gallery: http://zhudeng.top/BingWallpaper/BingWallpaper/


USAGE

  1. Unzip files in folder “BingWallpaper-master” to “D:\BingWallpaper\”.
  2. Right click “Setup.bat” and choose “Run as administrator”, to create a schedule task and Startup mission.
  3. Right click on your desktop, Change the backgroud to “Slideshow” and set the albums path to “D:\BingWallpaper\BingWallpaper”

 

  • If you are using win10, just set the “Shuffle” on and change picture every 30mins for more fun!

[GDAL] Install GDAL on Windows and HDF4 support

1.下载gdal 2.1.0
http://download.osgeo.org/gdal/2.1.0/gdal210.zip

2.下载第三方支持包并解压
hdf4:
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/hdf4-4.2.11-0.tar.bz2
proj.4:
https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/win-64/proj.4-4.9.1-0.tar.bz2
geos:
http://download.osgeo.org/geos/geos-3.6.1.tar.bz2

(编译geos)
双击E:\geos-3.6.1\autogen.bat
打开VS build tool x64,(下载http://landinghub.visualstudio.com/visual-cpp-build-tools)
cd E:\geos-3.6.1
e:
nmake /f makefile.vc

3.修改gdal配置E:\gdal-2.1.0\nmake.opt
1)修改vs版本号
!IFNDEF MSVC_VER
#assume msvc VS2008.
MSVC_VER=1900
!ENDIF

2)修改HDF4路径
# Uncomment the following and update to enable NCSA HDF Release 4 support.
HDF4_PLUGIN = NO
HDF4_DIR = E:\hdf4-4.2.11-0\Library
HDF4_LIB = $(HDF4_DIR)\lib\hdf.lib $(HDF4_DIR)\lib\mfhdf.lib

3)修改PROJ.4路径
# PROJ.4 stuff
# Uncomment the following lines to link PROJ.4 library statically. Otherwise
# it will be linked dynamically during runtime.
#PROJ_FLAGS = -DPROJ_STATIC
PROJ_INCLUDE = -IE:\proj.4-4.9.1-0\Library\lib
lPROJ_LIBRARY = E:\proj.4-4.9.1-0\Library\lib\proj_i.lib

(修改geos路径)
# Uncomment for GEOS support (GEOS >= 3.1.0 required)
GEOS_DIR=E:\geos-3.6.1
GEOS_CFLAGS = -I$(GEOS_DIR)\capi -I$(GEOS_DIR)\source\headers -DHAVE_GEOS
GEOS_LIB = $(GEOS_DIR)\src\geos_c_i.lib

4.编译gdal
1)打开VS build tool x64,
cd E:\gdal-2.1.0
e:
nmake /f makefile.vc
nmake /f makefile.vc install

2)拷贝E:\hdf4-4.2.11-0\Library\bin和E:\proj.4-4.9.1-0\Library\bin下文件到C:\warmerda\bld\bin下

5.使用gdal
cd C:\warmerda\bld\bin
c:
gdalinfo –version
gdalinfo [filename]

6.转坐标
1)转地理坐标使用EPSG表:
set GDAL_DATA=C:\warmerda\bld\data
gdalwarp -geoloc -t_srs EPSG:4326 HDF4_EOS:EOS_SWATH:”e:\MOD04_3K.A2016001.0150.006.2016008004050.hdf”:mod04:Optical_Depth_Land_And_Ocean e:\test2.tif
2)转投影坐标使用PROJ.4参数
e.g.中国区转为兰伯特等角投影
gdalwarp -t_srs ‘+proj=lcc +lat_1=25.00 +lat_2=47.00 +lat_0=34.533333 +lon_0=108.916667 +x_0=0 +y_0=0 +a=6378137.0 +b=6356752.3 +ellps=WGS84 +datum=WGS84 +units=m +no_defs’ -overwrite e:\test2.tif e:\test3.tif

**针对MODIS影像,先转地理坐标,后转投影
**投影查询http://spatialreference.org/,可查EPSG和proj4参数

[PM2.5] Some Visualization Works

PM2.5 Ground Prediction in North China in 2014


Improving the Accuracy of Daily PM2. 5 Distributions Derived from the Fusion of Ground-Level Measurements with Aerosol Optical Depth Observations, a Case Study in North China
Lv, B., Y. Hu, H. H. Chang, A. G. Russell*, Y. Bai* (2016)
Environmental science & technology, v 50, n 9, p 4752-4759

Video Author: Zhu Deng


Road Pollution Emission in Beijing
(Full Screen / Phone)


 

AOD (MODIS Aqua/Terra) in China


END

[GIS/FCD/Map-Matching] Map-Matching using Yingyan Trace by BMap API

Map-matching algorithms integrate positioning data with spatial road netwok data to identify thr correct link on which a vehicle is travelling and to determine the location of a vehicle on a link. Various map-matching algorithms has been derived from literatures.

BMap recently  released a service named Yingyan Trace, which offered users APIs to upload positioning points, generate and manage traces, and map discrete GPS points to continuous trajectories based on road network.

Preparation

Floating Car Data

Floating car data (FCD) is collection of GPS records about driving status, regularly sampled from GPS equipment in vehicles.

GPS records of a taxi on Nov. 18th, 2014, were used to this case study.

ID: 1379

Records in total: 616

While adjacent points are lined, lines do not coincide with road network.

BMap API Key

Create an application on BMap API Console, and get a API key.

 

UPload

 API Description

http://lbsyun.baidu.com/index.php?title=yingyan/api/v3/trackupload

addpoint - Upload a single point

Interface Description
upload a track point for an entity

Request URI
URI:http://yingyan.baidu.com/api/v3/track/addpoint

HTTP Request Mode
POST

Request Parameter


Return Value
Uploading

Transformat records to wget post request:

Example:  wget –post-data=”ak=0QG***SRL&service_id=13**16&entity_name=1379&longitude=116.***090&latitude=39.***810&loc_time=1479258504&coord_type_input=wgs84&load= ” http://yingyan.baidu.com/api/v3/track/addpoint

 

Manage

Trace Management Console

Map-Matching: tied road network

DOwnload

API Desctiption

http://lbsyun.baidu.com/index.php?title=yingyan/api/v3/trackprocess

gettrack - trajectory correction

Interface Description
Real-time query for an entity within a period of time travel information: from the end, the total mileage, fees mileage, track point list. Support for track denoising, pumping thin, tied, mileage compensation and so on.

Request URI
URI: http://yingyan.baidu.com/api/v3/track/gettrack

HTTP Request Mode
GET
Downloading

Request following url and get a json file with map-matching results in return:

http://yingyan.baidu.com/api/v3/track/gettrack?ak=0QG***SRL&service_id=13**16&entity_name=1379&start_time=1479258504&end_time=1479344904&is_processed=1&process_option=%22need_mapmatch=1%22&sort_type=asc&page_size=5000

Visualization in ArcMap

[Preface] Do Not Go Gentle into That Good Night

Do not go gentle into that good night,
Old age should burn and rave at close of the day;
Rage, rage against the dying of the light.

Though wise men at their end know dark is right,
Because their words had forked no lightning they
Do not go gentle into that good night.

Good men, the last wave by, crying how bright
Their frail deeds might have danced in a green bay,
Rage, rage against the dying of the light.

Wild men, who caught and sang the sun in flight,
And learn, too late, they grieved it on its way,
Do not go gentle into that good night.

Grave men, near death, who see with blinding sight
Blind eyes could blaze like meteors and be gay,
Rage, rage against the dying of the light.

And you, my father, there on the sad height,
Curse, bless, me now with your fierce tears, I pray.
Do not go gentle into that good night.
Rage, rage against the dying of the light.