ShellRS
ShellRS는 Rust로 작성된 무료 오픈소스 SSH 클라이언트
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Fast, async GeoTIFF and COG reader for Python
README 전체를 불러오는 중입니다.
README 전문 보기 ↗Fast, async GeoTIFF and Cloud-Optimized GeoTIFF (COG) reader for Python, wrapping the Rust-based Async-TIFF library.
Documentation website. Introduction blog post
Features explicitly not in scope:
Resampling and warping bring significant additional complexity and are out of scope for this library. Consider using Async-GeoTIFF to load data, then Rasterio's In-Memory Files to resample or reproject data, if needed.
First create a "store", such as an S3Store, GCSStore, AzureStore, or LocalStore for reading data from AWS S3, Google Cloud, Azure Storage, or local files. Refer to obstore documentation for more information.
from obstore.store import S3Store
store = S3Store("sentinel-cogs", region="us-west-2", skip_signature=True)
path = "sentinel-s2-l2a-cogs/12/S/UF/2022/6/S2B_12SUF_20220609_0_L2A/TCI.tif"
Then open a GeoTIFF:
from async_geotiff import GeoTIFF
geotiff = await GeoTIFF.open(path, store=store)
On the GeoTIFF instance you have metadata about the image, such as its affine transform and Coordinate Reference System:
geotiff.transform
# Affine(10.0, 0.0, 300000.0,
# 0.0, -10.0, 4100040.0)
geotiff.crs
# <Projected CRS: EPSG:32612>
# Name: WGS 84 / UTM zone 12N
For a COG, you can access the overviews, or reduced resolution versions, of the image:
# Overviews are ordered from finest to coarsest resolution
# In this case, access the second-coarsest resolution version of the image
overview = geotiff.overviews[-2]
Then we can read data from the image. This loads a 512-pixel square from the upper-left corner of the selected overview.
from async_geotiff import Window
window = Window(col_off=0, row_off=0, width=512, height=512)
array = await overview.read(window=window)
This RasterArray instance has data, mask, and some other metadata about the fetched array data.
Plot, using rasterio.plot.show (requires matplotlib):
import rasterio.plot
rasterio.plot.show(array.data)