get_spiral_slice¶
- whampy.get_spiral_slice(survey, track=None, filename=None, brange=None, lrange=None, interpolate=True, wrap_at_180=False, vel_width=None, return_track=False)[source]¶
Returns SkySurvey object isolated to velocity ranges corresponding to specified spiral arm
- Parameters:
- survey: ‘whampy.skySurvey’
input skySurvey
- track: ‘np.ndarray’, ‘str’, optional, must be keyword
if ‘numpy array’, lbv_RBD track data if ‘str’, name of spiral arm from Reid et al. (2016)
- filename: ‘str’, optional, must be keyword
filename of track file to read in using whampy.lbvTracks.get_lbv_track
- brange: ‘list’, ‘u.Quantity’
min,max latitude to restrict data to Default of +/- 40 deg
- lrange: ‘list’, ‘u.Quantity’
min,max longitude to restrict data to Default of full track extent
- interpolate: ‘bool’, optional, must be keyword
if True, interpolates velocity to coordinate of pointings if False, … do nothing … for now
Future: slices have velocities set by track
- wrap_at_180: `bool`, optional, must be keyword
if True, wraps longitude angles at 180d use if mapping accross Galactic Center
- vel_width: `number`, `u.Quantity`, optional, must be keyword
velocity width to isolate in km/s
- return_track: `bool`, optional, must be keyword
if True, will also return the spiral arm track as the second element of a tuple