Skip to content

STARS-Data-Fusion/SentinelTiles.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SentinelTiles.jl

Utilities for Geo-Referencing and Searching UTM Sentinel Tiles in Julia

The Python equivalent of this package is sentinel_tiles.

Gregory H. Halverson (they/them)
gregory.h.halverson@jpl.nasa.gov
Lead developer and designer
NASA Jet Propulsion Laboratory

Margaret Johnson (she/her)
maggie.johnson@jpl.nasa.gov
Concept development and project management
NASA Jet Propulsion Laboratory

Kerry Cawse-Nicholson (she/her)
kerry-anne.cawse-nicholson@jpl.nasa.gov
Concept development and project management
NASA Jet Propulsion Laboratory

Joshua Fisher (he/him)
jbfisher@chapman.edu
Concept development and project management
Chapman University

Usage

sentinel_tile_dims

sentinel_tile_dims(tile::String, cell_size::Union{Float64,Int64})::Tuple{X,Y}

Calculate the raster dimensions of a Sentinel tile for use with Rasters.jl.

Arguments

  • tile: A string representing the Sentinel tile.
  • cell_size: The size of each cell in the raster. Can be either a Float64 or an Int64.

Returns

  • A tuple of X and Y dimensions representing the raster dimensions of the Sentinel tile.

Description

This function first retrieves the bounding box of the Sentinel tile. It then calculates the number of columns and rows based on the cell size and the extent of the bounding box. The function finally generates the X and Y dimensions using the calculated number of columns and rows, and the coordinate reference system (CRS) of the Sentinel tile.

Example

using SentinelTiles

dims = sentinel_tile_dims("11SPS", 60)

find_sentinel_tiles

find_sentinel_tiles(geometry::AG.IGeometry)::Vector{String}

Search for Sentinel tiles that intersect with a given geometry.

Arguments

  • geometry::AG.IGeometry: The geometry to check for intersection with Sentinel tiles.

Returns

  • Vector{String}: A vector of Sentinel tile identifiers that intersect with the given geometry.

Example

import ArchGDAL as AG
using SentinelTiles

geometry = AG.getgeom(ArchGDAL.getfeature(AG.getlayer(AG.read("target.geojson"), 0), 0))
tiles = find_sentinel_tiles(geometry)

About

Utilities for Geo-Referencing UTM Sentinel Tiles in Julia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages