netcdf文件外推工具

ncgrow的Python项目详细描述


ncgrow

以增大/扩展遮罩字段,使其延伸到遮罩中。主要用于在重新划分后或用于可视化的情况下使用陆海掩模扩展海洋数据。脚本迭代计算权重和索引,然后应用它们

安装

ncgrow可以在下载此存储库后通过运行:

python3 setup.py install [--user]

通过运行:

pip3 install ncgrow

开发

包装

创建分发:

python3 setup.py sdist bdist_wheel

之后,可以将包上载到pypi。

用法

ncgrow脚本有以下用法。

usage: ncgrow [-h] [-v [..]] [-d [..]] [-m [..]] [--maskfile filename]
              [--smooth [..]] [--fill [..]] [-i [..]] [--niter_chunks [..]]
              [-c [..]] [-O] [-V] [--version]
              infile outfile

Grow/extend and/or fill masked fields.

positional arguments:
 infile                path to source file.
 outfile               filename of the output file.

optional arguments:
 -h, --help            show this help message and exit
 -v [..], --variables [..]
                       list of variables to extend, e.g. -v temp,elev.
 -d [..], --dims [..]  Dimension subset, e.g. -d level,1,10,2
 -m [..], --maskvar [..]
                       Variable name for land-sea mask that will be the
                       enforced.
 --maskfile filename   External file containing mask variable(s), i.e.
                       maskvar. Will be used before infile in case maskvar is
                       present in both.
 --smooth [..]         Smooth grown cells to avoid unphysical values. Can
                       also be specified per variable, e.g. --smooth
                       True,temp, --smooth False,ice. default is True.
 --fill [..]           Default value to apply to any cells that are not
                       missing_value or Fillvalue in maskvar. Will be ignored
                       if --maskvar is not set. Optionally one can select
                       'max' 'min', 'mean' of variable or None. Can also be
                       specified per variable, e.g. --fill mean, temp, --fill
                       0,ice.
 -i [..], --iterations [..]
                       Number of iterations to use, corresponds to one land
                       cell per iteration. optionally with variable name
                       appended, e.g. -i 2,temp,elev. Multiple defintions
                       possible for granulated control.
 --niter_chunks [..]   Maximum number of iterations to hold in memory. Will
                       reduce performance, but enable larger dataset and
                       number of iterations. Optionally with variable name
                       appended. Multiple defintions possible for granulated
                       control. Default is 5.
 -c [..], --converge [..]
                       Converge towards a given value 'V' with a factor f =
                       [0-1] (default = 1). If not set no convergence is
                       applied. e.g. -c 0,0.25,ice. Multiple defintions
                       possible for granulated control.
 -O, --overwrite       Overwrite output file if it exist (or append to input
                       file).
 -V, --verbose         Increase runtime information.
 --version             show program's version number and exit

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

推荐PyPI第三方库


热门话题
Java Selenium“findElement”找不到现有对象   java hibernate如何在JPA风格的引导过程中注册实体类   java为什么getX()方法首先执行而不是构造函数   Java写入int的第一个字节   java Word文档到html解析器,保留所有文本样式(下标、上标、项目符号等)   为每个java对象实例生成唯一字符串   Java类卡片枚举示例。修订过的   Android与Java内部类概念   在java中优化x小数位的答案   从队列的挂起消息列表中提取消息时出现java性能问题   java查找正则表达式的哪个部分导致了匹配   Java8函数“包装器”函数,在执行给定的lambda之前执行某些操作?   带有限定符@Default的ZZZZ类型的java未满足依赖项   如何在java中将XML文件转换为LaTex?   Android中的java封闭文本边界?   java如何更改此代码,使其更新当前用户而不是创建新用户?   java spring启动应用程序属性暂存和生产   Java:如何将字符串转换为int   java跟踪NullPointerException的最佳方法是什么?   java为什么我的JAR文件在与ProGuard混淆后不能运行?主类正在变得模糊/库