LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
Loading...
Searching...
No Matches
Functions | Variables
lsst.obs.decam.makeTransmissionCurves Namespace Reference

Functions

 getDESAtmosphereTransmission ()
 
 getDESSystemTransmission ()
 

Variables

 DATA_DIR = os.path.join(getPackageDir("obs_decam_data"), "decam", "transmission_curves")
 
str DECAM_BEGIN = "2012-09-12"
 

Function Documentation

◆ getDESAtmosphereTransmission()

lsst.obs.decam.makeTransmissionCurves.getDESAtmosphereTransmission ( )
Return a dictionary of TransmissionCurves describing the atmospheric
throughput at CTIO.

Dictionary keys are string dates (YYYY-MM-DD) indicating the beginning of
the validity period for the curve stored as the associated dictionary
value.  The curve is guaranteed not to be spatially-varying.

Definition at line 37 of file makeTransmissionCurves.py.

37def getDESAtmosphereTransmission():
38 """Return a dictionary of TransmissionCurves describing the atmospheric
39 throughput at CTIO.
40
41 Dictionary keys are string dates (YYYY-MM-DD) indicating the beginning of
42 the validity period for the curve stored as the associated dictionary
43 value. The curve is guaranteed not to be spatially-varying.
44 """
45 table = astropy.io.fits.getdata(os.path.join(DATA_DIR, "des", "des_atm_std.fits"))
46
47 atm = TransmissionCurve.makeSpatiallyConstant(
48 throughput=table["throughput_atm"].astype(np.float64),
49 wavelengths=table["lambda"].astype(np.float64),
50 throughputAtMin=table["throughput_atm"][0],
51 throughputAtMax=table["throughput_atm"][-1],
52 )
53
54 return {DECAM_BEGIN: atm}
55
56

◆ getDESSystemTransmission()

lsst.obs.decam.makeTransmissionCurves.getDESSystemTransmission ( )
Return a nested dictionary of TransmissionCurves describing the
system throughput (optics + filter + detector) at the location of
each detector.

Outer dictionary keys are string dates (YYYY-MM-DD).  The next level
dictionary maps the physical filter name to another dict.  The inner
dict is keyed by detector number.

Definition at line 57 of file makeTransmissionCurves.py.

57def getDESSystemTransmission():
58 """Return a nested dictionary of TransmissionCurves describing the
59 system throughput (optics + filter + detector) at the location of
60 each detector.
61
62 Outer dictionary keys are string dates (YYYY-MM-DD). The next level
63 dictionary maps the physical filter name to another dict. The inner
64 dict is keyed by detector number.
65 """
66 # We have DES detector throughputs for the grizy bands.
67
68 bands = ["g", "r", "i", "z", "Y"]
69
70 filter_dict = {}
71 for band in bands:
72 for filter_def in DECAM_FILTER_DEFINITIONS:
73 if band == filter_def.band:
74 physical_filter = filter_def.physical_filter
75 break
76
77 table = astropy.io.fits.getdata(
78 os.path.join(DATA_DIR, "des", f"{band}_band_per_detector_throughput.fits"),
79 )
80
81 detector_dict = {}
82 for index in range(table['throughput_ccd'].shape[1]):
83 # The DECam detector starts at 1.
84 detector = index + 1
85
86 tput = TransmissionCurve.makeSpatiallyConstant(
87 throughput=table["throughput_ccd"][:, index].astype(np.float64),
88 wavelengths=table["lambda"].astype(np.float64),
89 throughputAtMin=0.0,
90 throughputAtMax=0.0,
91 )
92
93 detector_dict[detector] = tput
94
95 filter_dict[physical_filter] = detector_dict
96
97 return {DECAM_BEGIN: filter_dict}

Variable Documentation

◆ DATA_DIR

lsst.obs.decam.makeTransmissionCurves.DATA_DIR = os.path.join(getPackageDir("obs_decam_data"), "decam", "transmission_curves")

Definition at line 32 of file makeTransmissionCurves.py.

◆ DECAM_BEGIN

str lsst.obs.decam.makeTransmissionCurves.DECAM_BEGIN = "2012-09-12"

Definition at line 34 of file makeTransmissionCurves.py.