CAD: CAD: Solar System Dynamics and Center for Near-Earth Object...

Description Usage Arguments Value Examples

View source: R/CAD.R

Description

This API provides access to current close-approach data for all asteroids and comets in JPL’s SBDB (Small-Body DataBase). See detailed info at: https://ssd-api.jpl.nasa.gov/doc/cad.html.

Usage

1
2
3
4
5
6
7
CAD(date_min = "now", date_max = lubridate::today() + 60,
  dist_min = NULL, dist_max = "0.05", h_min = NULL, h_max = NULL,
  v_inf_min = NULL, v_inf_max = NULL, v_rel_min = NULL,
  v_rel_max = NULL, class = NULL, pha = FALSE, nea = FALSE,
  comet = FALSE, nea_comet = FALSE, neo = TRUE, kind = NULL,
  spk = NULL, des = NULL, body = "Earth", sort = "date",
  limit = NULL, fullname = FALSE)

Arguments

date_min

Date. Exclude data earlier than this date "YYYY-MM-DD" or date/time "YYYY-MM-DDThh:mm:ss" or "now" for the current date. "now" as default.

date_max

Date. Exclude data later than this date "YYYY-MM-DD" or date/time "YYYY-MM-DDThh:mm:ss". "now" + 60 as default.

dist_max

String. Exclude data with an approach distance greater than this (see dist-min). "0.05" as default.

h_min

Number. Exclude data from objects with H-values less than this (e.g., 22 meaning objects smaller than this).

h_max

Number. Exclude data from objects with H-value greater than this (e.g., 17.75 meaning objects larger than this).

v_inf_min

Number. Exclude data with V-infinity less than this positive value in km/s (e.g., 18.5).

v_inf_max

Number. Exclude data with V-infinity greater than this positive value in km/s (e.g., 20).

v_rel_min

Number. Exclude data with V-relative less than this positive value in km/s (e.g., 11.2).

v_rel_max

Number. Exclude data with V-relative greater than this positive value in km/s (e.g., 19).

class

String. Limit data to objects with the specified orbit-class (e.g., "ATE").

pha

Boolean. Limit data to PHAs. FALSE as default.

nea

Boolean. Limit data to NEAs. FALSE as default.

comet

Boolean. Limit data to comets. FALSE as default.

neo

Boolean. Limit data to NEOs. TRUE as default.

kind

String. Limit data to objects of the specified kind ("a"=asteriod, "an"=numbered-asteroids, "au"=unnumbered-asteroids, "c"=comets, "cn"=numbered-comets, "cu"=unnumbered-comets, "n"=numbered-objects, and "u"=unnumbered-objects).

spk

Integer. Only data for the object matching this SPK-ID (e.g., 2000433).

des

String. only data for the object matching this designation (e.g., "2015 AB" or "141P" or "433").

body

String. Limit data to close-approaches to the specified body (e.g., "Earth") or allow all bodies with "ALL" or *. "Earth" as default.

sort

String. Sort data on the specified field: “date”, “dist”, “dist-min”, “v-inf”, “v-rel”, “h”, or “object” (default sort order is ascending: prepend “-“ for descending). "date" as default.

limit

Integer. Limit data to the first N results (where N is the specified number and must be an integer value greater than zero).

fullname

Boolean. Include the full-format object name/designation. FALSE as default.

energy_min

String. Exclude data with an approach distance less than this, e.g., "0.05", "10LD".

nea-comet

Boolean. Limit data to NEAs and comets. FALSE as default.

Value

Data of asteroids and comets in JPL’s SBDB (Small-Body DataBase).

Examples

1
2
CAD(des = "433", date_min = as.Date("2019-01-01"), date_max = as.Date("2100-01-01"), dist_max = "0.2")
CAD(dist_max = "10LD", date_min = as.Date("2018-01-01"), sort = "dist")

Liu-Zhichao/nasaR documentation built on Dec. 16, 2019, 10:48 p.m.