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使用servlet的正确方法是什么?   java Android ListView选中所有复选框(自定义ResourceCursorAdapter)   java如何在一个活动中正确处理多个片段交互侦听器?   java jUnit和忽略继承的测试   具有多个权限的java ActivityResultLauncher   Java:我可以通过应用程序将客户端重定向到loadbalancer后面的同一个会话/节点吗?   java如何使用Hibernate保存具有一对一关系的两个类?   java JEditorPane字体大小设置不准确   java为什么JUnit4导入不被识别,即使JUnit4在我的有效pom中。xml?   多次使用流后的java空映射   JavaSwing中AccessibleContext的用途是什么?   java指定使用T的类   java查找twitter4j转发速率限制   枚举的Java数组(类)   java通过Maven build排除了一些类