drizzle¶
-
image_tools.drizzle.drizzle(tstomap, ts, mapshape, weights=1, weightmap=None)[source] [edit on github]¶ Drizzle a timestream onto a map. Returns the map of the weighted average per pixel of the input timestream. (note that this works for any 1D array with a same-size mapping to an image; I’ve written it with timestreams in mind though)
- tstomap - mapping from timestream -> map. len(tstomap) = len(ts)
- Both tstomap and ts should be one-dimensional, but they’ll be raveled if you don’t do it yourself
- weights - needs to have the same dimensions as ts or be scalar
- (default=1)
- mapshape - [nx,ny] simple 2D map specification. Make sure your map
- includes all points mapped to
You can specify a weightmap to increase efficiency instead of computing it