用于读取Earlinet NetCDF格式的处理过的激光雷达数据的包。

earlinet-reader的Python项目详细描述


此软件包提供实用程序来处理Earlinet的NetCDF格式之一的处理过的激光雷达数据。目前 它支持来自earlinet的单微积分链预处理器的低时间分辨率文件和 气溶胶光学特性。

安装

您可以使用pip命令安装包:

pip install earlinet-reader

也可以直接从source code安装。您应该提取文件夹中的代码(例如earlinet-reader) 然后运行:

pip install ./earlinet-reader

ELPP文件的命令行界面

使用这个包的主要方法是通过名为plotELPP的命令行接口程序。

下面介绍plotELPP程序的用法:

usage: plotELPP [-h] [--vmin VMIN] [--vmax VMAX] [-v VARIABLE] [--log]
                [--normalize] [--normmin NORMMIN] [--normmax NORMMAX] [--grid]
                [--dpi DPI] [--errorevery ERROREVERY] [--html] [-d] [-s]
                file_patter [rmin] [rmax]

Command line tool to plot lidar pre-processed files from the SCC's ELPP.

positional arguments:
  file_patter           The path to a file (possibly including glob patterns).
  rmin                  Minimum range to plot (in km)
  rmax                  Maximum range to plot (in km)

optional arguments:
  -h, --help            show this help message and exit
  --vmin VMIN           Minimum variable value to plot
  --vmax VMAX           Maximum variable value to plot
  -v VARIABLE, --variable VARIABLE
                        Name of variable to plot
  --log                 Plot log10 values of variable.
  --normalize           Normalize variables on molecular signal
  --normmin NORMMIN     If nomralize is selected, the minimum altitude for
                        normalization (in km).
  --normmax NORMMAX     If nomralize is selected, the maximum altitude for
                        normalization (in km).
  --grid                Show grid on the plots
  --dpi DPI             DPI of the output image
  --errorevery ERROREVERY
                        Plot error bar only every x points.
  --html                Create an HTML report.
  -d, --debug           Print dubuging information.
  -s, --silent          Show only warning and error messages.

例如,假设要打印文件20170216oh00_584.nc的内容。

  • 您可以使用:

    plotELPP 20170216oh00_584.nc --variable elPR
    
  • >P>你可以指定图的最小值和最大值范围,例如从0到5公里:

    plotELPP 20170216oh00_584.nc 0 5 --variable elPR
    
  • 可以调整几个打印参数:打开网格并选择输出dpi:

    plotELPP 20170216oh00_584.nc --variable elPR --grid --dpi 200
    
  • 如果省略变量参数,则可以在单个绘图上显示netcdf文件中的所有变量:

    plotELPP 20170216oh00_584.nc
    
  • 通过选择--html选项,您可以查看有关该文件的更多信息:

    plotELPP 20170216oh00_584.nc --html
    
  • 您可以使用*?作为通配符同时对多个文件执行上述操作:

    plotELPP `20170216oh00_*.nc` --html
    

光学特性文件的命令行接口

可以使用commnadplotoptical绘制包含气溶胶光学特性的文件。用法相似 到plotELPP程序:

usage: plotoptical [-h] [-v VARIABLE] [--grid] [--dpi DPI]
                   [--errorevery ERROREVERY] [--html] [-d] [-s]
                   file_patter [zmin] [zmax]

Command line tool to plot lidar optical property files.

positional arguments:
  file_patter           The path to a file (possibly including glob patterns).
  zmin                  (optional) Minimum altitude asl to plot (in km)
  zmax                  (optional) Maximum altitude asl to plot (in km)

optional arguments:
  -h, --help            show this help message and exit
  -v VARIABLE, --variable VARIABLE
                        Name of variable to plot
  --grid                Show grid on the plots
  --dpi DPI             DPI of the output image
  --errorevery ERROREVERY
                        Plot error bar only every x points.
  --html                Create an HTML report.
  -d, --debug           Print dubuging information.
  -s, --silent          Show only warning and error messages.

报告错误

如果想要报告一个bug,请求一个新的特性,或者有一个改进的想法,可以自由地通过 这是bug tracking system

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
java Cassandra复制因子大于节点数   java J2EE JTA事务回滚不适用于OSE Glassfish 4.0(Build 89)   java spring安全预认证用户登录   org的java类文件。反应流。从RxJava编译示例时未找到Publisher?   java在使用dataFormat作为POJO通过Camel调用Web服务时无法设置SOAP标头   Javafx类的java静态实例   java如何防止一个部件在关闭时覆盖另一个部件的位置   sql server无法从我的java代码连接到数据库   java在JList(Swing)中显示带有的ArrayList   从Java中的CXF服务获取WSAddressing数据   使用资产文件夹进行java简单json解析(本地)   java LDAPException未绑定的无效凭据   JavaJSFspring部署到weblogic   JAVA中字符数组中的特定元素排列?   如果脚本位于不同的目录中,则ant不会使用exec标记运行Javashell脚本