2 Star 4 Fork 7

刘胜胜/气象数据可视化,用matplotlib和basemap绘制micaps数据

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Stations.py 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
# -*- 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)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/lss0306/PyMICAPS.git
git@gitee.com:lss0306/PyMICAPS.git
lss0306
PyMICAPS
气象数据可视化,用matplotlib和basemap绘制micaps数据
master

搜索帮助