pyhrs:docs

create_orderframe

pyhrs.create_orderframe(data, first_order, xc, detect_kernal, smooth_length=15, y_start=0, y_limit=None)[source] [edit on github]

Create an order frame from from an observation.

A one dimensional detect_kernal is correlated with a column in the image. The kernal steps through y-space until a match is made. Once a best fit is found, the order is extracted to include all pixels that are detected to be part of that order. Once all pixels have been extracted, they are set to zero in the original frame. The detection kernal is updated by the new order detected

Parameters:

data: ~numpy.ndarray

An image with the different orders illuminated. Any processing of this image should have been performed prior to running create_orderframe.

first_order: int

The first order to appear in the image starting from the bottom of the image

xc: int

The x-position to extract a 1-D map of the orders

detect_kern: ~numpy.ndarray

The initial detection kernal which have the shape of a single order.

smooth_length: int

The length to smooth the images by prior to processing them

y_start: int

The initial value to start searching for the first maximum

y_limit: int

The limit in y-positions for automatically finding the orders.

Returns:

order_frame: ~numpy.ndarray

An image with each of the order identified by their number

Notes

Currently no orders are extrcted above y_limit and the code still needs to be updated to handle those higher orders

Page Contents