代码拉取完成,页面将自动刷新
# -*- coding: utf-8 -*-
# 站点类
# Author: Liu xianyao
# Email: flashlxy@qq.com
# Update: 2017-04-14
# Copyright: ©江西省气象台 2017
# Version: 1.1.20170414
from __future__ import print_function
from Micaps17Data import Micaps17Data
from Projection import Projection
class Stations:
def __init__(self, root):
leaf = root.find("Stations")
self.file = Projection.leaf_to_string(leaf, 'File')
self.visible = Projection.leaf_to_bool(leaf, 'Visible', False)
self.markstyle = Projection.leaf_to_list(leaf, 'MarkStyle', ['o', 'full'])
self.color = Projection.leaf_to_string(leaf, 'Color', 'k')
self.edgecolors = Projection.leaf_to_string(leaf, 'EdgeColors', 'k')
self.alpha = Projection.leaf_to_float(leaf, 'Alpha', 1.)
self.radius = Projection.leaf_to_float(leaf, 'Radius', 5)
self.font = Projection.leaf_to_list(leaf, 'Font', [18, 'myyh.ttc', 'bold', 'k'])
self.detax = Projection.leaf_to_float(leaf, 'Detax', 0.03)
self.micapsdata = Micaps17Data(self.file)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。