Opened 2 months ago

Last modified 2 months ago

#2378 new enhancement

rasterio plug-ins

Reported by: darkblueb Owned by: osgeolive@…
Priority: normal Milestone: OSGeoLive15.0
Component: OSGeoLive Keywords: python, rasterio
Cc:

Description (last modified by darkblueb)

ol15 build122

rasterio packaged can make use of optional plug-ins. Popular and useful titles:

[ rio-cogeo, rio-tiler, rio-toa, rio-mucho ].

sample install session

$ pip install --user rio-cogeo
Collecting rio-cogeo
  Downloading rio_cogeo-3.3.0-py3-none-any.whl (19 kB)
Requirement already satisfied: numpy~=1.15 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.21.5)
Requirement already satisfied: rasterio>=1.1 in /usr/lib/python3/dist-packages (from rio-cogeo) (1.2.10)
Requirement already satisfied: click>=7.0 in /usr/lib/python3/dist-packages (from rio-cogeo) (8.0.3)
Collecting morecantile<4.0,>=3.1
  Downloading morecantile-3.1.2.tar.gz (25 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: pydantic in /usr/lib/python3/dist-packages (from rio-cogeo) (1.8.2)
Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-cogeo) (21.2.0)
Requirement already satisfied: pyproj~=3.1 in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-cogeo) (3.3.0)
Building wheels for collected packages: morecantile
  Building wheel for morecantile (setup.py) ... done
  Created wheel for morecantile: filename=morecantile-3.1.2-py3-none-any.whl size=32098 sha256=bb3518e0d6aaca9e38798fed8086a55e5ca289d5ca784497e7e1eb0eab2cb1ab
  Stored in directory: /home/dbb/.cache/pip/wheels/ee/4b/41/c76314563c37757c283d8f401f733f67bc13f9bd579a7a32be
Successfully built morecantile
Installing collected packages: morecantile, rio-cogeo

Successfully installed morecantile-3.1.2 rio-cogeo-3.3.0

$ pip install --user rio-mucho
Collecting rio-mucho
  Downloading rio_mucho-1.0.0-py3-none-any.whl (5.8 kB)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-mucho) (1.21.5)
