On this page...

Component Overview

The 'Core Search Parameters' section contains the most common search parameters for the selected data collection, which can vary between the different collections. This page overviews the types of search components and how to specify parameter constraints for components that can be found on multiple data collections.

 Parameter Constraint Syntax

There are three categories of search parameters: string (i.e. text), numeric, and datetime. There are thus three slightly different syntaxes when adding additional conditions to a parameter. The specifications outlined below apply equally to core parametersadditional search parameters, and any mission-specific fields.

Hovering over a filter box in the search form will show "tooltips" on using search conditions.


Parameter Constraints: String Fields

How to specify constraints for search components that accept strings: search conditions, valid formats, and some examples.

Search OperationFormatExampleNote
Exact matchabc

Type an exact string into string field boxes such as Dataset ID, Principal Investigator, or Spectral Element ('Names of Filters/Gratings').


This example shows an exact match search for a combination filter set (i.e., a combination of filters delimited by a semicolon ';') used for observations. This is specific to the Filters/Gratings component.


There are many more string field input columns in the Additional Search Parameters section. See more columns by clicking the 'Column Name' filter box.

The Target Descrip column uses "substrings", which means that any text you enter will automatically have wildcards added in front and in back of it, e.g. "jup" is treated as "*jup*", and thus will find descriptions that include "Jupiter" in them.

Wildcard

*ab*c

Strings that include one or more asterisks (*) correspond to a wildcard, where zero or more additional characters can exist between the non-wildcard characters. Asterisks can be placed anywhere in each input string.

Wildcard search does not support type-ahead functionality.

Multiple

abc, def


ab*, def


abc, de*, fg*


Search by multiple strings delimited by a comma (,) which acts as the logical operator 'OR'.  This type of search includes all observations associated with one or more of the input strings in the Search Results Page. Any number of strings delimited by a comma will work.

Make sure not to confuse comma (,) with semicolon (;) for a 'Multiple' search.  

Exclude

!abc


!ab*c


!abc,!def


!ab*,!cd*



An exclamation character (!) in front of a string excludes entries associated with the input string. This 'Exclude' operation can be combined with the 'Multiple' or 'Wildcard' operations, but is applied to the proceeding string only when using a 'Multiple' string search (strings separated by commas).

Example: '!G130M,!G160M,G*' will search for all observations that include a grating that begins with 'G', but excludes any that include the G130M or G160M gratings.  Entering '!G130M,G160M' will apply the logical 'NOT' only to the G130M string, and thus return all observations that include the G160M grating and excludes the G130M grating.

Type aheadcharacter or character string

Start typing a character or characters in each string field search box. The form offers a type-ahead operation in some text boxes, which allows scrolling through a suggested list. Once a string of characters is entered, a list of all available observations that match the input string is displayed. Scroll with the mouse or the scroll bar displayed on the right of the type-ahead menu to browse the options and click to select.

Not all string fields offer this type-ahead search functionality. None of the fields within the 'Additional Columns' section.

Parameter Constraints: Numeric Fields

How to specify constraints for search components that accept numeric data types (integer, float): search conditions, valid formats, and some examples.

Search OperationFormatExampleNote
Exact Number

any number


Type a number (or = a number) on a search condition field to retrieve observations matched with the exact value of the search parameter.

The first example returns observations whose exposure time is exactly 1000 seconds, the second example returns observations with exposure time equal to exactly 14660 seconds.

= any number

Comparison

> number


>= number


< number


<= number


Type a number with simple arithmetic operations (<, >, <=, or >=) to filter the search parameters.

Only observations whose spectral resolving power is larger than or equal to 20000 are returned in this example, where the condition of '>= 20000' is used.

Rangenum1 .. num2

Use the special character expression of two periods (..) between two numeric values (numbers) to specify a range.

This example (in the RA condition box entering 15.0567..17.6709 and in the Dec condition box entering -10.00..5.56) returns only observations whose targets are located between Right Ascension 15.0567 <= RA (degrees) <= 17.6709 AND Declination -10.00 <= Dec (degrees) <= 5.56.

Calculated Range

num1 +- num2


num1 +- num2%

Use the special character expression of +- between two numeric values (numbers) to specify a calculated range.

This example (in the Exp Time condition box entering 400 +- 300 and in the Central Wavelength condition box entering 3000 +- 15%) returns only observations whose targets have an Exposure Time of 100 <= Exp Time <= 700 AND Central Wavelength 2550 <= Central Wavelength <= 3450.

Parameter Constraints: DateTime Fields

How to specify constraints for search components that accept dates or times: search conditions, valid formats, and some examples.

Search OperationFormatExampleNote
Exact date/time

yyyy-mm-dd


yyyy-mm-dd hh:mm:ss

Each condition for Date and Time can be directly typed using a valid format. However, it is not required to add Time constraints to initiate searches.

Another option to filter the Date/Time constraint is using the built-in date calendar and the time clock, as seen in the video clip.

Comparison

> yyyy-mm-dd


>= yyyy-mm-dd


< yyyy-mm-dd


<= yyyy-mm-dd


Type dates with simple arithmetic operations (<, >, <=, or >=) to filter the search. This example returns all observations released on and before October 21, 1999 (1999-10-21).

Range

yyyy-mm-dd
.. yyyy-mm-dd


yyyy-mm-dd hh:mm:ss .. yyyy-mm-dd hh:mm:ss

Use the special character expression (..) between two dates to set the date range. Observations archived between 2010-05-10 and 2010-06-30 will be returned with this example condition.


Examples of Spectral Element Searches

OperationExamplesNote
Exact match

G130M

Type an exact name of the filter, grating, or the combination filter set to retrieve only observations associated with the input string.

Combination filter sets are delimited by a semicolon (;). Remember that combination sets are single strings.

MIRRORA
POL120UV;F330W
F2ND;CLEAR2;F1ND;F372M
Wildcard

G*M

This example retrieves observations that used grating names starting with 'G' and ending with 'M' such as 'G150M' or 'G220M'.

F81*

Since a combination filter set is considered as a single string, the input wildcard characters 'F81*' retrieve all observations associated with the filter 'F814W' and the other ones such as 'F814W;POLQN18 and 'F814W;F791W'.

MultipleG130M, F550W

The 'Multiple' operator (',') acts as the logical operator 'OR'. Thus this example retrieves observations used the grating 'G130M' or the filter 'F550W'.


F550W,POL60UV;PR200L

This example retrieves observations used the filter 'F550W' or the combination filter set 'POL60UV;PR200L'.

Be sure to use the 'Multiple' operator, comma (,) not a semicolon (;) used for appending filters for combination filter set names.

Exclude!F550W

This operation excludes any observations using the filter 'F550W'.

G*,!G140L

This search retrieves observations using all grating options ('G*) except the grating 'G140L'.

Type ahead

Type ahead limitation

Note that this only shows a list of single spectral elements and not combination filter sets.

  • No labels

Data Use | Acknowledgements | DOI | Privacy

Send comments & corrections on this MAST document to: archive@stsci.edu