You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/build/html/_sources/api.rst.txt
+145Lines changed: 145 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -293,6 +293,11 @@ exact date in the request.
293
293
:param end_date: End of date range in which to search for available assets. If not specified, defaults to the current date. If specified, Must be a string representing a date in 'YYYY-MM-DD' format or a datetime object
294
294
:rtype: dict. Dictionary object representing the returned JSON data from the API.
295
295
296
+
.. code-block:: python
297
+
298
+
# Get assets available beginning from 2014-02-01 at lat-lon 100.75, 1.5
:param fvalue: Filters the returned data based on value or values in the specified :code:`ffield` parameter field. Only the 'cgene' (GeneLab) database can be filtered.
328
333
:rtype: dict. Dictionary object representing the returned JSON data.
329
334
335
+
.. code-block:: python
336
+
337
+
# Find Gene studies in the cgene database related to 'mouse liver'
338
+
n.genelab_search(term='mouse liver')
339
+
330
340
Techport
331
341
++++++++
332
342
@@ -496,3 +506,138 @@ and `Center for Near-Earth Object Studies <https://cneos.jpl.nasa.gov/>`_ APIs.
Returns data available from the Near-Earth Object Human Space Flight Accessible Targets Study (NHATS) in the Small
537
+
Bodies Database
538
+
539
+
:param spk: Returns data for a specific object by its SPK-ID.
540
+
:param des: Returns data for a specific object by its designation.
541
+
:param delta_v: Minimum total delta-v in km/s. Must be one of {12, 4, 5, 6, 7, 8, 9, 10, 11}
542
+
:param duration: Minimum total distribution in number of days. Must be one of {450, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330, 360, 390, 420}
543
+
:param stay: Minimum stay in days. Must be one of {8, 16, 24, 32}
544
+
:param launch: The proposed launch window as a year range. Must be one of {'2020-2045', '2020-2025', '2025-2030', '2030-2035', '2035-2040', '2040-2045'}
545
+
:param magnitude: The object's maximum absolute magnitude, also denoted as H. Must be one of {16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30}
546
+
:param orbit_condition_code: The object's maximum orbit condition code (OCC). Must be one of {0, 1, 2, 3, 4, 5, 6, 7, 8}
547
+
:param plot: If True, include base-64 encoded plot image file content. Will include a new output field 'plot_base64' in the returned results if True.
548
+
:rtype: dict. Dictionary object representing the returned JSON data from the API.
549
+
550
+
.. code-block:: python
551
+
552
+
# Get all available summary data for NHATS objects.
553
+
n = nhats()
554
+
# Get the results from a 'standard' search on the NHATS webpage.
Provides access and data available from NASA's Center for Near-Earth Object Studies (CNEOS) Scout system.
562
+
563
+
:param tdes: Filter results by an object's temporary designation.
564
+
:param plot: Includes the plot files for the specified object of the select type. Options include 'el' (elements), 'ca' (close approach) and `sr` (systematic-ranging) or any combination delimited by ':'. For example, 'ca:el:sr' would include plot files of each available type.
565
+
:param data_files: Returns available data files or the requested data file for the specified object. Currently only 'mpc' is available.
566
+
:param orbits: If True, returns the sampled orbits data for a specified object.
567
+
:param n_orbits: Limits the number of sampled orbits to this value. Must be in range [1, 1000].
568
+
:param eph_start: Get the ephemeris for the specified object at the specified time in UTC.
569
+
:param eph_stop: Sets the ephemeris stop-time. Also requires :code:`eph_start` if specified.
570
+
:param eph_step: Sets the ephemeris step size. Requires both :code:`eph_start` and :code:`eph_stop` to be specified.
571
+
:param obs_code: Gets the ephemeris for the specified object relative to the specified MPC observatory code.
572
+
:param fov_diam: Specifies the size (diameter) of the field-of-view in arc-minutes.
573
+
:param fov_ra: Specifies the field-of-view center (R.A component). Requires parameters :code:`fov_diam` and :code:`fov_dec` to be set as well. Invalid if :code:`eph_stop` is passed.
574
+
:param fov_dec: Specifies the field-of-view center (Dec. component). Requires :code:`fov_diam` and :code:`fov_ra` to be passed as well. Invalid if :code:`eph_stop` is set.
575
+
:param fov_vmag: Filters ephemeris results to those with V-magnitude of this value or brighter. Requires :code:`fov_diam` to also be specified.
576
+
:rtype: dict. Dictionary object representing the returned JSON data from the API.
577
+
578
+
.. code-block:: python
579
+
580
+
# Get all available summary data.
581
+
scout()
582
+
# Return data and plot files for a specific object by its temporary designation. Note the object may no longer
583
+
# exist in the current database
584
+
scout(tdes='P20UvyK')
585
+
# Get ephemeris data for a specific object at the current time with a Field of View diameter of 5 arc-minutes
Provides data available from the Center for Near Earth Object Studies (CNEOS) Sentry system.
592
+
593
+
:param spk: Returns data available for the object matching the specified SPK-ID.
594
+
:param des: Selects data for the matching designation.
595
+
:param h_max: Limits data to those with an absolute magnitude, less than or equal to the specified value. Must be in the range [-10:100].
596
+
:param ps_min: Limits results to those with a Palermo scale (PS) greater than or equal to the specified value. Must be in the range [-20:20].
597
+
:param ip_min: Filters data to that which has an impact probability (IP) greater than or equal to the specified value.
598
+
:param last_obs_days: Number of days since last observation. If negative, filters data to those which have not been observed within the specified number of days. If passed, must have an absolute value greater than 6.
599
+
:param complete_data: If True, requests the full dataset to be returned.
600
+
:param removed: If True, requests the list of removed objects to be returned.
601
+
:rtype: dict. Dictionary object representing the returned JSON data.
602
+
603
+
.. code-block:: python
604
+
605
+
# Get summary data for available sentry objects.
606
+
sentry()
607
+
# Get data for a specific Sentry object by its designation.
608
+
sentry(des=99942)
609
+
# Get data for objects removed from the Sentry system.
Calculates the Julian date or modified Julian date (if specified).
618
+
619
+
:param dt: Datetime object to convert into a Julian date. Note if a datetime object is supplied to :code:`dt` the other parameters will not be evaluated. If None, returns the current datetime converted into a Julian date.
620
+
:param year: Four digit year, such as 2019 or '2019'.
621
+
:param month: Month number. For example 1 = January, 12 = December.
622
+
:param day: Day of the month.
623
+
:param hour: Hour of the day.
624
+
:param minute: Minute of the day.
625
+
:param second: Second of the day.
626
+
:param modified: If True, returns the modified Julian date, which is the computed Julian Date - 24000000.5.
627
+
:rtype: float. The computed Julian or Modified Julian date.
628
+
629
+
.. code-block:: python
630
+
631
+
# Return the modified Julian Date for the current time.
632
+
julian_date()
633
+
# Return the non-modified Julian Date for the current time.
634
+
julian_date(modified=False)
635
+
# Get the modified Julian Date for 2019-01-01 at midnight.
636
+
julian_date(year=2019)
637
+
638
+
The equation for calculating the Julian date is defined as:
0 commit comments