Field Search
Rubin observations are grouped into named fields, listed in the DP1 and DP2 observation summaries. These searches let you open a catalog restricted to a single field by name, without looking its coordinates up:
import lsdb
from lsdb_rubin import DP1FieldSearch
catalog = lsdb.open_catalog(dp1_object_path, search_filter=DP1FieldSearch("ECDFS"))
Or use search to filter a catalog you have already opened:
catalog = lsdb.open_catalog(dp1_object_path)
ecdfs = catalog.search(DP1FieldSearch("ECDFS"))
Warning
This is implemented as a cone search, not as an exact footprint.
Rubin publishes a center for each field, but no boundary: fields differ in
their visit strategy, and the field is rotated between visits. The search
returns everything within radius_arcsec of the center, so it may both
include sky with little coverage and cut off real data.
The default radius is two degrees for DP1, and 1.75 degrees for DP2. Pass
radius_arcsec to tighten or widen it:
from lsdb_rubin import DP2FieldSearch
search = DP2FieldSearch("PRAWN", radius_arcsec=3.0 * 3600.0)
Field names are upper-cased before the lookup, so any case works. The
available names are the keys of the FIELDS attribute of each class:
>>> from lsdb_rubin import DP1FieldSearch, DP2FieldSearch
>>> print(", ".join(DP1FieldSearch.FIELDS))
47 TUC, LOW ECLIPTIC LATITUDE, FORNAX DSPH, ECDFS, EDFS, LOW GALACTIC LATITUDE, SEAGULL
>>> print(", ".join(DP2FieldSearch.FIELDS))
ABELL 2764, DESI SV3 R1, M49, PRAWN, TRIFID-LAGOON, NEW HORIZONS,
RUBIN SV 212 -7, RUBIN SV 216 -17, RUBIN SV 225 -40, RUBIN SV 280 -48,
RUBIN SV 300 -41, RUBIN SV 320 -15, DDF ELAIS S1, DDF XMM LSS, DDF ECDFS,
DDF EDFS A, DDF EDFS B, DDF COSMOS
- class DP1FieldSearch(field: str, *, radius_arcsec: float = 7200.0, fine: bool = True)[source]
Filter a catalog to one of the seven Rubin DP1 fields.
- Parameters:
field (str) – Name of the field, one of the keys of
FIELDS. Upper-cased before the lookup, so the case does not matter. The error message of an unknown name also lists the valid ones.radius_arcsec (float (default 7200.0)) – Cone radius in arcseconds, two degrees by default, since it covers every DP1 field.
fine (bool (default True)) – True if points are to be filtered, False if only partitions should be filtered.
Examples
>>> import lsdb >>> from lsdb_rubin import DP1FieldSearch
The available field names are the keys of
FIELDS:>>> print(", ".join(DP1FieldSearch.FIELDS)) 47 TUC, LOW ECLIPTIC LATITUDE, FORNAX DSPH, ECDFS, EDFS, LOW GALACTIC LATITUDE, SEAGULL
>>> search = DP1FieldSearch("ECDFS") >>> search.ra, search.dec, search.radius_arcsec (53.13, -28.1, 7200.0)
Pass it to
lsdb.open_catalog()to filter as the catalog is opened, or tolsdb.catalog.Catalog.search()to filter one you already have:>>> catalog = lsdb.open_catalog(DP1_COLLECTION_PATH, search_filter=search) >>> catalog = lsdb.open_catalog(DP1_COLLECTION_PATH).search(search)
- FIELDS: dict[str, tuple[float, float]] = {'47 TUC': (6.02, -72.08), 'ECDFS': (53.13, -28.1), 'EDFS': (59.1, -48.73), 'FORNAX DSPH': (40.0, -34.45), 'LOW ECLIPTIC LATITUDE': (37.86, 6.98), 'LOW GALACTIC LATITUDE': (95.0, -25.0), 'SEAGULL': (106.23, -10.51)}
The seven DP1 field centers, RA and Dec in degrees.
- class DP2FieldSearch(field: str, *, radius_arcsec: float = 6300.0, fine: bool = True)[source]
Filter a catalog to one of the eighteen Rubin DP2 fields.
Covers both the small field survey areas and the deep drilling fields.
- Parameters:
field (str) – Name of the field, one of the keys of
FIELDS. Upper-cased before the lookup, so the case does not matter. The error message of an unknown name also lists the valid ones.radius_arcsec (float (default 6300.0)) – Cone radius in arcseconds, 1.75 degrees by default (half of the diameter of the LSSTCam field of view). Please note that “small fields” have different shapes, and you may need to adjust this value.
fine (bool (default True)) – True if points are to be filtered, False if only partitions should be filtered.
Examples
>>> import lsdb >>> from lsdb_rubin import DP2FieldSearch
The available field names are the keys of
FIELDS:>>> print(", ".join(DP2FieldSearch.FIELDS)) ABELL 2764, DESI SV3 R1, M49, PRAWN, TRIFID-LAGOON, NEW HORIZONS, RUBIN SV 212 -7, RUBIN SV 216 -17, RUBIN SV 225 -40, RUBIN SV 280 -48, RUBIN SV 300 -41, RUBIN SV 320 -15, DDF ELAIS S1, DDF XMM LSS, DDF ECDFS, DDF EDFS A, DDF EDFS B, DDF COSMOS
>>> search = DP2FieldSearch("DDF COSMOS") >>> search.ra, search.dec, search.radius_arcsec (150.1, 2.1, 6300.0)
Pass it to
lsdb.open_catalog()to filter as the catalog is opened, or tolsdb.catalog.Catalog.search()to filter one you already have:>>> catalog = lsdb.open_catalog(DP2_COLLECTION_PATH, search_filter=search) >>> catalog = lsdb.open_catalog(DP2_COLLECTION_PATH).search(search)
- FIELDS: dict[str, tuple[float, float]] = {'ABELL 2764': (5.5, -49.0), 'DDF COSMOS': (150.1, 2.1), 'DDF ECDFS': (53.0, -28.1), 'DDF EDFS A': (59.2, -49.2), 'DDF EDFS B': (63.2, -47.8), 'DDF ELAIS S1': (9.5, -44.0), 'DDF XMM LSS': (35.6, -4.8), 'DESI SV3 R1': (180.5, -0.3), 'M49': (186.3, 6.9), 'NEW HORIZONS': (289.4, -20.2), 'PRAWN': (253.5, -41.0), 'RUBIN SV 212 -7': (211.7, -7.0), 'RUBIN SV 216 -17': (216.1, -16.7), 'RUBIN SV 225 -40': (225.0, -39.5), 'RUBIN SV 280 -48': (280.1, -48.0), 'RUBIN SV 300 -41': (300.3, -41.0), 'RUBIN SV 320 -15': (320.2, -15.1), 'TRIFID-LAGOON': (271.7, -23.9)}
The twelve DP2 small field and six deep drilling field centers, in degrees.
- class FieldSearch(field: str, *, radius_arcsec: float, fine: bool)[source]
Filter a catalog by a cone about a Rubin field center.
- Parameters:
field (str) – Name of the field, one of the keys of
FIELDS. Upper-cased before the lookup, so the case does not matter. The error message of an unknown name also lists the valid ones.radius_arcsec (float) – Cone radius in arcseconds.
fine (bool) – True if points are to be filtered, False if only partitions should be filtered.
- FIELDS
Field name to
(ra, dec)center in degrees, ICRS.- Type:
dict[str, tuple[float, float]]
- field
The name of the selected field, upper-cased.
- Type:
str
- Raises:
ValueError – If
fieldis not a known field of this data release.
References
Field centers are transcribed from the Rubin data release documentation:
DP1 fields: https://dp1.lsst.io/overview/observations.html#field-centers
DP2 small fields: https://dp2.lsst.io/overview/observations.html#small-fields
DP2 deep drilling fields: https://dp2.lsst.io/overview/observations.html#deep-drilling-fields