用于读取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
可以调整几个打印参数:打开网格并选择输出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
plotELPP 20170216oh00_584.nc 0 5 --variable elPR
光学特性文件的命令行接口
可以使用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。