bird feeder使用birdhouse模式将thredds元数据目录发布到solr索引服务。
bird-feeder的Python项目详细描述
- 喂鸟器(鸟)
- 喂鸟…
bird feeder正在使用NetCDF文件解析thredds目录和本地目录,并将带有下载url的元数据发布到带有birdhouse模式的solr索引服务。
从Anaconda安装
$ 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
变更历史
0.1.2(2015-09-18)
- 修正了3:将相对路径转换为abs路径以从目录馈送。
0.1.1(2015-07-28)
- 初次发布。