createHWT: Create and download horizon data from _HeyWhatsThat_

View source: R/horizon.R

createHWTR Documentation

Create and download horizon data from HeyWhatsThat

Description

This function send a data request to HeyWhatsThat, for the creation of a horizon profile for a give Lat/Lon and elevation. It then downloads the data and saves it as a skyscapeR.horizon object.

Usage

createHWT(lat, lon, elevation = 1.6, name, src = "skyscapeR", verbose = T)

Arguments

lat

The latitude of the location.

lon

The longitude of the location.

elevation

(Optional) The elevation of the observer above ground level in meters. Default is 1.6 meters (eye level).

name

(Optional) Name for horizon.

src

(Optional) Request source ID for HeyWhatsThat. Default is 'skyscapeR'. Only change this if you have been given a source ID by the creator of HeyWhatsThat.

verbose

(Optional) Boolean switch to control output. Default is TRUE.

References

HeyWhatsThat.com

See Also

downloadHWT

Examples

## Not run: 
# Create and retrieve horizon data for the London Mithraeum:
hor <- createHWT(lat=ten(51,30,45), lon=ten(0,5,26.1), name='London Mithraeum')

## End(Not run)

f-silva-archaeo/skyscapeR documentation built on Sept. 24, 2023, 8:14 p.m.