Requirement already satisfied: rasterio~=1.0 in /usr/lib/python3/dist-packages (from rio-mucho) (1.2.10)
Installing collected packages: rio-mucho
Successfully installed rio-mucho-1.0.0
dbb@ol15nightly:/home/shared/srcs_ol15$ pip install --user rio-tiler
Collecting rio-tiler
  Downloading rio_tiler-3.1.5-py3-none-any.whl (198 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 198.7/198.7 KB 371.2 kB/s eta 0:00:00
Requirement already satisfied: pydantic in /usr/lib/python3/dist-packages (from rio-tiler) (1.8.2)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-tiler) (1.21.5)
Collecting rio-color
  Downloading rio-color-1.0.4.tar.gz (74 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 74.9/74.9 KB 382.6 kB/s eta 0:00:00
  Installing build dependencies ... |
done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting pystac>=0.5.4
  Downloading pystac-1.4.0-py3-none-any.whl (137 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 137.4/137.4 KB 351.1 kB/s eta 0:00:00
Requirement already satisfied: rasterio>=1.1.7 in /usr/lib/python3/dist-packages (from rio-tiler) (1.2.10)
Collecting numexpr
  Downloading numexpr-2.8.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (381 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 381.3/381.3 KB 386.6 kB/s eta 0:00:00
Collecting httpx
  Downloading httpx-0.23.0-py3-none-any.whl (84 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 84.8/84.8 KB 379.3 kB/s eta 0:00:00
Collecting boto3
  Downloading boto3-1.24.31-py3-none-any.whl (132 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 132.5/132.5 KB 393.6 kB/s eta 0:00:00
Requirement already satisfied: cachetools in /usr/lib/python3/dist-packages (from rio-tiler) (5.0.0)
Requirement already satisfied: morecantile<4.0,>=3.1 in /home/dbb/.local/lib/python3.10/site-packages (from rio-tiler) (3.1.2)
Requirement already satisfied: attrs in /usr/lib/python3/dist-packages (from rio-tiler) (21.2.0)
Requirement already satisfied: pyproj~=3.1 in /usr/lib/python3/dist-packages (from morecantile<4.0,>=3.1->rio-tiler) (3.3.0)
Requirement already satisfied: python-dateutil>=2.7.0 in /usr/lib/python3/dist-packages (from pystac>=0.5.4->rio-tiler) (2.8.1)
Requirement already satisfied: jmespath<2.0.0,>=0.7.1 in /usr/lib/python3/dist-packages (from boto3->rio-tiler) (0.10.0)
Collecting botocore<1.28.0,>=1.27.31
  Downloading botocore-1.27.31-py3-none-any.whl (9.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 9.0/9.0 MB 390.0 kB/s eta 0:00:00
Collecting s3transfer<0.7.0,>=0.6.0
  Downloading s3transfer-0.6.0-py3-none-any.whl (79 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 79.6/79.6 KB 367.2 kB/s eta 0:00:00
Collecting sniffio
  Downloading sniffio-1.2.0-py3-none-any.whl (10 kB)
Collecting rfc3986[idna2008]<2,>=1.3
  Downloading rfc3986-1.5.0-py2.py3-none-any.whl (31 kB)
Requirement already satisfied: certifi in /usr/lib/python3/dist-packages (from httpx->rio-tiler) (2020.6.20)
Collecting httpcore<0.16.0,>=0.15.0
  Downloading httpcore-0.15.0-py3-none-any.whl (68 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 68.4/68.4 KB 274.7 kB/s eta 0:00:00
Requirement already satisfied: packaging in /usr/lib/python3/dist-packages (from numexpr->rio-tiler) (21.3)
Requirement already satisfied: click>=4.0 in /usr/lib/python3/dist-packages (from rio-color->rio-tiler) (8.0.3)
Requirement already satisfied: rio-mucho in /home/dbb/.local/lib/python3.10/site-packages (from rio-color->rio-tiler) (1.0.0)
Requirement already satisfied: urllib3<1.27,>=1.25.4 in /usr/lib/python3/dist-packages (from botocore<1.28.0,>=1.27.31->boto3->rio-tiler) (1.26.5)
Collecting anyio==3.*
  Downloading anyio-3.6.1-py3-none-any.whl (80 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 80.6/80.6 KB 249.0 kB/s eta 0:00:00
Collecting h11<0.13,>=0.11
  Downloading h11-0.12.0-py3-none-any.whl (54 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.9/54.9 KB 350.1 kB/s eta 0:00:00
Requirement already satisfied: idna>=2.8 in /usr/lib/python3/dist-packages (from anyio==3.*->httpcore<0.16.0,>=0.15.0->httpx->rio-tiler) (3.3)
Building wheels for collected packages: rio-color
  Building wheel for rio-color (pyproject.toml) ... done
  Created wheel for rio-color: filename=rio_color-1.0.4-cp310-cp310-linux_x86_64.whl size=177722 sha256=c1d38726d15d20b44e702df3ce1580874ddfcdeccb51afa8af5f8a9959914aca
  Stored in directory: /home/dbb/.cache/pip/wheels/7b/5a/2d/90316693df333308e07aacf49c954fd7a2dc35e1034f7c6974
Successfully built rio-color
Installing collected packages: rfc3986, sniffio, pystac, numexpr, h11, botocore, s3transfer, rio-color, anyio, httpcore, boto3, httpx, rio-tiler


Successfully installed anyio-3.6.1 boto3-1.24.31 botocore-1.27.31 h11-0.12.0 httpcore-0.15.0 httpx-0.23.0 numexpr-2.8.3 pystac-1.4.0 rfc3986-1.5.0 rio-color-1.0.4 rio-tiler-3.1.5 s3transfer-0.6.0 sniffio-1.2.0

$ pip install --user rio-toa
Collecting rio-toa
  Downloading rio-toa-0.3.0.tar.gz (9.0 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: click in /usr/lib/python3/dist-packages (from rio-toa) (8.0.3)
Requirement already satisfied: rasterio in /usr/lib/python3/dist-packages (from rio-toa) (1.2.10)
Requirement already satisfied: rio-mucho in /home/dbb/.local/lib/python3.10/site-packages (from rio-toa) (1.0.0)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from rio-mucho->rio-toa) (1.21.5)
Building wheels for collected packages: rio-toa
  Building wheel for rio-toa (setup.py) ... done
  Created wheel for rio-toa: filename=rio_toa-0.3.0-py3-none-any.whl size=12424 sha256=411229f595450dcd4c9bd67d57b478c27f5034ee3d3a995eddbc75476de4191f
  Stored in directory: /home/dbb/.cache/pip/wheels/8a/5a/cd/c23390b0be04c4443ea0f74d082e4cc6e3851f0c5c9e2df43b
Successfully built rio-toa
Installing collected packages: rio-toa
Successfully installed rio-toa-0.3.0

Change history (3)

comment:1 by darkblueb, 2 months ago

Description: modified (diff)

comment:2 by darkblueb, 2 months ago

Description: modified (diff)

comment:3 by darkblueb, 2 months ago

metpy utils

$ pip install --user metpy
Collecting metpy
  Downloading MetPy-1.3.1-py3-none-any.whl (368 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 368.9/368.9 KB 379.8 kB/s eta 0:00:00
Requirement already satisfied: pandas>=1.0.0 in /usr/lib/python3/dist-packages (from metpy) (1.3.5)
Requirement already satisfied: xarray>=0.14.1 in /home/dbb/.local/lib/python3.10/site-packages (from metpy) (2022.3.0)
Requirement already satisfied: pyproj>=2.5.0 in /usr/lib/python3/dist-packages (from metpy) (3.3.0)
Requirement already satisfied: scipy>=1.4.0 in /usr/lib/python3/dist-packages (from metpy) (1.8.0)
Collecting pooch>=1.2.0
  Downloading pooch-1.6.0-py3-none-any.whl (56 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 56.3/56.3 KB 391.1 kB/s eta 0:00:00
Requirement already satisfied: traitlets>=4.3.0 in /usr/lib/python3/dist-packages (from metpy) (5.1.1)
Requirement already satisfied: matplotlib>=3.3.0 in /usr/lib/python3/dist-packages (from metpy) (3.5.1)
Collecting pint>=0.10.1
  Downloading Pint-0.19.2.tar.gz (292 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 292.0/292.0 KB 387.6 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.18.0 in /usr/lib/python3/dist-packages (from metpy) (1.21.5)
Requirement already satisfied: appdirs>=1.3.0 in /usr/lib/python3/dist-packages (from pooch>=1.2.0->metpy) (1.4.4)
Requirement already satisfied: requests>=2.19.0 in /usr/lib/python3/dist-packages (from pooch>=1.2.0->metpy) (2.25.1)
Requirement already satisfied: packaging>=20.0 in /usr/lib/python3/dist-packages (from pooch>=1.2.0->metpy) (21.3)
Building wheels for collected packages: pint
  Building wheel for pint (pyproject.toml) ... done
  Created wheel for pint: filename=Pint-0.19.2-py3-none-any.whl size=231021 sha256=7bdcebb32c2814744d9e4908b82698d947200fc365f3f0342646f5862cc92a7b
  Stored in directory: /home/dbb/.cache/pip/wheels/eb/00/87/c216aa83b91597845d9fec6fcd9dbe31c945a25d968dd4765a
Successfully built pint
Installing collected packages: pooch, pint, metpy
Successfully installed metpy-1.3.1 pint-0.19.2 pooch-1.6.0

s$ tree metpy/
metpy/
├── calc
│   ├── basic.py
│   ├── cross_sections.py
│   ├── exceptions.py
│   ├── indices.py
│   ├── __init__.py
│   ├── kinematics.py
│   ├── __pycache__
│   │   ├── basic.cpython-310.pyc
│   │   ├── cross_sections.cpython-310.pyc
│   │   ├── exceptions.cpython-310.pyc
│   │   ├── indices.cpython-310.pyc
│   │   ├── __init__.cpython-310.pyc
│   │   ├── kinematics.cpython-310.pyc
│   │   ├── thermo.cpython-310.pyc
│   │   ├── tools.cpython-310.pyc
│   │   └── turbulence.cpython-310.pyc
│   ├── thermo.py
│   ├── tools.py
│   └── turbulence.py
├── cbook.py
├── constants
│   ├── default.py
│   ├── __init__.py
│   ├── nounit.py
│   └── __pycache__
│       ├── default.cpython-310.pyc
│       ├── __init__.cpython-310.pyc
│       └── nounit.cpython-310.pyc
├── deprecation.py
├── future.py
├── __init__.py
├── interpolate
│   ├── geometry.py
│   ├── grid.py
│   ├── __init__.py
│   ├── one_dimension.py
│   ├── points.py
│   ├── __pycache__
│   │   ├── geometry.cpython-310.pyc
│   │   ├── grid.cpython-310.pyc
│   │   ├── __init__.cpython-310.pyc
│   │   ├── one_dimension.cpython-310.pyc
│   │   ├── points.cpython-310.pyc
│   │   ├── slices.cpython-310.pyc
│   │   └── tools.cpython-310.pyc
│   ├── slices.py
│   └── tools.py
├── io
│   ├── gempak.py
│   ├── gini.py
│   ├── __init__.py
│   ├── _metar_parser
│   │   ├── Makefile
│   │   ├── metar_parser.peg
│   │   ├── metar_parser.py
│   │   └── __pycache__
│   │       └── metar_parser.cpython-310.pyc
│   ├── metar.py
│   ├── _nexrad_msgs
│   │   ├── __init__.py
│   │   ├── msg18.py
│   │   ├── msg3.py
│   │   └── __pycache__
│   │       ├── __init__.cpython-310.pyc
│   │       ├── msg18.cpython-310.pyc
│   │       └── msg3.cpython-310.pyc
│   ├── nexrad.py
│   ├── __pycache__
│   │   ├── gempak.cpython-310.pyc
│   │   ├── gini.cpython-310.pyc
│   │   ├── __init__.cpython-310.pyc
│   │   ├── metar.cpython-310.pyc
│   │   ├── nexrad.cpython-310.pyc
│   │   ├── station_data.cpython-310.pyc
│   │   └── _tools.cpython-310.pyc
│   ├── station_data.py
│   └── _tools.py
├── package_tools.py
├── pandas.py
├── plots
│   ├── cartopy_utils.py
│   ├── colortable_files
│   │   ├── Carbone42.tbl
│   │   ├── ir_bd.tbl
│   │   ├── ir_drgb.tbl
│   │   ├── ir_rgbv.tbl
│   │   ├── ir_tpc.tbl
│   │   ├── ir_tv1.tbl
│   │   ├── NWS8bitVel.tbl
│   │   ├── NWSReflectivityExpanded.tbl
│   │   ├── NWSReflectivity.tbl
│   │   ├── NWSSpectrumWidth.tbl
│   │   ├── NWSStormClearReflectivity.tbl
│   │   ├── NWSVelocity.tbl
│   │   ├── precipitation.tbl
│   │   ├── rainbow.tbl
│   │   ├── WVCIMSS.tbl
│   │   └── wv_tpc.tbl
│   ├── ctables.py
│   ├── declarative.py
│   ├── fonts
│   │   ├── wx_symbols_license.md
│   │   └── wx_symbols.ttf
│   ├── __init__.py
│   ├── mapping.py
│   ├── _mpl.py
│   ├── nexrad_tables
│   │   ├── cc_table.tbl
│   │   ├── et_table.tbl
│   │   ├── hmc_table.tbl
│   │   ├── kdp_table.tbl
│   │   ├── lcr_tabl.tbl
│   │   ├── ml_table.tbl
│   │   ├── osw_table.tbl
│   │   ├── precip_table.tbl
│   │   ├── ref_table8.tbl
│   │   ├── ref_table.tbl
│   │   ├── spw_table.tbl
│   │   ├── srm_table.tbl
│   │   ├── ulr_table.tbl
│   │   ├── vad_table.tbl
│   │   ├── vel_table8.tbl
│   │   ├── vel_table.tbl
│   │   ├── vil_table.tbl
│   │   ├── vwp_table.tbl
│   │   └── zdr_table.tbl
│   ├── __pycache__
│   │   ├── cartopy_utils.cpython-310.pyc
│   │   ├── ctables.cpython-310.pyc
│   │   ├── declarative.cpython-310.pyc
│   │   ├── __init__.cpython-310.pyc
│   │   ├── mapping.cpython-310.pyc
│   │   ├── _mpl.cpython-310.pyc
│   │   ├── skewt.cpython-310.pyc
│   │   ├── station_plot.cpython-310.pyc
│   │   ├── _util.cpython-310.pyc
│   │   └── wx_symbols.cpython-310.pyc
│   ├── skewt.py
│   ├── _static
│   │   ├── metpy_150x150.png
│   │   ├── metpy_75x75.png
│   │   ├── unidata_150x150.png
│   │   └── unidata_75x75.png
│   ├── station_plot.py
│   ├── _util.py
│   └── wx_symbols.py
├── __pycache__
│   ├── cbook.cpython-310.pyc
│   ├── deprecation.cpython-310.pyc
│   ├── future.cpython-310.pyc
│   ├── __init__.cpython-310.pyc
│   ├── package_tools.cpython-310.pyc
│   ├── pandas.cpython-310.pyc
│   ├── testing.cpython-310.pyc
│   ├── units.cpython-310.pyc
│   ├── _version.cpython-310.pyc
│   └── xarray.cpython-310.pyc
├── static-data-manifest.txt
├── testing.py
├── units.py
├── _vendor
│   ├── __init__.py
│   ├── __pycache__
│   │   ├── __init__.cpython-310.pyc
│   │   └── xarray.cpython-310.pyc
│   └── xarray.py
├── _version.py
└── xarray.py

Note: See TracTickets for help on using tickets.