scan_to_spatial: 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)
Value
a SpatialPointsDataFrame
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.
Examples
Run this code# load example scan:
data(example_scan)
# convert to a SpatialPointsDataFrame:
scan_to_spatial(example_scan)
Run the code above in your browser using DataLab