scopesim.effects.shifts module

class scopesim.effects.shifts.AtmosphericDispersion(**kwargs)[source]

Bases: Shift3D

Used to generate the wavelength bins based on shifts due to the atmosphere

Doesn’t contain an apply_to function, but provides information through the fov_grid function.

get_table(**kwargs)[source]

Called by the fov_grid method of Shift3D

Returns:
tblastropy.Table

A table with the columns - waves : [um] - dx, dy : [arcsec]

Notes

Success! Returns the same values as: http://gtc-phase2.gtc.iac.es/science/astroweb/atmosRefraction.php

class scopesim.effects.shifts.AtmosphericDispersionCorrection(**kwargs)[source]

Bases: Shift3D

apply_to(fov, **kwargs)[source]
fov_grid(which='shifts', **kwargs)[source]

Returns the edges needed to generate FieldOfViews for an observation

Parameters:
whichstr

[“waveset”, “edges”, “shifts”] where: * waveset - wavelength bin extremes * edges - on sky coordinate edges for each FOV box * shifts - wavelength dependent FOV position offsets

Returns:
wavesetlist

[um] N+1 wavelengths that set edges of N spectral bins

edgeslist of lists

[arcsec] Contains a list of footprint lists

shiftslist of 3 lists

[wave, dx, dy] Contains lists corresponding to the (dx, dy) offset from the optical axis (0, 0) induced for each wavelength in (wave) [um, arcsec, arcsec]

plot()[source]
class scopesim.effects.shifts.Shift3D(**kwargs)[source]

Bases: Effect

apply_to(obj, **kwargs)[source]
fov_grid(which='shifts', **kwargs)[source]

Returns the edges needed to generate FieldOfViews for an observation

Parameters:
whichstr

[“waveset”, “edges”, “shifts”] where: * waveset - wavelength bin extremes * edges - on sky coordinate edges for each FOV box * shifts - wavelength dependent FOV position offsets

Returns:
wavesetlist

[um] N+1 wavelengths that set edges of N spectral bins

edgeslist of lists

[arcsec] Contains a list of footprint lists

shiftslist of 3 lists

[wave, dx, dy] Contains lists corresponding to the (dx, dy) offset from the optical axis (0, 0) induced for each wavelength in (wave) [um, arcsec, arcsec]

get_table(**kwargs)[source]
plot()[source]
scopesim.effects.shifts.atmospheric_refraction(lam, z0=60, temp=0, rel_hum=60, pres=750, lat=-24.5, h=3064)[source]

Compute atmospheric refraction

The function computes the angular difference between the apparent position of a star seen from the ground and its true position.

Parameters:
lamfloat, np.ndarray

[um] wavelength bin centres

z0float, optional

[deg] zenith distance. Default is 60 deg from zenith

tempfloat, optional

[deg C] ground temperature. Default is 0 deg C

rel_humfloat, optional

[%] relative humidity. Default is 60%

presfloat, optional

[millibar] air pressure. Default is 750 mbar

latfloat, optional

[deg] latitude. Default set for Cerro Armazones: 24.5 deg South

hfloat, optional

[m] height above sea level. Default is 3064 m

Returns:
angfloat, np.ndarray

[arcsec] angle between real position and refracted position

References

See Stone 1996 and the review by S. Pedraz - http://www.caha.es/newsletter/news03b/pedraz/newslet.html

scopesim.effects.shifts.get_pixel_border_waves_from_atmo_disp(**kwargs)[source]
Parameters:
kwargs
Returns: