Learn R Programming

bioRad (version 0.5.1)

scan_to_spatial: convert a polar scan into a spatial object.

Description

Georeferences the pixels of 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

Standard refraction coefficient.

re

Earth equatorial radius in km.

rp

Earth polar radius in km.

Value

a SpatialPointsDataFrame

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.

Examples

Run this code
# NOT RUN {
# load example scan:
data(example_scan)

# convert to a SpatialPointsDataFrame:
scan_to_spatial(example_scan)
# }

Run the code above in your browser using DataLab