Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
FelixZFB committed Jan 30, 2020
0 parents commit 1d7f4b0
Showing 2,596 changed files with 1,414,046 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/wuhan_2019-nCoV.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#### 武汉2019新型冠状病毒疫情可视化(全国疫情地图及时间轴变化)
6 changes: 6 additions & 0 deletions china_shapfiles/china-shapefiles-simple-version/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Standard China Administrative Boundaries

- china\_country.shp
- simplified\_china\_country.shp
- china.shp (with province boundaries)
- china\_nine\_dotted\_line.shp
Binary file not shown.
1 change: 1 addition & 0 deletions china_shapfiles/china-shapefiles-simple-version/china.prj
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]
Binary file not shown.
Binary file not shown.
59 changes: 59 additions & 0 deletions china_shapfiles/china-shapefiles-simple-version/plot-sample.ncl
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
load "/opt/shapefiles/shapefile_utils.ncl"

shapefile_root = "/opt/shapefiles"

procedure attach_china_map(wks, plot)
local res, res_scs, res_small_map, map_scs
begin

res = True
res@gsLineThicknessF = 3.0

plot@china_map = gsn_add_shapefile_polylines(wks, plot, shapefile_root + "/china.shp", res)
plot@china_nine_dotted_line_map = gsn_add_shapefile_polylines(wks, plot, shapefile_root + "/china_nine_dotted_line.shp", res)

res_scs = True
res_scs@gsnDraw = False
res_scs@gsnFrame = False
res_scs@vpWidthF = 0.15
res_scs@mpMinLonF := 105.0
res_scs@mpMaxLonF := 123.0
res_scs@mpMinLatF := 2.0
res_scs@mpMaxLatF := 23.5
res_scs@mpOceanFillColor = 0
res_scs@tmXBOn = False
res_scs@tmXTOn = False
res_scs@tmYLOn = False
res_scs@tmYROn = False

map_scs = gsn_csm_map(wks, res_scs)

plot@china_map_in_small_map = gsn_add_shapefile_polylines(wks, map_scs, shapefile_root + "/china.shp", res)
plot@china_nine_dotted_line_in_small_map = gsn_add_shapefile_polylines(wks, map_scs, shapefile_root + "/china_nine_dotted_line.shp", res)

res_small_map = True
res_small_map@amParallelPosF = -0.495
res_small_map@amOrthogonalPosF = 0.495
res_small_map@amJust = "BottomLeft"
plot@south_china_sea_small_map = gsn_add_annotation(plot, map_scs, res_small_map)

end

wks = gsn_open_wks("pdf", "china")

res_map = True
res_map@gsnMaximize = True
res_map@gsnDraw = False
res_map@gsnFrame = False
res_map@gsnAddCyclic = False
res_map@mpLimitMode = "LatLon"
res_map@mpMinLonF = 70
res_map@mpMaxLonF = 140
res_map@mpMinLatF = 10
res_map@mpMaxLatF = 60
res_map@pmTickMarkDisplayMode = "Always"

plot = gsn_csm_map(wks, res_map)
attach_china_map(wks, plot)
draw(plot)
frame(wks)
Loading

0 comments on commit 1d7f4b0

Please sign in to comment.