Skip to content

Commit 459ed3a

Browse files
committed
Add example of SvoFps.get_filter_metadata usage to docs
1 parent 678b20e commit 459ed3a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/svo_fps/svo_fps.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,22 @@ These are the data needed to plot the transmission curve for filter:
173173

174174
The 2MASS H-band transmission curve
175175

176+
Get metadata for a specific filter
177+
----------------------------------
178+
179+
Given a ``filterID``, a dictionary of metadata associated with that filter can be retrieved
180+
from the FPS using `~astroquery.svo_fps.SvoFpsClass.get_filter_metadata`:
181+
182+
.. doctest-remote-data::
183+
184+
>>> info = SvoFps.get_filter_metadata('PAN-STARRS/PS1.r')
185+
>>> print(info['WavelengthEff'])
186+
6155.4659814728 Angstrom
187+
>>> print(info['FWHM'])
188+
1397.7332085088 Angstrom
189+
>>> print(info['components'])
190+
Filter + Instrument + Atmosphere
191+
176192

177193
Troubleshooting
178194
===============

0 commit comments

Comments
 (0)