createHWT()

Scientific results for this function.

Function index

A digital horizon supplies estimated angular obstruction around the site. The optional httr2 package submits one HTTPS request for a panorama. Once the service returns its identifier, the function waits two minutes before the first readiness check, then polls at intervals of up to 15 seconds. The polling deadline defaults to 600 seconds. If the wait expires, use the identifier with downloadHWT once the panorama is ready. Individual requests have a timeout of at most 30 seconds. The initial submission and final download are separate from the polling time allowance. Once ready, the profile is downloaded and assigned the supplied name. Terrain-derived profiles need field verification where vegetation or structures affect visibility.

Method references

HeyWhatsThat.com

Interpretation and limits. Separate where a provider actually placed its viewpoint from the coordinate in the request. Record the downloaded profile, reference direction and acquisition date. A provider comparison can mix terrain-source and algorithm differences.

Implementation arguments, return value and documented modes
Argument Formal default Behaviour in this interface
lat —

The latitude of the location.

lon —

The longitude of the location.

name —

Name assigned to the returned horizon profile.

elevation 1.6

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

src "skyscapeR"

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

max.wait 600

Maximum seconds to wait for panorama readiness after submission. Default 600.

verbose TRUE

Logical switch to control output. Default is TRUE.

Return value

A skyscapeR.horizon object for the requested panorama, as returned by downloadHWT. This function submits a remote request and waits for the calculated profile.

Implementation. R/horizon.R. Full function help · Terrain horizons and panoramas outline · Importing site horizons