代码拉取完成,页面将自动刷新
同步操作将从 刘胜胜/气象数据可视化,用matplotlib和basemap绘制micaps数据 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
# -*- coding: utf-8 -*-
#
# Author: Liu xianyao
# Email: flashlxy@qq.com
# Update: 2017-04-11
# Copyright: ©江西省气象台 2017
# Version: 2.0.20170411
from __future__ import print_function
from Projection import Projection
class UV:
def __init__(self, root):
leaf = root.find("UV")
if leaf is None:
return
self.stream = Projection.leaf_to_bool(leaf, 'Stream', False)
self.density = Projection.leaf_to_list(leaf, 'Density', [1, 1])
self.barbsgrid = Projection.leaf_to_list(leaf, 'BarbsGrid', [31, 31])
self.color = Projection.leaf_to_string(leaf, 'Color', 'k')
self.onspeed = Projection.leaf_to_bool(leaf, 'OnSpeed', False)
self.wholecilp = Projection.leaf_to_bool(leaf, 'WholeClip', False)
self.oncolor = Projection.leaf_to_bool(leaf, 'OnColor', False)
self.linewidth = Projection.leaf_to_float(leaf, 'LineWidth', 1.)
self.scale = Projection.leaf_to_int(leaf, 'Scale', 700)
self.markscalelength = Projection.leaf_to_float(leaf, 'MarkScaleLength', 12.)
self.barbs = Projection.leaf_to_bool(leaf, 'Barbs', False)
self.length = Projection.leaf_to_int(leaf, 'Length', 1)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。