对thredds目录进行爬网的jupyter笔记本服务器扩展

jupyterlab-thredds的Python项目详细描述


#朱庇特实验室

[![生成状态](https://travis-ci.org/eWaterCycle/jupyterlab_thredds.svg?branch=master)](https://travis-ci.org/eWaterCycle/jupyterlab_thredds) [![声纳云质量](https://sonarcloud.io/api/project_badges/measure?project=jupyterlab_thredds&metric=alert_status)](https://sonarcloud.io/dashboard?id=jupyterlab_thredds) [![声纳云覆盖](https://sonarcloud.io/api/project_badges/measure?project=jupyterlab_thredds&metric=coverage)](https://sonarcloud.io/component_measures?id=jupyterlab_thredds&metric=覆盖范围) [![doi](https://zenodo.org/badge/DOI/10.5281/zenodo.1241006.svg)](https://doi.org/10.5281/zenodo.1241006

[thredds catalog](https://www.unidata.ucar.edu/software/thredds/v4.6/tds/catalog/index.html)的jupyterlab数据集浏览器

可以将[iris](http://scitools.org.uk/iris/docs/latest/index.html)/[xarray](https://xarray.pydata.org)/[leaflet](https://github.com/jupyter-widgets/ipyleaflet)代码单元注入选定数据集的python笔记本,以进一步处理/可视化该数据集。

啊![截图](https://github.com/eWaterCycle/jupyterlab_thredds/blob/master/jupyterlab_thredds.gif“截图”)

##先决条件

  • jupyterlab,pip安装jupyterlab
  • ipywidgets,jupyter labextension install@jupyter widgets/jupyterlab manager,对ipyleaflet的要求
  • ipyleaflet,jupyter labextension安装jupyter单张,以加载wms层
  • [iris](http://scitools.org.uk/iris/docs/latest/index.html),conda install-c conda forge iris

##安装

`bash pip install jupyterlab_thredds jupyter labextension install @ewatercycle/jupyterlab_thredds `

##用法

  1. 用jupyter lab启动jupyter lab
  2. 在Jupyter实验室打开笔记本
  3. 打开左侧的thredds选项卡。
  4. 填写目录URL
  5. 按搜索按钮
  6. 选择打开数据集的方式,默认情况下它使用[iris](http://scitools.org.uk/iris/docs/latest/index.html)python包。
  7. 按数据集将代码插入笔记本

##开发

对于开发安装(需要[yarn](https://yarnpkg.com/)),请在存储库目录中执行以下操作:

`bash yarn install yarn build jupyter labextension link . python setup.py develop jupyter serverextension enable --sys-prefix jupyterlab_thredds `

要重建包和jupyterlab应用程序:

`bash yarn build jupyter lab build `

监视模式 `bash # shell 1 yarm watch # shell 2 jupyter lab --ip=0.0.0.0--no-browser--watch `

##释放

要制作新版本,请执行以下步骤: 一。更新package.jsoncitation.cffjupyterlab_thredds/version.py中的版本 2.确保测试通过运行纱线测试pytest 三。将实验室扩展发布到npmjs,其中yarn buildyarn publish–access=public 四。使用python setup.py sdist bdist_wheeltwine upload dist/*将服务器扩展发布到pypi 5个。创建github版本 6.在readme.mdcitation.cff

中更新doi

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

推荐PyPI第三方库


热门话题
java解析一个文本文件,如果内容是一种特定的格式,就打印它   java如何使jbutton在另一个组件中执行键盘笔划   连接到独立帐户的java Stripe   java在数据库连接过程中出错。。。初始连接   一个系列JavaFX中特定节点的java集样式   java重建recycler视图会导致它消失   在codechef上提交java Getting runtime(NZEC)时出错   Java类路径设置错误   java如何显示数组中2个数字之间的信息?   java为什么新的GC只有很长的用户时间?   如何解决java。关于此代码的lang.OutOfMemoryError   通过应用程序在Facebook粉丝页面上发布java帖子   java Red5服务器无法启动   系统输出Java读取文本文件外置行   java整数。Parse对excel获取的字符串抛出NumberFormatException   有一个Java数组列表;如何按每个数组的最后一个元素排序?   java需要txt文件中的数据(以逗号分隔)来用现有类中的对象填充arraylist