LSST Applications g0265f82a02+093ff98f47,g02d81e74bb+3975d4ac1c,g2079a07aa2+14824f138e,g2bbee38e9b+093ff98f47,g337abbeb29+093ff98f47,g3ddfee87b4+626790451e,g3e7165581c+1687b54203,g487adcacf7+018f045a06,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g568d43a26c+02eca3db7e,g591dd9f2cf+3cba9d5141,g858d7b2824+3975d4ac1c,g8a8a8dda67+a6fc98d2e7,g8cdfe0ae6a+66d966b544,g99cad8db69+948283481e,g9ddcbc5298+d4bad12328,ga1e77700b3+246acaaf9c,ga2e4dd1c03+626790451e,ga8c6da7877+c38891e457,gae46bcf261+093ff98f47,gb0e22166c9+3863383f4c,gba4ed39666+9664299f35,gbb8dafda3b+dce3423368,gbeb006f7da+65b42827f3,gbf5cecdb8a+3975d4ac1c,gc0f3af6251+39f4c7265c,gc120e1dc64+1d31f3ee8b,gc28159a63d+093ff98f47,gcf0d15dbbd+626790451e,gd2a12a3803+bbf96b9899,gdaeeff99f8+a38ce5ea23,ge79ae78c31+093ff98f47,gee10cc3b42+a6fc98d2e7,gf1cff7945b+3975d4ac1c,v24.1.5.rc1
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
lsst.pipe.tasks.functors.Ebv Class Reference
Inheritance diagram for lsst.pipe.tasks.functors.Ebv:
lsst.pipe.tasks.functors.Functor

Public Member Functions

 __init__ (self, **kwargs)
 

Public Attributes

 sfd
 

Static Public Attributes

str name = "E(B-V)"
 
str shortname = "ebv"
 

Protected Member Functions

 _func (self, df)
 

Protected Attributes

 _columns
 

Static Protected Attributes

str _defaultDataset = 'ref'
 

Detailed Description

Compute E(B-V) from dustmaps.sfd.

Definition at line 1815 of file functors.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.pipe.tasks.functors.Ebv.__init__ ( self,
** kwargs )

Reimplemented from lsst.pipe.tasks.functors.Functor.

Definition at line 1821 of file functors.py.

1821 def __init__(self, **kwargs):
1822 # Import is only needed for Ebv.
1823 from dustmaps.sfd import SFDQuery
1824 self._columns = ['coord_ra', 'coord_dec']
1825 self.sfd = SFDQuery()
1826 super().__init__(**kwargs)
1827

Member Function Documentation

◆ _func()

lsst.pipe.tasks.functors.Ebv._func ( self,
df )
protected

Reimplemented from lsst.pipe.tasks.functors.Functor.

Definition at line 1828 of file functors.py.

1828 def _func(self, df):
1829 coords = SkyCoord(df['coord_ra'].values * u.rad, df['coord_dec'].values * u.rad)
1830 ebv = self.sfd(coords)
1831 # Double precision unnecessary scientifically but currently needed for
1832 # ingest to qserv.
1833 return pd.Series(ebv, index=df.index).astype('float64')

Member Data Documentation

◆ _columns

lsst.pipe.tasks.functors.Ebv._columns
protected

Definition at line 1824 of file functors.py.

◆ _defaultDataset

str lsst.pipe.tasks.functors.Ebv._defaultDataset = 'ref'
staticprotected

Definition at line 1817 of file functors.py.

◆ name

str lsst.pipe.tasks.functors.Ebv.name = "E(B-V)"
static

Definition at line 1818 of file functors.py.

◆ sfd

lsst.pipe.tasks.functors.Ebv.sfd

Definition at line 1825 of file functors.py.

◆ shortname

str lsst.pipe.tasks.functors.Ebv.shortname = "ebv"
static

Definition at line 1819 of file functors.py.


The documentation for this class was generated from the following file: