Skip to content

Commit 48d3202

Browse files
committed
more docstrings
1 parent 7280b6e commit 48d3202

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

irf/exposure_map.py

+12-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ def estimate_exposure_time(timestamps):
2727

2828
@u.quantity_input(ra=u.hourangle, dec=u.deg, fov=u.deg)
2929
def build_exposure_regions(pointing_coords, fov=4.5 * u.deg):
30+
'''
31+
Takes a list of pointing positions and a field of view and returns
32+
the unique pointing positions and the astropy.regions.
33+
34+
For an observation with N wobble positions this will return N unique
35+
pointing positions and N circular regions.
36+
'''
3037
unique_pointing_positions = SkyCoord(
3138
ra=np.unique(pointing_coords.ra),
3239
dec=np.unique(pointing_coords.dec)
@@ -57,7 +64,11 @@ def _build_standard_wcs(image_center, shape, naxis=2, fov=9 * u.deg):
5764

5865
@u.quantity_input(event_ra=u.hourangle, event_dec=u.deg, fov=u.deg)
5966
def build_exposure_map(pointing_coords, event_time, fov=4.5 * u.deg, wcs=None, shape=(1000, 1000)):
60-
67+
'''
68+
Takes pointing coordinates for each event and the corresponding timestamp.
69+
Returns a masked array containing the estimated exposure time in hours
70+
and a WCS object so the mask can be plotted.
71+
'''
6172
if not wcs:
6273
image_center = SkyCoord(ra=pointing_coords.ra.mean(), dec=pointing_coords.dec.mean())
6374
wcs = _build_standard_wcs(image_center, shape, fov=2 * fov)

0 commit comments

Comments
 (0)