获取托管在 STAC 的土地覆盖栅格,分类并汇总用户提供的 AOI 多边形内随时间的变化,并生成标准化的地图、图表和表格用于报告。通用 STAC 流水线 w
AI 翻译
Fetch STAC-hosted land cover rasters, classify and summarize change over time within user-provided AOI polygons, and produce standardized maps, plots, and tables for reporting. Generic STAC pipeline w
数据R · ShellGitHub @NewGraphEnvironment在线运营者未确认
试用过了吗? 点一下就好,无需登录。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证R package for change analysis - Detecting Riparian and Inland Floodplain Transitions
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
Track land cover change in riparian and floodplain areas using free satellite imagery.
drift fetches classified rasters from STAC catalogs (Esri IO LULC, ESA WorldCover, or your own COGs), applies class labels and colors, and summarizes area change over time — ready for reports, maps, and plots.
Monitoring riparian vegetation loss matters for fish habitat, water quality, and restoration planning. Satellite land cover products are free and global, but wrangling multi-year STAC data into usable summaries takes boilerplate. drift handles the pipeline so you can focus on the analysis.查看完整 README ↗Detecting riparian and inland floodplain transitions: track land cover change within floodplains over time.
drift is an R package that fetches free global land-cover maps, or your own classified rasters, for any area, such as a floodplain, compares them between two dates and across every year of a series, and turns the change into maps, tables and change polygons. It also fetches dated Sentinel-2 and Esri Wayback imagery to check mapped change against, supports accuracy assessment, and tags change areas with records you supply, such as fire perimeters or cutblocks. The result shows where streamside forest, fields and channels have changed, for restoration planning and for monitoring sites over time.
Where the mapped land-cover class changed between 2017 and 2023 on a reach of Neexdzii Kwa (Upper Bulkley River), BC, from the data bundled with drift. 34 of the 123 ha mapped changed class; "Other change" lumps the remaining 1.2 ha. Land cover: Esri / Impact Observatory IO LULC. Imagery: Esri World Imagery.
pak::pak("NewGraphEnvironment/drift")
The functions that read STAC or Sentinel-2 imagery need gdalcubes, which was archived on CRAN. Install NewGraphEnvironment's fork, which reports failed reads, even if gdalcubes is already installed. Trajectory break detection also needs bfast.
pak::pak("NewGraphEnvironment/gdalcubes@newgraph")
pak::pak("bfast")
drift is under active development and its functions change between releases (see NEWS). Pin a release for reproducible work: pak::pak("NewGraphEnvironment/[email protected]").
Compare 2017 and 2023 on the bundled reach:
library(drift)
d <- system.file("extdata", package = "drift")
lulc <- list(`2017` = terra::rast(file.path(d, "example_2017.tif")),
`2023` = terra::rast(file.path(d, "example_2023.tif")))
classified <- dft_rast_classify(lulc, source = "io-lulc")
change <- dft_rast_transition(classified, from = "2017", to = "2023")
head(change$summary, 6)
#> # A tibble: 6 × 5
#> from_class to_class n_cells area pct
#> <chr> <chr> <int> <dbl> <dbl>
#> 1 Trees Trees 4918 49.2 40.0
#> 2 Rangeland Rangeland 3026 30.3 24.6
#> 3 Trees Rangeland 2111 21.1 17.2
#> 4 Crops Rangeland 998 9.98 8.11
#> 5 Water Water 938 9.38 7.62
#> 6 Trees Water 98 0.98 0.8
area is hectares. For your own area, dft_stac_fetch() fetches the land cover for a polygon.
| Package | Role |
|---|---|
| fresh | Stream network modelling engine: segment, classify, cluster, aggregate |
| link | Intrinsic habitat models: develop, test and communicate |
| wet | Stream flow and water temperature for BC's Freshwater Atlas |
| flooded | Delineate floodplain extents from DEMs and stream networks |
| drift | Track land cover change within floodplains over time (this package) |
| floodplains | Floodplain and land cover change modelling for BC watershed groups |
| stac_floodplains_bc | STAC catalogue of floodplain land cover change in BC, 2017-2023, by watershed group |
| cd | Climate departure analysis from ERA5-Land reanalysis |
| fly | Estimate airphoto footprints and select optimal coverage for a study area |
| gq | Shared map symbology |
drift reads Esri / Impact Observatory IO LULC and ESA WorldCover land cover, and Sentinel-2 L2A imagery, from the Microsoft Planetary Computer STAC catalogue through gdalcubes, and dated sub-metre imagery from Esri World Imagery Wayback. Vegetation trajectories default to kNDVI, with abrupt breaks from BFAST Monitor (bfast) and gradual trends as Theil-Sen slopes with a Mann-Kendall test. Accuracy and error-adjusted area follow Olofsson et al. (2014) and Stehman (2014), through mapaccuracy.
Cite drift with citation("drift"), or from CITATION.cff. MIT licensed; see LICENSE.