forked from flashlxy/PyMICAPS
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.xml
372 lines (337 loc) · 19.9 KB
/
config.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
<?xml version="1.0" encoding="utf-8"?>
<Products>
<Product>
<!-- M1:站点数据,M4:第4类格点数据,M11:第11类UV数据-->
<OriginalDataType>M4</OriginalDataType>
<!--原始数据文件路径
M4 - K:\GQEC\TP\r24\17032908.060 16062908.012 K:\ecmwf\pressure\999\16122520.000
K:\ecmwf\height\500\17033108.240 K:\ecmwf\temper\850\16122520.000
K:\GQJP\HGT\500\17040514.084 K:\GQJP\24P\1010\17040514.078
-->
<OriginalFile>K:\GQEC\TP\r24\17032908.060</OriginalFile>
<!-- 地图投影 -->
<Projection>
<!-- map projection. Print the module variable supported_projections to see a list of allowed values.
sall:无投影,
lcc:兰波托投影,mill,ortho,
stere:极射赤面投影,npstere:北半球极射赤面投影, hammer,kav7,
merc:麦卡托投影,gnom, cyl:等经纬度投影
-->
<name>sall</name>
<!-- 为空或者为非数值则首先使用裁切区的中心经纬度,其次使用数据本身所在区域的中心经纬度-->
<!-- central latitude (y-axis origin) - used by all projections. -->
<lon_0>116.</lon_0>
<!-- central meridian (x-axis origin) - used by all projections. -->
<lat_0>30.</lat_0>
<!-- latitude of true scale. Optional for stereographic, cylindrical equal area and mercator projections.
default is lat_0 for stereographic projection.
default is 0 for mercator and cylindrical equal area projections.
-->
<lat_ts>90.</lat_ts>
<!-- bounding latitude for pole-centered projections (npstere,spstere,nplaea,splaea,npaeqd,spaeqd).
These projections are square regions centered on the north or south pole.
The longitude lon_0 is at 6-o’clock,
and the latitude circle boundinglat is tangent to the edge of the map at lon_0.
-->
<boundinglat>0</boundinglat>
<!-- 为空或者为非数值则首先使用裁切区的左下角和右上角的经纬度,其次使用数据本身所在区域的左下角和右上角的经纬度
对lcc, stere, merc很重要
5.13 85.86 53.51 174.69
lcc stere merc 比较适合的配置 leftbottom:-4,75 righttop:55,188
-->
<!-- latitude of lower left hand corner of the selected map domain. -->
<llcrnrlat>10</llcrnrlat>
<!--longitude of lower left hand corner of the selected map domain.-->
<llcrnrlon>50</llcrnrlon>
<!--latitude of upper right hand corner of the selected map domain.-->
<urcrnrlat>70</urcrnrlat>
<!--longitude of upper right hand corner of the selected map domain.-->
<urcrnrlon>160</urcrnrlon>
<!-- 是否显示海岸线 on off. default is off -->
<coastlines>on</coastlines>
<!-- 是否显示国界线 on off. default is off -->
<countries>on</countries>
<!-- 海洋陆地设置 -->
<lsmask>
<visible>on</visible> <!-- 海洋陆地配色开关 default is off -->
<land_color>#ddaa66</land_color> <!-- 陆地颜色 default is '#689CD2' -->
<ocean_color>#7777ff</ocean_color> <!-- 海洋颜色 default is '#689CD2' -->
</lsmask>
<!-- 是否显示坐标轴 on off. default is off -->
<axis>on</axis>
<!-- 纬度方向坐标轴的文本 左 上 右 下 - 1,0,0,1 -->
<latlabels>1,0,0,0</latlabels>
<!-- 经度方向坐标轴的文本 左 上 右 下 - 1,0,0,1 -->
<lonlabels>0,0,0,1</lonlabels>
<!-- colorbar settings begin 对无投影无效-->
<!-- where to put colorbar (‘top’,’bottom’,’left’,’right’) Default ‘right’. -->
<location>bottom</location>
<!-- width of colorbar axes (string ‘N%’, where N is an integer describing
the fractional width of the parent axes). Default ‘5%’.
-->
<size>3%</size>
<!--Padding between parent axes and colorbar axes in same units as size. Default ‘2%’.-->
<pad>5%</pad>
<!-- colorbar settings stop 对无投影无效-->
</Projection>
<!-- 地图边界 支持shp和指定格式的txt文件,见示例基础数据
D:\CODES\pyproject\shapefiles\china\bou2_4l.shp BOUA5
D:\CODES\pyproject\shapefiles\xz_new\BOUA5.shp
'LC', 'GA', 'JA', 'JD', 'JJ', 'NC', 'PX', 'SR', 'XD', 'YD', 'YN'
-->
<MapBorders>
<MapBorder>
<File>D:\CODES\pyproject\shapefiles\bou2_4l.shp</File> <!-- 地图文件 -->
<Type>shp</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>k</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>on</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>LC.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>off</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>XD.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>YD.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>YN.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>SR.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>PX.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>GA.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>JJ.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>JA.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
<MapBorder>
<File>JD.txt</File> <!-- 地图文件 -->
<Type>txt</Type> <!-- 地图文件类型 -->
<LineWidth>0.5</LineWidth> <!-- 线宽:float -->
<LineColor>blue</LineColor> <!-- 线颜色:str -->
<Polygon>on</Polygon> <!-- 闭合折线(仅用于非shp文件):on, off -->
<Draw>off</Draw> <!-- 是否绘制:on, off -->
</MapBorder>
</MapBorders>
<!-- 裁剪边界文件路径,用于对色斑图进行裁剪
d:\codes\pyproject\shapefiles\bou2_4p|360000,430000,440000,350000|1
360000,430000,440000,350000,330000,340000,420000,710000,810000,820000
-->
<CutBorders>
<!--shp地图文件路径|裁切区编码数组(支持多省合并)|线宽
各省、直辖市、港澳台行政区划码说明:
110000 北京市
120000 天津市
130000 河北省
140000 山西省
150000 内蒙古自治区
210000 辽宁省
220000 吉林省
230000 黑龙江省
310000 上海市
320000 江苏省
330000 浙江省
340000 安徽省
350000 福建省
360000 江西省
370000 山东省
410000 河南省
420000 湖北省
430000 湖南省
440000 广东省
450000 广西壮族自治区
460000 海南省
500000 重庆市
510000 四川省
520000 贵州省
530000 云南省
540000 西藏自治区
610000 陕西省
620000 甘肃省
630000 青海省
640000 宁夏回族自治区
650000 新疆维吾尔自治区
710000 台湾省
810000 香港特别行政区
820000 澳门特别行政区
-->
<CutBorder>
<File>d:\codes\pyproject\shapefiles\bou2_4p</File> <!-- 地图文件 -->
<Type>shp</Type> <!-- 地图文件类型 -->
<!-- 行政区划码数组 ,仅对shp文件有效 360000,430000 default is 360000 -->
<Code>360000,430000,440000,350000,330000,340000,420000,710000,810000,820000</Code>
<Using>on</Using> <!-- 是否启用:on,off -->
<Draw>off</Draw> <!-- 是否绘制:on,off -->
<LineWidth>1</LineWidth> <!-- 线宽:float -->
<LineColor>k</LineColor> <!-- 线颜色:str -->
</CutBorder>
</CutBorders>
<!-- 生成的图片宽度 基本不用 根据高度按比例确定 default is 10 -->
<PicWidth>10</PicWidth>
<!-- 生成的图片高度 单位:inches ,default is 10 貌似 1 inches = 100 pixel -->
<PicHeight>10</PicHeight>
<!-- dpi:int dots per inch default is 72 -->
<Dpi>72</Dpi>
<!-- 图像宽度缩小比率:0-1 之间 default is 1-->
<WidthShrink>1</WidthShrink>
<!-- 裁切区的外延:浮点数 default is 0-->
<Margin>0.25</Margin>
<!-- 图像内边距 default is 0-->
<Pad>3</Pad>
<!-- 绘图区域范围 - 左下角经纬度坐标 右上角经纬度坐标
为空则默认用裁切区+外延所在的矩形范围 无裁切区则取数据本身的范围
113.33273, 24.241938000000001, 118.74326600000001, 30.330926999999999
-->
<Extents> </Extents>
<!-- 画布透明度 浮点数0-1之间 default is 1.-->
<Opacity>1</Opacity>
<!-- 生成的图片文件路径 default is mytest.png -->
<PicFile>C:\Pic\17032520.001.png</PicFile>
<!-- 图例图片文件路径,图例叠加到产品图上的位置,为空表示自行生成图例
格式:文件名,插入经度,插入纬度,图例缩放系数
jxlogo.png,117,25.7,1
-->
<LegendPic> </LegendPic>
<!-- 是否取MICAPS数据本身的图例值 True False default is True-->
<MicapsLegendValue>True1</MicapsLegendValue>
<!-- 等值线步长(float) 仅当数据是第三类数据并且本身图例值开关打开的时候有效 default is 4. -->
<Step>2.</Step>
<!--
色标名称: 仅当MicapsLegendValue=True时有效。
支持NCL colorbar name. example: precip3_16le, ncl_default, MPL_RdBu etc. default is ncl_default
参考链接:http://www.ncl.ucar.edu/Document/Graphics/color_table_gallery.shtml
-->
<MicapsLegendColor>ncl_default</MicapsLegendColor>
<!-- 图例等级值 0, 0.01, 10, 25, 50, 100, 250, 9999. default is None -->
<LegendValue>0.01, 10, 25, 50, 100, 250</LegendValue>
<!-- 图例颜色值 'none', '#A6F28F', '#3DBA3D', '#61B8FF', '#0000FF', '#FF00FA', '#800040', '#000000'. default is None-->
<LegendColor>'#A6F28F', '#3DBA3D', '#61B8FF', '#0000FF', '#FF00FA', '#800040'</LegendColor>
<!-- 无投影时的图例配置 -->
<!-- 图例放置方式 vertical:竖 or horizontal:横 default is vertical-->
<Orientation>vertical</Orientation>
<!-- 图例离边框位置 default is [0, 0]-->
<Anchor>0, 0.15</Anchor>
<!-- 图例收缩系数 0-1 之间 default is 1-->
<Shrink>0.5</Shrink>
<!-- fraction of original axes to use for colorbar. default is 0.15-->
<Fraction>0.025</Fraction>
<!-- 插值点数 (经度方向点数,纬度方向点数) default is [195,216]-->
<Grid>195.5,216.7</Grid>
<!-- 等值线配置 -->
<Contour>
<Visible>True1</Visible> <!-- True False. default is False -->
<LineWidth>0.5</LineWidth> <!-- float. default is 1. -->
<LineColor>b</LineColor> <!-- string. default is 'black' -->
<ColorLine>True1</ColorLine> <!-- 等值线渐变色 if True linecolor设置无效. default is False-->
</Contour>
<!-- <ContourVisible>True</ContourVisible> -->
<!-- 是否显示色斑图 True False. default is False -->
<ContourfVisible>True</ContourfVisible>
<!-- 等值线标注配置 True False. default is False -->
<ContourLabel>
<Visible>True1</Visible> <!-- True False. default is False -->
<Fmt>%1.0f</Fmt> <!-- label数据显示格式 default is '%1.0f' -->
<FontSize>12</FontSize> <!-- float.. default is 12. -->
<FontColor>k</FontColor> <!-- string. default is 'black' -->
</ContourLabel>
<!-- <ContourLabelVisible>True</ContourLabelVisible> -->
<!-- 是否按Micaps数据的标题作为产品描述 标题位置:113.2,30.3,
不为空:是-(特殊值0,0表示默认的标题位置),
为空: 否
-->
<MTitlePosition> 0,0 </MTitlePosition>
<!-- 产品图片文字描述(可能多个)113.38
常用中文字体说明:
新宋体:simsun.ttc
微软雅黑 常规:myyh.ttc
微软雅黑 粗体:msyhbd.ttc
微软雅黑 细体:msyhl.ttc
宋体 常规:simsun.ttc
楷体 常规:simkai.ttf
华文细黑 常规:华文细黑.TTF
黑体 常规:simhei.ttf
仿宋 常规:simfang.ttf
方正等线 常规:DengXian.ttf
等线 常规:Deng.ttf
等线 粗体:Dengb.ttf
等线 细体:Dengl.ttf
Microsoft YaHei UI 常规:msyh.ttc
Microsoft YaHei UI 粗体:msyhbd.ttc
Microsoft YaHei UI 细体:msyhl.ttc
SimSun-ExB:simsunb.ttf
-->
<Descs>
<Desc>
<Text>江西格点,24小时累计降水</Text> <!-- 文字-->
<Position>113.2,30.1</Position> <!-- 文字绘制的开始点-->
<Font>18,myyh.ttc,bold,black</Font> <!-- 文字大小,字体,是否加粗,颜色-->
</Desc>
<Desc>
<Text>2017年3月26日20时-27日20时</Text>
<Position>113.2,29.85</Position>
<Font>18,myyh.ttc,bold,black</Font>
</Desc>
<Desc>
<Text>江西省气象台</Text>
<Position>113.2,29.55</Position>
<Font>16,myyh.ttc,bold,black</Font>
</Desc>
</Descs>
</Product>
</Products>