scan_to_spatial: convert a polar scan into a spatial object.

View source: R/scan_convert.R

scan_to_spatialR Documentation

convert a polar scan into a spatial object.

Description

Georeferences the center of pixels for a scan into a SpatialPointsDataFrame object.

Usage

scan_to_spatial(scan, lat, lon, k = 4/3, re = 6378, rp = 6357)

Arguments

scan

a scan (sweep) of class scan

lat

Geodetic latitude of the radar in degrees. If missing taken from scan.

lon

Geodetic longitude of the radar in degrees. If missing taken from scan.

k

Numeric. Standard refraction coefficient.

re

Numeric. Earth equatorial radius, in km.

rp

Numeric. Earth polar radius, in km.

Details

Beam altitude accounts for the curvature of the earth, using beam_height. Distance from the radar over the earth's surface is calculated using beam_distance.

Value

a SpatialPointsDataFrame

Examples

# load example scan:
data(example_scan)

# convert to a SpatialPointsDataFrame:
scan_to_spatial(example_scan)

adokter/birdRad documentation built on Nov. 5, 2024, 10:27 p.m.