Skip to contents

Footprints, selection and georeferencing for British Columbia’s historic airphotos.

fly helps you find and use British Columbia’s historic airphotos. The province’s catalogue records where each photo was taken, but not the ground it shows. fly works that out for most photos, finds the photos over your study area, picks a small set that covers as much of it as you need, and can download the photos and place them on a map.

Older photos often show a site before roads, farming and logging changed it. That makes them a reference for what to restore toward, and a baseline for measuring change.

With an elevation model, fly allows for the height of the land under the aircraft, which makes the footprints of film photos more accurate, and it corrects the errors it can identify in the catalogue’s flying heights.

Two black-and-white airphotos side by side of the same 2 km square of the upper Bulkley River valley, labelled 1971 and 1981. A meandering river crosses each from left to right beside a highway, with forest and open meadow on the valley floor and forest on the slopes.

The upper Bulkley River (Neexdzii Kwa) near McKilligan Road and Houston, BC, in 1971 and 1981, placed on the map by fly. Each photo sits on its own estimated footprint, so features line up approximately rather than exactly.

Installation

pak::pak("NewGraphEnvironment/fly")

Functions still change between releases (NEWS), so pin a version for repeatable work: pak::pak("NewGraphEnvironment/fly@vX.Y.Z").

Example

Twenty 1968 photos of the Upper Bulkley River floodplain near Houston, BC, ship with the package. How much of the floodplain each scale covers, and the fewest photos that cover 80% of it:

library(fly)

centroids <- sf::st_read(system.file("testdata/photo_centroids.gpkg", package = "fly"), quiet = TRUE)
aoi <- sf::st_read(system.file("testdata/aoi.gpkg", package = "fly"), quiet = TRUE)

fly_coverage(centroids, aoi, by = "scale")
#> # A tibble: 2 × 4
#>   scale   n_photos covered_km2 coverage_pct
#>   <chr>      <int>       <dbl>        <dbl>
#> 1 1:12000       10        14.8         59.5
#> 2 1:31680       10        24.8        100

selected <- fly_select(centroids, aoi, mode = "minimal", target_coverage = 0.8)
#> Selecting photos (target: 80% coverage)...
#>   3 photos -> 81.6% coverage
#> Selected 3 of 20 photos for 81.6% coverage

From there, fly_fetch() downloads the photos’ thumbnails and fly_georef() writes each one as a GeoTIFF on its footprint.

Learn more

  • Airphoto selection pipeline: footprints, coverage, selection and georeferencing on the bundled floodplain.
  • stac-airphoto-bc: photos georeferenced with fly, to browse and download by place and date.
  • Method notes: how footprints are sized from the terrain, how the catalogue’s heights and camera formats are checked, and how scans are masked and placed.
  • Function reference.

Ecosystem

Package Role
link Build, compare and test fish habitat and access models, every fish habitat definition editable
fresh Splits streams at barriers, classifies habitat by species, traces what’s upstream
wet Typical flow in nearly every stream, tested against gauges; station flow and temperature
flooded Maps floodplains from terrain: the valley floor a river can spread across
drift Maps what changed in land cover, where and when, in a floodplain or any area, from free satellite maps or your own
fly Puts BC’s historic airphotos back on the map from free thumbnails (this package)
cd How far any BC watershed’s climate has shifted from your chosen baseline
knowledge Starts from each species’ life history and tunes its fish habitat definitions from where sampling did and did not catch it
floodplains Maps BC’s floodplains and how the land in them changed, one watershed group at a time
crate Canonical schemas for data that changes shape, and provenance receipts for outputs
stac_floodplains_bc Floodplains and land-cover change, a screen for where to look; by watershed group

fly’s georeferenced airphotos are published in stac_airphoto_bc, the catalogue of historic BC airphotos.

Historic airphotos: fly (footprints, selection, georeferencing) → stac_airphoto_bc (published)

Data and methods it builds on

  • The province’s airphoto centroids in the BC Data Catalogue, with the thumbnails, flight logbooks, camera calibration reports and camera files the records link to.
  • NRCan’s MRDEM-30 elevation model, the one the height checks were measured against.
  • GDAL, through sf, for warping and masking the scans.

Citation

Cite fly with citation("fly"), or from CITATION.cff.

License

MIT © New Graph Environment Ltd.