<p align="center">
<strong>Python SDK for UP42, the geospatial marketplace and developer platform.</strong>
</p>
![](docs/assets/github-banner-3.jpg)
<p align="center">
<a href="https://mybinder.org/v2/gh/up42/up42-py/master?filepath=examples%2Fguides" title="Binder"><img src="https://mybinder.org/badge_logo.svg"></a>
<a href="https://pypi.org/project/up42-py/" title="up42-py on pypi"><img src="https://img.shields.io/pypi/v/up42-py?color=brightgreen"></a>
<img src="./coverage.svg">
<a href="https://twitter.com/UP42_" title="UP42 on Twitter"><img src="https://img.shields.io/twitter/follow/UP42_.svg?style=social"></a>
</p>
<p align="center">
<b>
<a href="https://sdk.up42.com/">Documentation</a> •
<a href="http://www.up42.com">UP42.com</a> •
<a href="#support">Support</a>
</b>
</p>
## Highlights
- Python package for easy access to **[UP42's](http://www.up42.com)** **geospatial datasets** & **processing workflows**
- Use UP42 functionality together with your preferred Python libraries!
- For geospatial **analysis** & **product builders**!
- Interactive maps & **visualizations**, ideal with Jupyter notebooks
<img align="right" href="https://sdk.up42.com/" src="docs/assets/docs.png" alt="" height="200"/>
## Installation & Documentation
See the **[documentation](https://sdk.up42.com/)** for **getting started guides**, **examples** and the **code reference**.
The package requires Python > 3.6.
```bash
pip install up42-py
```
<br>
## 30-second Example
The UP42 Python package uses nine classes, representing the **hierarchical structure** of UP42: **Project > Workflow > Job > JobTask** | **JobCollection** | **Catalog > Order** | **Storage > Asset**.
![](docs/assets/vizualisations.jpg)
In this example a **new workflow** consisting of [**Sentinel-2 data**](https://marketplace.up42.com/block/018dfb34-fc19-4334-8125-14fd7535f979)
and [**Sharpening Filter**](https://marketplace.up42.com/block/e374ea64-dc3b-4500-bb4b-974260fb203e) is created.
The area of interest and workflow parameters are defined. After **running the job**,
the results are **downloaded** and visualized.
Try this example without installation! [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/up42/up42-py/master?filepath=examples%2Fguides%2F30-seconds-example.ipynb)
```python
import up42
up42.authenticate(project_id="12345", project_api_key="67890")
project = up42.initialize_project()
# Construct workflow
workflow = project.create_workflow(name="30-seconds-workflow", use_existing=True)
#print(up42.get_blocks(basic=True))
input_tasks = ["Sentinel-2 L2A Visual (GeoTIFF)",
"Sharpening Filter"]
workflow.add_workflow_tasks(input_tasks)
# Define the aoi and input parameters of the workflow to run it.
aoi = up42.get_example_aoi(as_dataframe=True)
# Or use up42.draw_aoi(), up42.read_vector_file(), FeatureCollection, GeoDataFrame etc.
input_parameters = workflow.construct_parameters(geometry=aoi,
geometry_operation="bbox",
start_date="2018-01-01",
end_date="2020-12-31",
limit=1)
input_parameters["esa-s2-l2a-gtiff-visual:1"].update({"max_cloud_cover":5})
# Price estimation
workflow.estimate_job(input_parameters)
# Run a test job to query data availability and check the configuration.
test_job = workflow.test_job(input_parameters, track_status=True)
# Run the actual job.
job = workflow.run_job(input_parameters, track_status=True)
job.download_results()
job.plot_results(figsize=(6,6))
```
## Support
For any kind of issues or suggestions please see the [**documentation**](https://sdk.up42.com/), open a **[github issue](https://github.com/up42/up42-py/issues)** or contact us via Email **[support@up42.com](mailto:support@up42.com)**
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共25个文件
py:16个
txt:4个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:dummy-0532-0.1.0.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
dummy-0532-0.1.0.tar.gz (25个子文件)
dummy-0532-0.1.0
PKG-INFO 5KB
setup.cfg 38B
setup.py 1KB
dummy_0532.egg-info
PKG-INFO 5KB
requires.txt 109B
not-zip-safe 1B
SOURCES.txt 457B
top_level.txt 5B
dependency_links.txt 1B
README.md 4KB
up42
catalog.py 14KB
auth.py 11KB
tools.py 9KB
storage.py 6KB
jobcollection.py 6KB
jobtask.py 6KB
job.py 12KB
utils.py 13KB
project.py 8KB
order.py 7KB
estimation.py 2KB
__init__.py 7KB
workflow.py 33KB
viztools.py 19KB
asset.py 4KB
共 25 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功