xarray输出驱动程序文件夹

mapchete-xarra的Python项目详细描述


此驱动程序使mapchete能够将多维数组写入tile目录结构。

https://badge.fury.io/py/mapchete_xarray.svghttps://travis-ci.org/ungarj/mapchete_xarray.svg?branch=masterhttps://coveralls.io/repos/github/ungarj/mapchete_xarray/badge.svg?branch=masterhttps://img.shields.io/pypi/pyversions/mapchete_xarray.svg

用法

示例.mapchete文件:

process:process.pyzoom_levels:min:0max:12input:output:format:xarraypath:/some/output/pathdtype:uint16bands:3pyramid:grid:geodeticmetatiling:2

流程文件示例:

fromdateutilimportparserimportnumpyasnpimportxarrayasxrdefexecute(mp,stack_height=10):# create 4D arrays with current tile shape and dtypearrs=[np.ones((3,)+mp.tile.shape,dtype="uint16")for_inrange(1,stack_height)]# create timestamps for each arraytimestamps=[parser.parse("2018-04-0%s"%i)foriinrange(1,stack_height)]# build xarray with time axistimeseries=xr.DataArray(np.stack(arrs),coords={'time':timestamps},dims=('time','bands','x','y'))# return to writereturntimeseries

安装

# install using pip:
pip install mapchete_xarray
# verify driver is vailable ('xarray' should be listed as output format):
mapchete formats

当前限制

  • 不允许重新投影
  • 当从现有输出读取时,进程的输出必须小于输出输出电压。
  • 仅写入当前实现的netcdf文件

许可证

麻省理工学院许可证

版权所有(c)2019EOX IT Services

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

推荐PyPI第三方库


热门话题
java如何使用数据库中的值填充p:selectOneMenu   Java/Junit中的异步单元测试一个非常简单但不成功的例子   在Debian上使用Java连接到MySQL   java测试时如何恢复表中的一条记录/行?   java如何将重点放在jbutton上而不是放在另一个jbutton上?   java我可以从HPROF文件中获取JVM标志吗?   java如何使用自定义比较器在2个集合上保留   java让stringTokenizer将一行文本拆分为预定义变量的最佳方法是什么   Kotlin Android/Java字符串日期时间格式,API21   exchange server EWS Java Api自动发现不工作   netbeans是Java新手,似乎无法修复错误;应为类、接口或枚举。274062   我正在尝试将一些scala代码转换为Java8,以创建新的Lambda和并行集合   流中的分配api(java)   用于串行通信的java Python字节数组