Wildcard Handling with Astroquery.mast#
Learning Goals#
By the end of this tutorial, you will:
Use the wildcards available for
astroquery.mast.Observations
criteria queriesBroaden and refine
astroquery.mast.Observations
criteria queriesFully utilize the
instrument_name
criteria, especially for JWST queriesQuery for moving targets using target ephemeris and time criteria such as
t_min
andt_max
Introduction#
This Notebook demonstrates the use of wildcards in astroquery.mast.Observations
criteria queries. The use of wildcards is encouraged for certain criteria types (namely, string
object types) to ensure your query returns all results.
We will demonstrate 3 use-cases for wildcards when doing criteria queries and emphasize certain criteria where wildcard usage is highly encouraged, particularly for JWST queries. We will also use the last example to demonstrate the use of value ranges when working with float
object criteria types.
The workflow for this notebook consists of:
Wildcard overview with
astroquery.mast.Observations
Wildcard Search with
instrument_name
Wildcard Search with
instrument_name
andproposal_id
Wildcard Search a Time-sensitive Object with
target_name
andt_min
Resources
Imports#
import astropy.units as u
import matplotlib.pyplot as plt
from astropy.coordinates import SkyCoord
from astropy.table import Table, unique, vstack
from astropy.time import Time
from astroquery.mast import Observations
Wildcards with astroquery.mast.Observations
#
The use of wildcards when making astroquery.mast.Observations
queries can help ensure you retrieve all observations without leaving anything out. The available wildcards are %
and *
: %
replaces a single character, while *
replaces more than one character preceding, following, or in between the existing characters, depending on its placement. See the Observation Criteria Queries section in the astroquery.mast
documentation for more information on the wildcards.
Wildcards are only available for certain criteria. string
type objects accept wildcards, but float
, integer
, or any other objects do not accept wildcards.
Users may call the get_metadata
method to see the list of query criteria and their data types. The criteria listed as string
objects under the Data Type column are criteria that can be called with wildcards:
Observations.get_metadata("observations")
Column Name | Column Label | Data Type | Units | Description | Examples/Valid Values |
---|---|---|---|---|---|
str21 | str25 | str7 | str10 | str72 | str116 |
intentType | Observation Type | string | Whether observation is for science or calibration. | Valid values: science, calibration | |
obs_collection | Mission | string | Collection | E.g. SWIFT, PS1, HST, IUE | |
provenance_name | Provenance Name | string | Provenance name, or source of data | E.g. TASOC, CALSTIS, PS1 | |
instrument_name | Instrument | string | Instrument Name | E.g. WFPC2/WFC, UVOT, STIS/CCD | |
project | Project | string | Processing project | E.g. HST, HLA, EUVE, hlsp_legus | |
filters | Filters | string | Instrument filters | F469N, NUV, FUV, LOW DISP, MIRROR | |
wavelength_region | Waveband | string | Energy Band | EUV, XRAY, OPTICAL | |
target_name | Target Name | string | Target Name | Ex. COMET-67P-CHURYUMOV-GER-UPDATE | |
target_classification | Target Classification | string | Type of target | Ex. COMET;COMET BEING ORBITED BY THE ROSETTA SPACECRAFT;SOLAR SYSTEM | |
obs_id | Observation ID | string | Observation identifier, given by mission | U24Z0101T, N4QF18030 | |
... | ... | ... | ... | ... | ... |
s_region | s_region | string | ICRS Shape | STC/S Footprint | Will be ICRS circle or polygon. E.g. CIRCLE ICRS 17.71740689 -58.40043015 0.625 |
jpegURL | jpegURL | string | Preview Image URL | https://archive.stsci.edu/hst/previews/N4QF/N4QF18090.jpg | |
distance | Distance (") | float | arcsec | Angular separation between searched coordinates and center of obsevation | |
obsid | Product Group ID | integer | Database identifier for obs_id | Long integer, e.g. 2007590987 | |
dataRights | Data Rights | string | Data Rights | valid values: public,exclusive_access,restricted | |
mtFlag | Moving Target | boolean | Moving Target Flag | If True, observation contains a moving target, if False or absent observation may or may not contain a moving target | |
srcDen | Number of Catalog Objects | float | Number of cataloged objects found in observation | ||
dataURL | Data URL | string | Data URL | ||
proposal_type | Proposal Type | string | Type of telescope proposal | Eg. 3PI, GO, GO/DD, HLA, GII, AIS | |
sequence_number | Sequence Number | integer | Sequence number, e.g. Kepler quarter or TESS sector |
Case 1: Wildcard Search with instrument_name
#
For our first example we will search for all NIRISS observations taken by a certain proposal/program PI. Our two query criteria are proposal_pi
and instrument_name
, which are both string
object criteria. As such, both can be wildcarded for ease of use.
In fact, it is sometimes necessary to use wildcards when searching on instrument_name
. Both HST and JWST use instrument configurations in this field to allow for more precise advanced searches (e.g. NIRISS/IMAGE and STIS/FUV-MAMA). When performing a “generic” search, you must include a wildcard or these more detailed results will be excluded.
We will demonstrate this by looking at the results for the query below:
observations = Observations.query_criteria(proposal_pi="Espinoza, Nestor",
instrument_name="NIRISS*")
observations
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str4 | str7 | str12 | str4 | str13 | str8 | str13 | str54 | str50 | float64 | float64 | str8 | str16 | int64 | float64 | float64 | float64 | float64 | float64 | str70 | float64 | str4 | str3 | int64 | str132 | str63 | str81 | str16 | bool | float64 | str9 | str9 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001008_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.649413757754 | 60265.65301753472 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.68196744 | 4479 | CAL | -- | POLYGON 9.325091029 1.406134446 9.309028303 1.43963309 9.342821013 1.455643805 9.35890312 1.422164529 | mast:JWST/product/jw04479001008_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001008_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192007020 | 370480998 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001001_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.58373012349 | 60265.58733390046 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.66748831 | 4479 | CAL | -- | POLYGON 9.350452979 1.418150502 9.334390429 1.451649271 9.368183444 1.467659722 9.384265372 1.434180319 | mast:JWST/product/jw04479001001_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001001_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 191961743 | 370481010 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001006_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.63078266979 | 60265.634386446756 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.66760405 | 4479 | CAL | -- | POLYGON 9.337523341 1.40174698 9.321460798 1.435245697 9.355253516 1.451256258 9.371335441 1.41777691 | mast:JWST/product/jw04479001006_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001006_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 191961741 | 370481023 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479002008_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.73434404711 | 60265.73794782408 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.78704855 | 4479 | CAL | -- | POLYGON 9.325091017 1.406134443 9.309028286 1.439633085 9.342820993 1.455643805 9.358903106 1.422164532 | mast:JWST/product/jw04479002008_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479002008_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192102532 | 370481028 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479002010_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.752856628125 | 60265.75646040509 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.77828695 | 4479 | CAL | -- | POLYGON 9.320615514 1.393736439 9.304552697 1.427234998 9.338345138 1.443245893 9.354427339 1.409766703 | mast:JWST/product/jw04479002010_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479002010_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192101873 | 370481030 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479002003_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.696891489235 | 60265.7004952662 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.74620367 | 4479 | CAL | -- | POLYGON 9.345977528 1.405752567 9.329915153 1.439251378 9.363708024 1.455261742 9.37978978 1.421782299 | mast:JWST/product/jw04479002003_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479002003_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192022229 | 370481031 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001009_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.65868115359 | 60265.66228493056 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.69064807 | 4479 | CAL | -- | POLYGON 9.31663705 1.402128898 9.300574174 1.435627456 9.334366739 1.451638351 9.350448997 1.418159162 | mast:JWST/product/jw04479001009_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001009_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192007022 | 370481033 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001010_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.66791374618 | 60265.67151752315 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.69851845 | 4479 | CAL | -- | POLYGON 9.320615515 1.39373645 9.304552703 1.427235011 9.338345146 1.443245901 9.354427342 1.409766709 | mast:JWST/product/jw04479001010_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001010_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 192007024 | 370481038 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479002004_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.57441457951 | 60265.57801835648 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.66855308 | 4479 | CAL | -- | POLYGON 9.354432351 1.409758728 9.33837033 1.443257722 9.372163444 1.4592677 9.388244845 1.425788073 | mast:JWST/product/jw04479002004_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479002004_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 191959981 | 370481039 |
science | JWST | CALJWST | NIRISS/IMAGE | JWST | CLEAR;GR700XD | Infrared | ECLIPTIC-RA00 | Calibration; External flat field | jw04479001003_03101_00001_nis | 9.344387500000002 | 1.4307027777777779 | image | Espinoza, Nestor | 2 | 60265.60216047072 | 60265.60576424769 | 300.63 | 600.0 | 2800.0 | SOSS background measurements | 60265.66708326 | 4479 | CAL | -- | POLYGON 9.345977518 1.405752619 9.329915147 1.439251431 9.363708019 1.455261792 9.379789772 1.421782347 | mast:JWST/product/jw04479001003_03101_00001_nis_trapsfilled.jpg | mast:JWST/product/jw04479001003_03101_00001_nis_rateints.fits | PUBLIC | False | nan | 191961744 | 370481053 |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | -- | jw01541001001_04101_00001-seg001_nis | 260.1161736742332 | 38.24216472053897 | spectrum | Espinoza, Nestor | 2 | 59738.29788028935 | 59738.55248649306 | 18855.408 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.16189736 38.23724474 260.11337274 38.23745635 260.11348205 38.24618969 260.16201603 38.24597525 260.16189736 38.23724474 | mast:JWST/product/jw01541001001_04101_00001-seg001_nis_ramp.jpg | mast:JWST/product/jw01541001001_04101_00001-seg001_nis_x1dints.fits | PUBLIC | False | nan | 85700117 | 371225133 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | Star; Exoplanet Systems; Exoplanets; F dwarfs; F stars | jw01541001001_04101_00001-seg004_nis | 260.1161771630844 | 38.24215651109613 | spectrum | Espinoza, Nestor | 2 | 59738.29788028935 | 59738.55248649306 | 18855.408 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.16190084 38.23723653 260.11337623 38.23744814 260.11348554 38.24618148 260.16201952 38.24596704 260.16190084 38.23723653 | mast:JWST/product/jw01541001001_04101_00001-seg004_nis_ramp.jpg | mast:JWST/product/jw01541001001_04101_00001-seg004_nis_x1dints.fits | PUBLIC | False | nan | 85700141 | 371225200 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | Star; Exoplanet Systems; Exoplanets; F dwarfs; F stars | jw01541001001_02101_00002-seg001_nis | 260.11617716273054 | 38.24215651192892 | image | Espinoza, Nestor | 2 | 59738.26208069445 | 59738.262091226854 | 0.954 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.117045344 38.242630644 260.116929825 38.241464963 260.115456996 38.241551067 260.11557248 38.24271685 | mast:JWST/product/jw01541001001_02101_00002-seg001_nis_cal.jpg | mast:JWST/product/jw01541001001_02101_00002-seg001_nis_cal.fits | PUBLIC | False | nan | 85700160 | 371225256 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | Star; Exoplanet Systems; Exoplanets; F dwarfs; F stars | jw01541001001_02101_00001-seg001_nis | 260.11617716272866 | 38.24215651193334 | image | Espinoza, Nestor | 2 | 59738.26121625 | 59738.26122678241 | 0.954 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.116957169 38.242674819 260.116841675 38.241509137 260.115368843 38.241595221 260.115484303 38.242761006 | mast:JWST/product/jw01541001001_02101_00001-seg001_nis_cal.jpg | mast:JWST/product/jw01541001001_02101_00001-seg001_nis_cal.fits | PUBLIC | False | nan | 85700178 | 371225300 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | Star; Exoplanet Systems; Exoplanets; F dwarfs; F stars | jw01541001001_04101_00001-seg003_nis | 260.1161771630844 | 38.24215651109613 | spectrum | Espinoza, Nestor | 2 | 59738.29788028935 | 59738.55248649306 | 18855.408 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.16190084 38.23723653 260.11337623 38.23744814 260.11348554 38.24618148 260.16201952 38.24596704 260.16190084 38.23723653 | mast:JWST/product/jw01541001001_04101_00001-seg003_nis_ramp.jpg | mast:JWST/product/jw01541001001_04101_00001-seg003_nis_x1dints.fits | PUBLIC | False | nan | 85700237 | 371225426 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | -- | jw01541001001_04101_00001-seg002_nis | 260.1161736742332 | 38.24216472053897 | spectrum | Espinoza, Nestor | 2 | 59738.29788028935 | 59738.55248649306 | 18855.408 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.16189736 38.23724474 260.11337274 38.23745635 260.11348205 38.24618969 260.16201603 38.24597525 260.16189736 38.23724474 | mast:JWST/product/jw01541001001_04101_00001-seg002_nis_ramp.jpg | mast:JWST/product/jw01541001001_04101_00001-seg002_nis_x1dints.fits | PUBLIC | False | nan | 85700224 | 371225559 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | HAT-P-14 | Star; Exoplanet Systems; Exoplanets; F dwarfs; F stars | jw01541001001_04102_00001-seg001_nis | 260.1161771633686 | 38.242156510427485 | image | Espinoza, Nestor | 2 | 59738.55390866898 | 59738.55835982639 | 329.64 | 600.0 | 2800.0 | NIRISS Sensitivity and Stability for Transiting Exoplanet Observations | 59774.8541666 | 1541 | COM | -- | POLYGON 260.071038142 38.249479213 260.119374977 38.246710174 260.118514171 38.23802336 260.070180892 38.24078268 | mast:JWST/product/jw01541001001_04102_00001-seg001_nis_ramp.jpg | mast:JWST/product/jw01541001001_04102_00001-seg001_nis_rateints.fits | PUBLIC | False | nan | 85700205 | 371225649 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | CD-38-2551 | Star; G stars | jw02113005001_04103_00001-seg001_nis | 94.33630544130956 | -38.32344481509817 | image | Espinoza, Nestor | 2 | 60216.2528283912 | 60216.257597488424 | 329.64 | 600.0 | 2800.0 | Exploring the morning and evening limbs of a transiting exoplanet | 60582.57626142 | 2113 | GO | -- | POLYGON 94.343963285 -38.287739716 94.342226315 -38.325776892 94.331128864 -38.325424225 94.332859637 -38.287385839 | mast:JWST/product/jw02113005001_04103_00001-seg001_nis_ramp.jpg | mast:JWST/product/jw02113005001_04103_00001-seg001_nis_rateints.fits | EXCLUSIVE_ACCESS | False | nan | 178895888 | 373900829 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | CD-38-2551 | Star; G stars | jw02113005001_04101_00001-seg001_nis | 94.33630544945105 | -38.3234448051187 | spectrum | Espinoza, Nestor | 2 | 60215.77435597222 | 60215.77448314815 | 5.494 | 600.0 | 2800.0 | Exploring the morning and evening limbs of a transiting exoplanet | 60582.58410871 | 2113 | GO | -- | POLYGON 94.38208655 -38.32834702 94.33350101 -38.32815311 94.33361111 -38.31941977 94.38219434 -38.31961642 94.38208655 -38.32834702 | mast:JWST/product/jw02113005001_04101_00001-seg001_nis_ramp.jpg | mast:JWST/product/jw02113005001_04101_00001-seg001_nis_x1dints.fits | EXCLUSIVE_ACCESS | False | nan | 178895938 | 373900895 |
science | JWST | CALJWST | NIRISS/SOSS | JWST | CLEAR;GR700XD | Infrared | CD-38-2551 | Star; G stars | jw02113-o005_t001_niriss_clear-gr700xd-substrip256 | 94.33630544540856 | -38.32344481007381 | spectrum | Espinoza, Nestor | 3 | 60215.75685262732 | 60216.25049009259 | 32810.168 | 600.0 | 2800.0 | Exploring the morning and evening limbs of a transiting exoplanet | 60582.96342588 | 2113 | GO | -- | POLYGON 94.38208655 -38.32834702 94.33350101 -38.32815311 94.3336111 -38.31941978 94.38219433 -38.31961643 94.38208655 -38.32834702 | -- | mast:JWST/product/jw02113-o005_t001_niriss_clear-gr700xd-substrip256_x1dints.fits | EXCLUSIVE_ACCESS | False | nan | 188165781 | 373903106 |
Our query returned many NIRISS observations led by the PI Dr. Espinoza. Let’s get all the unique values under the instrument_name
column to see what our *
wildcard picked up.
set(observations['instrument_name'])
{'NIRISS/IMAGE', 'NIRISS/SOSS'}
Our observations have the advanced labeling; had we simply set instrument_name = "NIRISS"
, we would have missed several observations. For more details on this advanced labeling, see the JWST Instrument Names page.
A note of caution: There is such a thing as too many wildcards#
You can be too generous with the wildcards, so be sure to exercise caution in their use. Too much ambiguity can lead to unintended results. Let’s take a look at our example below.
observations = Observations.query_criteria(proposal_pi='Espinoza, Nestor',
instrument_name='NIR*') # Surely only one instrument begins with 'NIR'
set(observations['instrument_name'])
{'NIRISS/IMAGE', 'NIRISS/SOSS', 'NIRSPEC/SLIT'}
This query returns NIRSPEC/SLIT
observations in addition to the NIRISS ones, which is not what we intended.
Case 2: Wildcard Search with instrument_name
and proposal_id
#
Let’s add an additional string
criterion and wildcard into the mix. We’ll do this with the proposal_id
field which, despite its numeric content, is encoded as a string.
Let’s query for a four digit proposal/program IDs that begin with 15
.
observations = Observations.query_criteria(proposal_pi='Espinoza, Nestor',
instrument_name='NIRISS*',
proposal_id=['15%%']) # Only a four digit result will match this
set(observations['proposal_id']), set(observations['instrument_name'])
({'1512', '1541'}, {'NIRISS/IMAGE', 'NIRISS/SOSS'})
Case 3: Create a Moving Target Ephemeris using MAST Observations with Wildcard Search#
We will be querying for image observations of Comet 67P Churyumov-Gerasimenko observed through the Hubble Space Telescope’s Advanced Camera for Surveys (ACS) Wide Field Camera (WFC). This comet’s name can be listed in different ways, so we will use *
wildcards in our criteria query.
observations = Observations.query_criteria(target_name="*67P*",
instrument_name="ACS/WFC")
print(f"{len(observations)} total observations" + "\n")
print("Listed target names:")
print(set(observations['target_name']))
140 total observations
Listed target names:
{'COMET-67P-CHURYUMOV-GER-UPDATE', 'COMET-67P-CHURYUMOV-GERASIMENK'}
Above there are two names we get for Comet-67P. You should exercise caution when searching on the target_name
criteria, since this is often entered by the PI who proposed the observation and can vary from person to person.
In the remainder of this notebook, we will construct a bare-bones ephemeris using the filtered MAST observations of this object and their metadata. We will then do some reverse engineering to query for the target based on coordinates using the ephemeris table, and hope that we get the same results back! Let’s begin:
For simplicity, let’s work only with the 'COMET-67P-CHURYUMOV-GERASIMENK'
observations to create our ephemeris.
mask = observations["target_name"] == "COMET-67P-CHURYUMOV-GERASIMENK"
filtered_observations = observations[mask]
filtered_observations
intentType | obs_collection | provenance_name | instrument_name | project | filters | wavelength_region | target_name | target_classification | obs_id | s_ra | s_dec | dataproduct_type | proposal_pi | calib_level | t_min | t_max | t_exptime | em_min | em_max | obs_title | t_obs_release | proposal_id | proposal_type | sequence_number | s_region | jpegURL | dataURL | dataRights | mtFlag | srcDen | obsid | objID |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
str7 | str3 | str6 | str7 | str3 | str12 | str7 | str30 | str89 | str36 | float64 | float64 | str5 | str14 | int64 | float64 | float64 | float64 | float64 | float64 | str119 | float64 | str5 | str3 | int64 | str2243 | str86 | str35 | str6 | bool | float64 | str8 | str9 |
science | HST | CALACS | ACS/WFC | HST | F775W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis06010 | 290.9112348543 | -27.90621726673 | image | Hines, Dean C. | 3 | 56979.505933368055 | 56979.51200949074 | 300.0 | 690.0 | 860.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57344.94012718 | 13863 | GO | -- | POLYGON -69.07205442999998 -27.91834206 -69.072058317717648 -27.918294549551291 -69.070418239999981 -27.91807766 -69.072739870000021 -27.88970302 -69.103821919999973 -27.89381052 -69.103818044368452 -27.893858065783444 -69.105458039999974 -27.89407459 -69.103144859999986 -27.92244975 -69.07205442999998 -27.91834206 -69.07205442999998 -27.91834206 | mast:HST/product/jcis06010_drz.jpg | mast:HST/product/jcis06010_drz.fits | PUBLIC | True | nan | 24839235 | 374073891 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis06020 | 290.9147892768 | -27.90546497065 | image | Hines, Dean C. | 3 | 56979.51550486111 | 56979.66734533565 | 6280.0 | 470.0 | 720.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57344.94447902 | 13863 | GO | -- | POLYGON -69.051552329999993 -27.91547868 -69.051566623053915 -27.915304522529482 -69.048023170000022 -27.91483611 -69.048086300262 -27.914066875478145 -69.045198070000026 -27.91368501 -69.045253211462011 -27.913013321787403 -69.031596869999987 -27.91120688 -69.031681552501226 -27.910176912272057 -69.027714189999983 -27.90965175 -69.02772849552359 -27.909477898544647 -69.024182240000016 -27.90900847 -69.02653583 -27.88039823 -69.057861839999987 -27.88454222 -69.057847539106191 -27.884716718646743 -69.06139399 -27.88518549 -69.06130963442007 -27.88621477953863 -69.065275460000009 -27.88673877 -69.0652204552501 -27.887410472053556 -69.078874509999991 -27.8892136 -69.078813220742 -27.889963190045712 -69.098235400000021 -27.89252561 -69.098220005459254 -27.892714303389873 -69.102038349999987 -27.89321784 -69.099703449999993 -27.92182943 -69.082889846828763 -27.919611642662879 -69.082889340000008 -27.91961784 -69.051552329999993 -27.91547868 -69.051552329999993 -27.91547868 | mast:HST/product/jcis06020_drz.jpg | mast:HST/product/jcis06020_drz.fits | PUBLIC | True | nan | 24839236 | 374073949 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis05020 | 290.5842080034 | -27.96554445143 | image | Hines, Dean C. | 3 | 56978.454278206016 | 56978.60601420139 | 6280.0 | 470.0 | 720.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57343.75185176 | 13863 | GO | -- | POLYGON -69.38324793999999 -27.97644 -69.38325337699672 -27.976084633770142 -69.37975694 -27.975807 -69.379771610697432 -27.974848106719922 -69.376938269999982 -27.97462306 -69.376959271556942 -27.973252682572433 -69.363480320000008 -27.97218126 -69.363499179187144 -27.970960544973902 -69.35957473000002 -27.97064824 -69.35958024246527 -27.970293021520565 -69.35608091 -27.97001454 -69.356525560000023 -27.94135352 -69.388067579999984 -27.94386099 -69.388062164224209 -27.944216860866497 -69.391561589999981 -27.94449469 -69.391543021733554 -27.945714773910108 -69.39546565 -27.94602599 -69.395444888234721 -27.947396421736535 -69.408921220000025 -27.94846475 -69.408906811818213 -27.9494236609726 -69.41173950000001 -27.94964805 -69.411734159831681 -27.950004069145866 -69.415230679999979 -27.95028105 -69.415223505589069 -27.950759354159036 -69.427996080000014 -27.95177004 -69.427990357442667 -27.952155441892863 -69.431772200000012 -27.95245457 -69.431346519999977 -27.98111569 -69.399792699999978 -27.97861726 -69.399798527580231 -27.97823255633358 -69.396016780000025 -27.97793273 -69.39602403128157 -27.97745404126006 -69.38324793999999 -27.97644 -69.38324793999999 -27.97644 | mast:HST/product/jcis05020_drz.jpg | mast:HST/product/jcis05020_drz.fits | PUBLIC | True | nan | 24839234 | 374074014 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis03010 | 280.9542165962 | -30.99542663878 | image | Hines, Dean C. | 3 | 56889.322632372685 | 56889.548465706015 | 9600.0 | 470.0 | 720.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57254.78804398 | 13863 | GO | -- | POLYGON -79.05840738 -31.01316703 -79.026878020000026 -31.00584488 -79.033151780000026 -30.97766767 -79.035392031871083 -30.978188257438966 -79.035550100000023 -30.97747812 -79.042032257876684 -30.978984322746957 -79.04228344 -30.97785538 -79.044393200704519 -30.978345489210106 -79.044542289999981 -30.9776754 -79.0519318160874 -30.979391859188709 -79.052526699999987 -30.97671682 -79.054630711213818 -30.97720541840804 -79.054779619999977 -30.9765358 -79.0610665098948 -30.977995640936911 -79.061717779999981 -30.97506566 -79.0638160189322 -30.975552764251791 -79.063964759999976 -30.97488358 -79.09548675000002 -30.9821973 -79.089230410000027 -31.01037747 -79.087131972414525 -31.009890899345596 -79.086983480000015 -31.01055955 -79.080693324737766 -31.009100920228253 -79.08004225000002 -31.01203134 -79.077938041505035 -31.011543277238278 -79.077789380000013 -31.01221237 -79.070396015373021 -31.010497338548994 -79.06980123 -31.01317303 -79.067691267708852 -31.012683456849597 -79.06754243 -31.013353 -79.061056825969644 -31.011848027080774 -79.060805640000012 -31.0129775 -79.058565179306754 -31.012457479047875 -79.05840738 -31.01316703 -79.05840738 -31.01316703 | mast:HST/product/jcis03010_drz.jpg | mast:HST/product/jcis03010_drz.fits | PUBLIC | True | nan | 24839230 | 374074520 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis04020 | 290.2770693515 | -28.02111499969 | image | Hines, Dean C. | 3 | 56977.45820188658 | 56977.611049039355 | 6280.0 | 470.0 | 720.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57342.94112256 | 13863 | GO | -- | POLYGON -69.68999134 -28.03180292 -69.690000793261078 -28.0314964187349 -69.68653658 -28.03117872 -69.686564584120333 -28.03027073277142 -69.683764119999978 -28.03001384 -69.6838006065022 -28.028831798853574 -69.67044575 -28.02760593 -69.670481996731183 -28.026436279688706 -69.666591489999973 -28.02607881 -69.666601003399478 -28.025772506303237 -69.663133870000024 -28.02545393 -69.664023900000018 -27.99678969 -69.695551850000015 -27.99968392 -69.695542411269713 -27.999990871866526 -69.69900966 -28.0003088 -69.6989737114984 -28.001477839264155 -69.702862620000019 -28.00183422 -69.702826356326327 -28.00301616323647 -69.716178669999977 -28.00423892 -69.716150921131742 -28.005146940581007 -69.718950740000025 -28.00540317 -69.718941361850952 -28.005710310378014 -69.722405690000016 -28.00602736 -69.722395728297926 -28.006353608328851 -69.735389909999981 -28.00754168 -69.7353798073961 -28.007874214140372 -69.739126740000017 -28.00821667 -69.73825566 -28.03688132 -69.70671568 -28.03399601 -69.706725863943035 -28.033664169692418 -69.70297905000001 -28.03332102 -69.702989071877354 -28.032994456845575 -69.68999134 -28.03180292 -69.68999134 -28.03180292 | mast:HST/product/jcis04020_drz.jpg | mast:HST/product/jcis04020_drz.fits | PUBLIC | True | nan | 24839232 | 374852621 |
science | HST | CALACS | ACS/WFC | HST | F775W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis05010 | 290.5806735758 | -27.96626079113 | image | Hines, Dean C. | 3 | 56978.44466003472 | 56978.45073653935 | 300.0 | 690.0 | 860.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57343.70451382 | 13863 | GO | -- | POLYGON -69.403442700000028 -27.97923304 -69.403444700846464 -27.979100547103432 -69.401826809999989 -27.97897202 -69.40225662 -27.95052573 -69.433575589999975 -27.95301089 -69.433573626058035 -27.953143446156233 -69.435191219999979 -27.95327161 -69.43476999 -27.98171799 -69.403442700000028 -27.97923304 -69.403442700000028 -27.97923304 | mast:HST/product/jcis05010_drz.jpg | mast:HST/product/jcis05010_drz.fits | PUBLIC | True | nan | 24839233 | 369035492 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET BEING ORBITED BY THE ROSETTA SPACECRAFT | jcz301010 | 148.6544847864 | 17.89356942054 | image | Hines, Dean C. | 3 | 57305.47050170139 | 57305.49995790509 | 1868.0 | 470.0 | 720.0 | Post-Perihelion Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Continued Support of the Rosetta Mission | 57671.63094901 | 14261 | GO | -- | POLYGON 148.69195443 17.89721012 148.68672841023698 17.898793036618102 148.68699035 17.89940911 148.68079264145175 17.901286131427462 148.68095142 17.9016596 148.65292317 17.91014527 148.65250560953473 17.909162730128802 148.64610927 17.91109857 148.63481426 17.88451419 148.65263308739057 17.879121057787451 148.65263008 17.87911398 148.68065353 17.87062838 148.69195443 17.89721012 148.69195443 17.89721012 | mast:HST/product/jcz301010_drz.jpg | mast:HST/product/jcz301010_drz.fits | PUBLIC | True | nan | 25001890 | 373785052 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET BEING ORBITED BY THE ROSETTA SPACECRAFT | jcz302010 | 149.0210592664 | 17.79521475611 | image | Hines, Dean C. | 3 | 57306.00024725695 | 57306.02970309028 | 1868.0 | 470.0 | 720.0 | Post-Perihelion Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Continued Support of the Rosetta Mission | 57672.2263889 | 14261 | GO | -- | POLYGON 149.05898205 17.79748171 149.05396387760246 17.799381902109118 149.05409679 17.79964078 149.04813166312613 17.801899341627337 149.04814366 17.80192271 149.02083733 17.81225854 149.02015424058055 17.810927544842077 149.01400423 17.81325475 149.00078955 17.78750012 149.02809307 17.77716698 149.02863132569428 17.778215844015303 149.04576215 17.77173013 149.05898205 17.79748171 149.05898205 17.79748171 | mast:HST/product/jcz302010_drz.jpg | mast:HST/product/jcz302010_drz.fits | PUBLIC | True | nan | 25001891 | 369115725 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET BEING ORBITED BY THE ROSETTA SPACECRAFT | jcz303010 | 149.386341824 | 17.6965860963 | image | Hines, Dean C. | 3 | 57306.530825775466 | 57306.56028197917 | 1868.0 | 470.0 | 720.0 | Post-Perihelion Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Continued Support of the Rosetta Mission | 57672.72732635 | 14261 | GO | -- | POLYGON 149.42419008 17.69882864 149.419199178432 17.700727169054169 149.41933345 17.70098796 149.41339666747842 17.703246092045436 149.41340981 17.70327162 149.38611359 17.71365103 149.3854302694572 17.712323331878636 149.37931127 17.71464943 149.36605771 17.68889173 149.39335114 17.67851501 149.39388702876451 17.679556324023046 149.41093132 17.67307379 149.42419008 17.69882864 149.42419008 17.69882864 | mast:HST/product/jcz303010_drz.jpg | mast:HST/product/jcz303010_drz.fits | PUBLIC | True | nan | 25001892 | 373724032 |
science | HST | CALACS | ACS/WFC | HST | F606W | Optical | COMET-67P-CHURYUMOV-GERASIMENK | COMET; COMET-67P-CHURYUMOV-GERASIMENKO WHICH IS THE PRIMARY TARGET FOR ROSETTA SPACECRAFT | jcis01010 | 281.2558788729 | -31.01619293249 | image | Hines, Dean C. | 3 | 56887.26573422454 | 56887.49156755787 | 7200.0 | 470.0 | 720.0 | Imaging Polarimetry of the 67P/Churyumov-Gerasimenko with ACS: Supporting the Rosetta Mission | 57252.60829852 | 13863 | GO | -- | POLYGON -78.756865950000019 -31.03386473 -78.72529176 -31.02670072 -78.731368569999972 -30.9985026 -78.733805750513454 -30.9990559361688 -78.733958120000011 -30.99834869 -78.740986132787157 -30.99994418656815 -78.741227330000015 -30.9988241 -78.743523208857965 -30.999345171906345 -78.743666940000026 -30.9986777 -78.751640936670128 -31.000487279621648 -78.752215089999993 -30.99781954 -78.754505385727953 -30.998339146989291 -78.75464896 -30.99767203 -78.761518775521665 -30.999230471627669 -78.762147550000009 -30.99630741 -78.764432262131379 -30.996825567137762 -78.764575690000015 -30.99615878 -78.796142359999976 -31.00331385 -78.79008367 -31.03151488 -78.787798738721818 -31.030997298944033 -78.787655570000027 -31.0316635 -78.780782261578381 -31.030106426334836 -78.780153620000021 -31.03303019 -78.777863106729612 -31.032511160972405 -78.777719789999992 -31.0331777 -78.769741953915457 -31.031369732821123 -78.76916795 -31.03403788 -78.766871853092809 -31.033517388181245 -78.766728380000018 -31.03418428 -78.759696670679176 -31.032590149820496 -78.759455460000027 -31.03371081 -78.757018048375642 -31.033158086745466 -78.756865950000019 -31.03386473 -78.756865950000019 -31.03386473 | mast:HST/product/jcis01010_drz.jpg | mast:HST/product/jcis01010_drz.fits | PUBLIC | True | nan | 24839228 | 369010069 |
... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... | ... |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL0V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_01_acs_wfc_f606wpol0v_03 | 148.66732409763495 | 17.890361436578964 | image | Hines | 2 | 57305.48654 | 57305.49196 | 467.0 | nan | nan | -- | 57671.63094901 | 14261 | HLA | -- | POLYGON J2000 148.68699020 17.89940760 148.65896120 17.90789540 148.64766000 17.88131330 148.67568530 17.87282710 148.68699020 17.89940760 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_01_acs_wfc_f606wpol0v_03 | -- | PUBLIC | -- | nan | 26004659 | 67971926 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL0V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_01_acs_wfc_f606wpol0v_04 | 148.66128404740527 | 17.89261143672076 | image | Hines | 2 | 57305.47852 | 57305.48394 | 467.0 | nan | nan | -- | 57671.63094901 | 14261 | HLA | -- | POLYGON J2000 148.68095050 17.90165830 148.65292040 17.91014550 148.64161960 17.88356260 148.66964610 17.87507700 148.68095050 17.90165830 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_01_acs_wfc_f606wpol0v_04 | -- | PUBLIC | -- | nan | 26004660 | 67971927 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL60V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_02_acs_wfc_f606wpol60v_01 | 149.0387234255141 | 17.789775192433133 | image | Hines | 2 | 57306.02429 | 57306.02971 | 467.0 | nan | nan | -- | 57672.2263889 | 14261 | HLA | -- | POLYGON J2000 149.03168180 17.80781910 149.01846070 17.78206810 149.04576370 17.77173100 149.05898790 17.79748020 149.03168180 17.80781910 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_02_acs_wfc_f606wpol60v_01 | -- | PUBLIC | -- | nan | 26004661 | 67971928 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL60V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_02_acs_wfc_f606wpol60v_02 | 149.02788342509825 | 17.794214142733026 | image | Hines | 2 | 57306.00826 | 57306.01368 | 467.0 | nan | nan | -- | 57672.2263889 | 14261 | HLA | -- | POLYGON J2000 149.04814860 17.80192050 149.02084030 17.81225830 149.00762000 17.78650570 149.03492520 17.77616980 149.04814860 17.80192050 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_02_acs_wfc_f606wpol60v_02 | -- | PUBLIC | -- | nan | 26004662 | 67971929 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL60V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_02_acs_wfc_f606wpol60v_03 | 149.02105347495342 | 17.795211192797524 | image | Hines | 2 | 57306.00024 | 57306.00566 | 467.0 | nan | nan | -- | 57672.2263889 | 14261 | HLA | -- | POLYGON J2000 149.00078990 17.78750200 149.02809590 17.77716680 149.04131880 17.80291830 149.01400960 17.81325530 149.00078990 17.78750200 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_02_acs_wfc_f606wpol60v_03 | -- | PUBLIC | -- | nan | 26004663 | 67971930 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL60V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_02_acs_wfc_f606wpol60v_04 | 149.03383347531883 | 17.791933192580494 | image | Hines | 2 | 57306.01628 | 57306.0217 | 467.0 | nan | nan | -- | 57672.2263889 | 14261 | HLA | -- | POLYGON J2000 149.02679120 17.80997720 149.01357040 17.78422550 149.04087430 17.77388890 149.05409830 17.79963880 149.02679120 17.80997720 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_02_acs_wfc_f606wpol60v_04 | -- | PUBLIC | -- | nan | 26004664 | 67971931 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL120V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_03_acs_wfc_f606wpol120v_01 | 149.39313343193777 | 17.695584189165338 | image | Hines | 2 | 57306.53884 | 57306.54426 | 467.0 | nan | nan | -- | 57672.72732635 | 14261 | HLA | -- | POLYGON J2000 149.41341280 17.70327040 149.38611500 17.71365150 149.37285580 17.68789590 149.40015050 17.67751650 149.41341280 17.70327040 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_03_acs_wfc_f606wpol120v_01 | -- | PUBLIC | -- | nan | 26004665 | 67971932 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL120V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_03_acs_wfc_f606wpol120v_02 | 149.39905343216378 | 17.69330118900645 | image | Hines | 2 | 57306.54686 | 57306.55228 | 467.0 | nan | nan | -- | 57672.72732635 | 14261 | HLA | -- | POLYGON J2000 149.37877620 17.68561370 149.40606970 17.67523370 149.41933240 17.70098660 149.39203580 17.71136840 149.37877620 17.68561370 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_03_acs_wfc_f606wpol120v_02 | -- | PUBLIC | -- | nan | 26004666 | 67971933 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL120V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_03_acs_wfc_f606wpol120v_03 | 149.38633343179924 | 17.696582189227897 | image | Hines | 2 | 57306.53082 | 57306.53624 | 467.0 | nan | nan | -- | 57672.72732635 | 14261 | HLA | -- | POLYGON J2000 149.37931420 17.71464960 149.36605570 17.68889320 149.39335130 17.67851450 149.40661290 17.70426910 149.37931420 17.71464960 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_03_acs_wfc_f606wpol120v_03 | -- | PUBLIC | -- | nan | 26004667 | 67971934 |
science | HLA | HLA | ACS/WFC | HLA | F606WPOL120V | -- | COMET-67P-CHURYUMOV-GERASIMENK | -- | hst_14261_03_acs_wfc_f606wpol120v_04 | 149.40391343235848 | 17.69114218886538 | image | Hines | 2 | 57306.55487 | 57306.56029 | 467.0 | nan | nan | -- | 57672.72732635 | 14261 | HLA | -- | POLYGON J2000 149.42419210 17.69882700 149.39689650 17.70920930 149.38363650 17.68345530 149.41092900 17.67307470 149.42419210 17.69882700 | https://hla.stsci.edu/cgi-bin/preview.cgi?dataset=hst_14261_03_acs_wfc_f606wpol120v_04 | -- | PUBLIC | -- | nan | 26004668 | 67971935 |
Now that we have our filtered observations, let’s sort the rows of this table based on the t_min
criteria, which refers to the start time of the exposure in MJD.
filtered_observations.sort("t_min")
Now that we’ve sorted our table, let’s construct a basic ephemeris showing the path of our object over time (with t_min
, or exposure start in MJD, as our time component):
ephemeris = Table([filtered_observations["s_ra"],
filtered_observations["s_dec"],
filtered_observations["t_min"]], names=("ra", "dec", "t_min"))
Let’s display the contents of our ephemeris, and use it to generate a plot of the comet’s path:
ephemeris.sort("t_min")
ephemeris
ra | dec | t_min |
---|---|---|
float64 | float64 | float64 |
281.2558788729 | -31.01619293249 | 56887.26573422454 |
281.1070408364967 | -31.006679797131913 | 56888.26101 |
281.1070302812 | -31.0066887554 | 56888.26101200232 |
281.1045408863173 | -31.00650879708346 | 56888.27707 |
281.0975108367455 | -31.006933797314236 | 56888.32419 |
281.0951608865579 | -31.006770747268593 | 56888.34025 |
281.0868808868347 | -31.005851797486205 | 56888.39054 |
281.0845408866453 | -31.005687797434355 | 56888.40661 |
281.0773208868312 | -31.004271747618215 | 56888.4569 |
281.0749808366519 | -31.004106747569107 | 56888.47296 |
... | ... | ... |
149.02105347495342 | 17.795211192797524 | 57306.00024 |
149.0210592664 | 17.79521475611 | 57306.00024725695 |
149.02788342509825 | 17.794214142733026 | 57306.00826 |
149.03383347531883 | 17.791933192580494 | 57306.01628 |
149.0387234255141 | 17.789775192433133 | 57306.02429 |
149.38633343179924 | 17.696582189227897 | 57306.53082 |
149.386341824 | 17.6965860963 | 57306.530825775466 |
149.39313343193777 | 17.695584189165338 | 57306.53884 |
149.39905343216378 | 17.69330118900645 | 57306.54686 |
149.40391343235848 | 17.69114218886538 | 57306.55487 |
plt.figure(figsize=(12,8))
plt.scatter(ephemeris[0:18]['ra'], ephemeris[0:18]['dec'], color='royalblue', s=200, lw=1., edgecolor='k')
plt.xlabel("Right Ascension (deg)", fontsize=20)
plt.ylabel("Declination (deg)", fontsize=20)
plt.title("Sky Coordinates", fontsize=20)
plt.xticks(fontsize=15)
plt.yticks(fontsize=15)
plt.grid()
You can choose to save the ephemeris table in your current working directory by running the cell below:
# Overwriting is not necessary, but prevents this Notebook from failing STScI's automated testing
ephemeris.write('ephemeris-comet67p-cg.csv', format='ascii', overwrite=True)
Resources#
The following is a list of resources that were referenced throughout the tutorial, as well as some additional references that you may find useful:
Citations#
If you use any of astroquery’s tools for published research, please cite the authors. Follow this link for more information about citing astroquery:
About This Notebook#
If you have comments or questions on this notebook, please contact us through the Archive Help Desk e-mail at archive@stsci.edu.
Author: Jenny V. Medina
Keywords: astroquery, wildcards, moving target
Last Updated: Jun 2023