python画立体地球_EarthPy可以更容易地在Python中绘制和操作空间数据

68747470733a2f2f6a6f73732e7468656f6a2e6f72672f7061706572732f31302e32313130352f6a6f73732e30313838362f7374617475732e73766768747470733a2f2f74696e7975726c2e636f6d2f7932326e6238757068747470733a2f2f7472617669732d63692e6f72672f65617274686c61622f656172746870792e7376673f6272616e63683d6d617374657268747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f7867663567346d7338716867747032313f7376673d7472756568747470733a2f2f636f6465636f762e696f2f67682f65617274686c61622f656172746870792f6272616e63682f6d61737465722f67726170682f62616467652e73766768747470733a2f2f72656164746865646f63732e6f72672f70726f6a656374732f656172746870792f62616467652f3f76657273696f6e3d6c617465737468747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d626c61636b2d3030303030302e737667

EarthPy

68747470733a2f2f696d672e736869656c64732e696f2f707970692f762f656172746870792e7376673f636f6c6f723d707572706c65267374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f707970692f646d2f656172746870792e7376673f636f6c6f723d707572706c65266c6162656c3d70797069253230646f776e6c6f616473267374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f636f6e64612f762f636f6e64612d666f7267652f656172746870792e7376673f636f6c6f723d707572706c65267374796c653d706c617374696368747470733a2f2f696d672e736869656c64732e696f2f636f6e64612f646e2f636f6e64612d666f7267652f656172746870792e7376673f636f6c6f723d707572706c65266c6162656c3d636f6e64612d666f726765253230646f776e6c6f616473267374796c653d706c6173746963

EarthPy makes it easier to plot and manipulate spatial data in Python.

Why EarthPy?

Python is a generic programming language designed to support many different applications. Because of this, many commonly performed spatial tasks for science including plotting and working with spatial data take many steps of code. EarthPy builds upon the functionality developed for raster data (rasterio) and vector data (geopandas) in Python and simplifies the code needed to:

EarthPy also has an io module that allows users to

Quickly access pre-created data subsets used in the earth-analytics courses hosted on www.earthdatascience.org

Download other datasets that they may want to use in their workflows.

EarthPy's design was inspired by the raster and sp package functionality available to R users.

View Example EarthPy Applications in Our Documentation Gallery

Check out our vignette gallery for applied examples of using EarthPy in common spatial workflows.

Install

EarthPy can be installed using pip, but we strongly recommend that you install it using conda and the conda-forge channel.

Install Using Conda / conda-forge Channel (Preferred)

If you are working within an Anaconda environment, we suggest that you install EarthPy using conda-forge

$ conda install -c conda-forge earthpy

Note: if you want to set conda-forge as your default conda channel, you can use the following install workflow. We recommmend this approach. Once you have run conda config, you can install earthpy without specifying a channel.

$ conda config --add channels conda-forge

$ conda install earthpy

Install via Pip

We strongly suggest that you install EarthPy using conda-forge given pip can be more prone to spatial library dependency conflicts. However, you can install earthpy using pip.

To install EarthPy via pip use:

$ pip install --upgrade earthpy

Once you have successfully installed EarthPy, you can import it into Python.

>>> import earthpy.plot as ep

Below is a quick example of plotting multiple bands in a numpy array format.

>>> arr = np.random.randint(4, size=(3, 5, 5))

>>> ep.plot_bands(arr, titles=["Band 1", "Band 2", "Band 3"])

>>> plt.show()

Active Maintainers

We welcome contributions to EarthPy. Below are the current active package maintainers. Please see our contributors file for a complete list of all of our contributors.

7649194?size=1202664564?size=1204762214?size=1204017492?size=12038253680?size=120

Contributors

We've welcome any and all contributions. Below are some of the contributors to EarthPy. We are currently trying to update this list!!

33697?size=1201448859?size=1201839645?size=12042818395?size=120

How to Contribute

We welcome contributions to EarthPy! Please be sure to check out our contributing guidelines for more information about submitting pull requests or changes to EarthPy.

License & Citation

Citation Information

When citing EarthPy, please cite our JOSS paper:

@article{Wasser2019EarthPy,

journal = {Journal of Open Source Software},

doi = {10.21105/joss.01886},

issn = {2475-9066},

number = {43},

publisher = {The Open Journal},

title = {EarthPy: A Python package that makes it easier to explore and plot raster and vector data using open source Python tools.},

url = {https://doi.org/10.21105/joss.01886},

volume = {4},

author = {Wasser, Leah and Joseph, Maxwell and McGlinchy, Joe and Palomino, Jenny and Korinek, Nathan and Holdgraf, Chris and Head, Tim},

pages = {1886},

date = {2019-11-13},

year = {2019},

month = {11},

day = {13},

}

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值