project(star,
view_long=(0,0,0),
view_lat=(pi/2,0,0),
photband='OPEN.BOL',
only_visible=False,
plot_sort=False,
scale_factor=1.)
| source code
|
Project and transform coordinates and vectors to align with the
line-of-sight.
Parameter star should be a record array containing fields
'teff','gravx', 'gravy','gravz','areas','vx','vy','vz'
and either you suply ('r','theta','phi') or ('x','y','z')
The XY direction is then the line-of-sight, and the YZ plane is the
plane of the sky.
An extra column 'projflux' and 'eyeflux' will be added. Projected flux
takes care of limb darkening, and projected surface area. Eye flux only
takes care of limbdarkening, and should only be used for plotting
reasons.
view_long[0] of 0 means looking in the XY line, pi means looking in
the YX line. view_lat[0] of pi/2 means edge on, 0 or pi is pole-on.
This function updates all Cartesian coordinates present in the star,
but not the polar coordinates! The projected fluxes are added as a field
'projflux' to the returned record array.
If you set 'only_visible' to True, only the information on the visible
parts of the star will be contained.
If you set 'plot_sort' to True, the arrays will be returned in a
sorted order, where the areas at the back come first. This is especially
handy for plotting.
- Parameters:
view_long (tuple floats (radians,x,y)) - longitude viewing angle (radians) and coordinate zeropoint
view_lat (tuple floats (radians,x,z)) - inclination viewing angle (radians) and coordinate zeropoint
photband (string) - photometric passband
only_visible (boolean) - flag to return only information on visible surface elements
plot_sort (boolean) - flag to sort the surface elements from back to front
star (numpy record array)
|