Inspect or set session defaults for skyscapeR

Description

Set the observing and time conventions that should be shared across an analysis, or retrieve them for a reproducible methods record.

Usage

skyscapeR.vars(timezone, calendar, refraction, atm, temp, dec, k)

Arguments

timezone

Timezone name (for example "Europe/London") or fixed offset in hours east of UTC, or a string such as "UTC+02:00". Initially "Europe/London". Use UTC or a fixed offset for dates before 1900. See time2jd for details.

calendar

Calendar for civil dates. Use "G" for Gregorian or "J" for Julian.

refraction

Whether atmospheric refraction is to be taken into account. Default is TRUE.

atm

Air pressure in mbar for the refraction calculation. Default is 1013.25 mbar.

temp

Air temperature in degrees Celsius for the refraction calculation. Default is 15 degrees Celsius.

dec

Output declination: geo for the geocentric, or topo for the topocentric frame of reference. Defaults to topocentric.

k

Visual extinction in magnitudes per airmass, shared by natural sky sketches and stellar phase calculations. The initial value of 0.2 is a clear-sky baseline, consistent with the approximate V-band coefficient for Kitt Peak in the UC Davis Physics 157 Observing Guide. Extinction varies with site and atmospheric conditions (Schaefer 1986, 1993). Use zero to disable extinction.

Details

The same observation can have different labels or apparent coordinates under different calendar, timezone, reference-frame or atmospheric choices. With no arguments the function returns a named snapshot. Supplied arguments update the package environment for subsequent calls in the current R session. Functions with their own explicit arguments or fixed UT sampling conventions may override these defaults. Record the settings with the survey data.

Value

A named list of the current session settings, including the current year. Supplying an argument updates that setting for subsequent package calls in this R session.

Validation

Build 2.0.9005 passed all 499 calendar, clock, era, angle and setting checks in A01. The largest discrepancy across 240 absolute Julian dates was 0.000021 seconds. See A01 validation in the technical manual.

Scientific checks

References

Schaefer, B. E. (1986). Atmospheric Extinction Effects on Stellar Alignments. Journal for the History of Astronomy 17, S32-S42. doi:10.1177/002182868601701003.

Schaefer, B. E. (1993). Astronomy and the Limits of Vision. Vistas in Astronomy 36, 311-361. doi:10.1016/0083-6656(93)90113-X.

University of California, Davis. Physics 157 Observing Guide, Spring 2022, discussion of extinction coefficients.

See Also

skyscapeR-package, time2jd, body.position

Examples

settings <- skyscapeR.vars()
settings$timezone