跳转到主要内容

鸟类喂食器将Thredds元数据目录发布到使用birdhouse模式的Solr索引服务。

项目描述

Travis Build
鸟类喂食器(小鸟)

喂养鸟类……

鸟类喂食器解析Thredds目录和本地目录中的NetCDF文件,并使用birdhouse模式将元数据和下载URL发布到Solr索引服务。

从Anaconda安装

Anaconda Build Anaconda Version Anaconda Downloads
$ conda install -c birdhouse bird-feeder

从GitHub安装

$ git clone https://github.com/bird-house/bird-feeder.git
$ cd bird-feeder
$ make install

http://localhost:8983/solr/birdhouse上启动Solr服务

$ make start
$ make status

使用命令行

帮助

$ birdfeeder -h
usage: birdfeeder [<options>] <command> [<args>]

Feeds Solr with Datasets (NetCDF Format) from Thredds Catalogs and File
System.

optional arguments:
  -h, --help            show this help message and exit
  --debug               enable debug mode
  --service SERVICE     Solr URL. Default:
                        http://localhost:8983/solr/birdhouse
  --maxrecords MAXRECORDS
                        Maximum number of records to publish. Default: -1
                        (unlimited)
  --batch-size BATCH_SIZE
                        Batch size of records to publish. Default: 50000

command:
  List of available commands

  {clear,from-thredds,from-directory}
                     Run "birdfeeder <command> -h" to get additional help.
    clear               Clears the complete solr index. Use with caution!
    from-thredds        Publish datasets from Thredds Catalog to Solr.
    from-directory      Publish NetCDF files from directory to Solr.

解析Thredds目录(递归到2级深度)

$ birdfeeder from-thredds --catalog-url http://example.com/thredds/catalog.xml --depth=2

解析本地NetCDF文件

$ birdfeeder from-directory --start-dir /home/data/myarchive

作者

Carsten Ehbrecht ehbrecht at dkrz.de

变更历史

0.1.2 (2015-09-18)

  • 修复 #3:将相对路径转换为绝对路径以从目录中喂养。

0.1.1 (2015-07-28)

  • 初始发布。

项目详情


下载文件

下载适合您平台文件的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

bird-feeder-0.1.2.tar.gz (6.0 kB 查看哈希值)

上传时间:

由以下支持