1 Star 0 Fork 1

cnxd365 / PyMICAPS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
File.py 1007 Bytes
一键复制 编辑 原始数据 按行查看 历史
非对称 提交于 2017-04-13 10:30 . Ver 2.0 to master (#5)
# -*- coding: utf-8 -*-
#
# Author: Liu xianyao
# Email: flashlxy@qq.com
# Update: 2017-04-06
# Copyright: ©江西省气象台 2017
# Version: 1.1.20170406
from __future__ import print_function
from __future__ import print_function
from Micaps11Data import Micaps11Data
from Micaps3Data import Micaps3Data
from Micaps4Data import Micaps4Data
from Projection import Projection
class File:
def __init__(self, root):
leaf = root.find("File")
if leaf is None:
return
self.type = Projection.leaf_to_string(leaf, 'Type', 'M4')
self.filename = Projection.leaf_to_string(leaf, 'FileName', 'M4')
if self.type == 'M4':
self.micapsdata = Micaps4Data(self.filename)
elif self.type == 'M3':
self.micapsdata = Micaps3Data(self.filename)
elif self.type == 'M11':
self.micapsdata = Micaps11Data(self.filename)
else:
return
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cnxd365/PyMICAPS.git
git@gitee.com:cnxd365/PyMICAPS.git
cnxd365
PyMICAPS
PyMICAPS
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891