爱气象,爱气象家园! 

气象家园

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博登陆

只需一步, 快速开始

搜索
楼主: eeeee

[源代码] PyCINRAD模块处理雷达基数据指南(发布1.7.0版本)(修复经纬度标注问题)

  [复制链接]

新浪微博达人勋

 楼主| 发表于 2019-8-24 16:52:59 | 显示全部楼层
发布1.4.2版本,具体更新内容看图
1.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-8-28 13:06:22 | 显示全部楼层
高手高手高手高手高手高手高手高手
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-8-29 11:20:55 | 显示全部楼层
抓狂啊,模块怎么都装不进去,python版本3.7.2 有谁指定一二

(base) C:\Users\Administrator>python E:\python\雷达基数据处理模块\CyanideCN-PyCI
NRAD-master\PyCINRAD\setup.py install
Traceback (most recent call last):
  File "E:\python\雷达基数据处理模块\CyanideCN-PyCINRAD-master\PyCINRAD\setup.py
", line 9, in <module>
    ext_modules = cythonize([join('cinrad', '_utils.pyx'), join('cinrad', 'corre
ct', '_unwrap_2d.pyx')])
  File "C:\Users\Administrator\Anaconda3\lib\site-packages\Cython\Build\Dependen
cies.py", line 967, in cythonize
    aliases=aliases)
  File "C:\Users\Administrator\Anaconda3\lib\site-packages\Cython\Build\Dependen
cies.py", line 812, in create_extension_list
    for file in nonempty(sorted(extended_iglob(filepattern)), "'%s' doesn't matc
h any files" % filepattern):
  File "C:\Users\Administrator\Anaconda3\lib\site-packages\Cython\Build\Dependen
cies.py", line 111, in nonempty
    raise ValueError(error_msg)
ValueError: 'cinrad\_utils.pyx' doesn't match any files

(base) C:\Users\Administrator>
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2019-8-29 12:29:43 | 显示全部楼层
zzc_cmos 发表于 2019-8-29 11:20
抓狂啊,模块怎么都装不进去,python版本3.7.2 有谁指定一二

(base) C:%users\Administrator>python E:\ ...

你用pip装吧,pip install cinrad
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-8-29 12:56:47 | 显示全部楼层
eeeee 发表于 2019-8-29 12:29
你用pip装吧,pip install cinrad

最开始就是用pip install cinrad来安装的,但不成功。
刚刚我把所有的支持包安装了一遍,然后用python setup.py install还是不成功,但用pip install cinrad成功了!???(是不是必须一定要先安装支持包)
总之谢谢楼主!
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-9-4 14:35:43 | 显示全部楼层
楼主你好,我安装成功后绘图出现以下错误,数据能读,但绘图出错,请问是什么原因
QQ截图20190904143313.png
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2019-9-4 15:24:23 | 显示全部楼层
不不106 发表于 2019-9-4 14:35
楼主你好,我安装成功后绘图出现以下错误,数据能读,但绘图出错,请问是什么原因

请发完整错误报告
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-9-4 16:06:52 | 显示全部楼层
eeeee 发表于 2019-9-4 15:24
请发完整错误报告

完整错误如下:

<Datatype: REF Station name: 杭州 Scan time: 2018-03-04 10:56:44.058000 Elevation angle: 0.53 Range: 230>
Traceback (most recent call last):

  File "<ipython-input-3-d26b4d8f405c>", line 1, in <module>
    runfile('C:/Users/SMH/.spyder-py3/ss/untitled0.py', wdir='C:/Users/SMH/.spyder-py3/ss')

  File "c:\programdata\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 705, in runfile
    execfile(filename, namespace)

  File "c:\programdata\anaconda3\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/SMH/.spyder-py3/ss/untitled0.py", line 19, in <module>
    fig("d:\\leida\\")

  File "C:\Users\SMH\AppData\Roaming\Python\Python36\site-packages\cinrad-1.4.2-py3.6-win32.egg\cinrad\visualize\ppi.py", line 90, in __call__
    return self._save(fpath)

  File "C:\Users\SMH\AppData\Roaming\Python\Python36\site-packages\cinrad-1.4.2-py3.6-win32.egg\cinrad\visualize\ppi.py", line 186, in _save
    save(path_string)

  File "C:\Users\SMH\AppData\Roaming\Python\Python36\site-packages\cinrad-1.4.2-py3.6-win32.egg\cinrad\visualize\utils.py", line 151, in save
    plt.savefig(fpath, bbox_inches='tight', pad_inches=0)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 716, in savefig
    res = fig.savefig(*args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\figure.py", line 2180, in savefig
    self.canvas.print_figure(fname, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 2056, in print_figure
    **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 527, in print_png
    FigureCanvasAgg.draw(self)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 388, in draw
    self.figure.draw(self.renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\figure.py", line 1709, in draw
    renderer, self, artists, self.suppressComposite)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\image.py", line 135, in _draw_list_compositing_images
    a.draw(renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\mpl\geoaxes.py", line 388, in draw
    inframe=inframe)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 2645, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\image.py", line 135, in _draw_list_compositing_images
    a.draw(renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\mpl\feature_artist.py", line 199, in draw
    geom, feature_crs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\crs.py", line 218, in project_geometry
    return getattr(self, method_name)(geometry, src_crs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\crs.py", line 327, in _project_multiline
    return sgeom.MultiLineString(geoms)

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\multilinestring.py", line 52, in __init__
    self._geom, self._ndim = geos_multilinestring_from_py(lines)

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\multilinestring.py", line 134, in geos_multilinestring_from_py
    geom, ndims = linestring.geos_linestring_from_py(obs[l])

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\linestring.py", line 208, in geos_linestring_from_py
    ob = list(ob)

TypeError: 'LineString' object is not iterable

Error in callback <function install_repl_displayhook.<locals>.post_execute at 0x08D10738> (for post_execute):
Traceback (most recent call last):

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 109, in post_execute
    draw_all()

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\_pylab_helpers.py", line 128, in draw_all
    f_mgr.canvas.draw_idle()

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\backend_bases.py", line 1907, in draw_idle
    self.draw(*args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\backends\backend_agg.py", line 388, in draw
    self.figure.draw(self.renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\figure.py", line 1709, in draw
    renderer, self, artists, self.suppressComposite)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\image.py", line 135, in _draw_list_compositing_images
    a.draw(renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\mpl\geoaxes.py", line 388, in draw
    inframe=inframe)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\axes\_base.py", line 2645, in draw
    mimage._draw_list_compositing_images(renderer, self, artists)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\image.py", line 135, in _draw_list_compositing_images
    a.draw(renderer)

  File "c:\programdata\anaconda3\lib\site-packages\matplotlib\artist.py", line 38, in draw_wrapper
    return draw(artist, renderer, *args, **kwargs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\mpl\feature_artist.py", line 199, in draw
    geom, feature_crs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\crs.py", line 218, in project_geometry
    return getattr(self, method_name)(geometry, src_crs)

  File "c:\programdata\anaconda3\lib\site-packages\cartopy\crs.py", line 327, in _project_multiline
    return sgeom.MultiLineString(geoms)

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\multilinestring.py", line 52, in __init__
    self._geom, self._ndim = geos_multilinestring_from_py(lines)

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\multilinestring.py", line 134, in geos_multilinestring_from_py
    geom, ndims = linestring.geos_linestring_from_py(obs[l])

  File "c:\programdata\anaconda3\lib\site-packages\shapely\geometry\linestring.py", line 208, in geos_linestring_from_py
    ob = list(ob)

TypeError: 'LineString' object is not iterable
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

 楼主| 发表于 2019-9-4 16:46:52 | 显示全部楼层

这个不是我的模块的问题,可能是有模块的冲突
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

新浪微博达人勋

发表于 2019-9-5 08:21:30 | 显示全部楼层
eeeee 发表于 2019-9-4 16:46
这个不是我的模块的问题,可能是有模块的冲突

好的,谢谢答复
密码修改失败请联系微信:mofangbao
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

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