ShellRS
ShellRS 是一款免費、開源的 SSH 客戶端,使用 Rust 編寫:主機管理、終端機、WinSCP 風格的 SFTP 與埠轉發,全部於一個 GPU 渲染視窗中,支援 macOS、Windows 與 Linux。
AI 翻譯
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證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)