pyhrs:docs

HRSModel

class pyhrs.HRSModel(grating_name='hrs', camera_name='hrdet', slit=2.0, order=83, gamma=None, xbin=1, ybin=1, xpos=0.0, ypos=0.0)[source] [edit on github]

Bases: PySpectrograph.Spectrograph.Spectrograph.Spectrograph

HRSModel is a class that describes the High Resolution Specotrgraph on SALT

Methods Summary

alpha([da]) Return the value of alpha for the spectrograph
beta([db]) Return the value of beta for the spectrograph
get_wavelength(xarr[, gamma]) For a given spectrograph configuration, return the wavelength coordinate associated with a pixel coordinate.
set_camera([name, focallength])
set_collimator([name, focallength])
set_detector([name, geom, xbin, ybin, xpos, ...])
set_grating([name, order])
set_order(order)
set_slit([slitang])
set_telescope([name])

Methods Documentation

alpha(da=0.0)[source] [edit on github]

Return the value of alpha for the spectrograph

beta(db=0)[source] [edit on github]

Return the value of beta for the spectrograph

Beta_o=(1+fA)*(camang)-gratang+beta_o

get_wavelength(xarr, gamma=0.0)[source] [edit on github]

For a given spectrograph configuration, return the wavelength coordinate associated with a pixel coordinate.

xarr: 1-D Array of pixel coordinates gamma: Value of gamma for the row being analyzed

returns an array of wavelengths in mm

set_camera(name='hrdet', focallength=None)[source] [edit on github]
set_collimator(name='hrs', focallength=2000.0)[source] [edit on github]
set_detector(name='hrdet', geom=None, xbin=1, ybin=1, xpos=0, ypos=0)[source] [edit on github]
set_grating(name=None, order=83)[source] [edit on github]
set_order(order)[source] [edit on github]
set_slit(slitang=2.2)[source] [edit on github]
set_telescope(name='SALT')[source] [edit on github]

Page Contents