爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: 高空急流

[源代码] 重磅更新!读取CINRAD雷达基数据的Python模块

  [复制链接]

新浪微博达人勋

发表于 2020-6-2 09:49:01 | 显示全部楼层
老师您好,我是内蒙古乌兰察布的,我们这里刚有了自己的CB雷达,怎么能把我们的雷达信息配置进模块里呢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-6-3 20:43:40 | 显示全部楼层
我这个问题无从查起,具体内容如下import cinrad后悔说
C:\ProgramData\Anaconda3\lib\site-packages\pooch\core.py:260: UserWarning: Downloading data file 'sfstns.tbl' from remote data store 'https://github.com/Unidata/MetPy/raw/v0.12.0/staticdata/' to 'C:\Users\GYD\AppData\Local\metpy\cache\v0.12.0'.
  action, fname, self.base_url, str(self.path)
Traceback (most recent call last):

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 485, in wrap_socket
    cnx.do_handshake()

  File "C:\ProgramData\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1934, in do_handshake
    self._raise_ssl_error(self._ssl, result)

  File "C:\ProgramData\Anaconda3\lib\site-packages\OpenSSL\SSL.py", line 1663, in _raise_ssl_error
    raise SysCallError(errno, errorcode.get(errno))

SysCallError: (10054, 'WSAECONNRESET')


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen
    chunked=chunked,

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 376, in _make_request
    self._validate_conn(conn)

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 994, in _validate_conn
    conn.connect()

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connection.py", line 360, in connect
    ssl_context=context,

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\util\ssl_.py", line 370, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\contrib\pyopenssl.py", line 491, in wrap_socket
    raise ssl.SSLError("bad handshake: %r" % e)

SSLError: ("bad handshake: SysCallError(10054, 'WSAECONNRESET')",)


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 449, in send
    timeout=timeout

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen
    method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]

  File "C:\ProgramData\Anaconda3\lib\site-packages\urllib3\util\retry.py", line 436, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))

MaxRetryError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /Unidata/MetPy/v0.12.0/staticdata/sfstns.tbl (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))


During handling of the above exception, another exception occurred:

Traceback (most recent call last):

  File "<ipython-input-1-e072aa8e7a04>", line 1, in <module>
    import cinrad

  File "C:\ProgramData\Anaconda3\lib\site-packages\cinrad-1.2.2-py3.7.egg\cinrad\__init__.py", line 5, in <module>
    from . import visualize

  File "C:\ProgramData\Anaconda3\lib\site-packages\cinrad-1.2.2-py3.7.egg\cinrad\visualize\__init__.py", line 6, in <module>
    from cinrad.visualize.ppi import *

  File "C:\ProgramData\Anaconda3\lib\site-packages\cinrad-1.2.2-py3.7.egg\cinrad\visualize\ppi.py", line 15, in <module>
    from cinrad.io.pup import _StormTrackInfo

  File "C:\ProgramData\Anaconda3\lib\site-packages\cinrad-1.2.2-py3.7.egg\cinrad\io\pup.py", line 6, in <module>
    from metpy.io.nexrad import Level3File

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\io\__init__.py", line 12, in <module>
    from .metar import *  # noqa: F403

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\io\metar.py", line 15, in <module>
    from .station_data import station_info

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\io\station_data.py", line 140, in <module>
    station_info = StationLookup()

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\io\station_data.py", line 128, in __init__
    self._sources = [dict(_read_station_table()), dict(_read_master_text_file()),

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\io\station_data.py", line 35, in _read_station_table
    input_file = get_test_data('sfstns.tbl', as_file_obj=False)

  File "C:\ProgramData\Anaconda3\lib\site-packages\metpy\cbook.py", line 33, in get_test_data
    path = POOCH.fetch(fname)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pooch\core.py", line 263, in fetch
    self._download_file(fname)

  File "C:\ProgramData\Anaconda3\lib\site-packages\pooch\core.py", line 306, in _download_file
    response = requests.get(source, stream=True)

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 76, in get
    return request('get', url, params=params, **kwargs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\api.py", line 61, in request
    return session.request(method=method, url=url, **kwargs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 530, in request
    resp = self.send(prep, **send_kwargs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 665, in send
    history = [resp for resp in gen] if allow_redirects else []

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 665, in <listcomp>
    history = [resp for resp in gen] if allow_redirects else []

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 245, in resolve_redirects
    **adapter_kwargs

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\sessions.py", line 643, in send
    r = adapter.send(request, **kwargs)

  File "C:\ProgramData\Anaconda3\lib\site-packages\requests\adapters.py", line 514, in send
    raise SSLError(e, request=request)

SSLError: HTTPSConnectionPool(host='raw.githubusercontent.com', port=443): Max retries exceeded with url: /Unidata/MetPy/v0.12.0/staticdata/sfstns.tbl (Caused by SSLError(SSLError("bad handshake: SysCallError(10054, 'WSAECONNRESET')")))
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-6-17 10:06:24 来自手机 | 显示全部楼层
请问老师有没有可以使用X波段雷达的库啊
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-7-16 07:11:35 来自手机 | 显示全部楼层
谢谢楼主,请问能解析双偏振雷达吗SD数据
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-7-22 16:04:05 | 显示全部楼层
eeeee 发表于 2018-8-29 20:15
更新一下程序。
新增功能:
1.CC1.0雷达的多普勒速度和基本反射率绘制

level这个是层数吗,, drange这个是什么参数呢
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-7-22 16:07:13 | 显示全部楼层
666 楼主大善
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-8-28 09:27:47 | 显示全部楼层
这玩意看着挺好,就是安装一顿猛如虎,结果还是没成功
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-9-3 09:01:03 | 显示全部楼层
给大佬跪了给大佬跪了
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-9-3 15:33:22 | 显示全部楼层
大神,使用双偏振雷达基数据生成组合反射率时,圆圈外面会出现红色边缘,正好凑成一个方形,是双偏振数据不一样导致的吗?
Z_RADR_I_Z9094_20200903033100_O_DOR_CA_CAP.bin.png
Z_RADR_I_Z9250_20160701001000_O_DOR_SA_CAP.bin.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2020-9-3 16:49:06 | 显示全部楼层
大佬!安装完成后import cinrad出错!这是啥问题啊?
File "d:/rada/0625/625.py", line 1, in <module>
    import cinrad
  File "D:\Anaconda3\lib\site-packages\cinrad\__init__.py", line 5, in <module>
    from . import visualize
  File "D:\Anaconda3\lib\site-packages\cinrad\visualize\__init__.py", line 7, in <module>
    from cinrad.visualize.ppi import *
  File "D:\Anaconda3\lib\site-packages\cinrad\visualize\ppi.py", line 15, in <module>
    from cinrad.visualize.utils import *
  File "D:\Anaconda3\lib\site-packages\cinrad\visualize\utils.py", line 152, in <module>
    class ShpReader(shapereader.BasicReader):
AttributeError: module 'cartopy.io.shapereader' has no attribute 'BasicReader'
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册 新浪微博登陆

本版积分规则

Copyright ©2011-2014 bbs.06climate.com All Rights Reserved.  Powered by Discuz! (京ICP-10201084)

本站信息均由会员发表,不代表气象家园立场,禁止在本站发表与国家法律相抵触言论

快速回复 返回顶部 返回列表