irfpy.swim.swim_fov

Collection of functions (syntax sugar) of SWIM FoV module.

irfpy.swim.swim_fov.velocity16x16sc()[source]

Returns velocity vector array for SWIM in km/s.

This is the simplest way to get FoV vector corresponding SWIM FOVs. SWIM FOV bins consists of E=16 and D=16 maximumly. The latest calibration value is used.

USAGE:

vel_vecs = velocity16x16sc() # 16x16-element array of irfpy.util.vector3d.Vector3d object. print vel_vecs[5][8] # Shows the velocity vector for E=5 D=8

irfpy.swim.swim_fov.velocity16x16lse(t)[source]

Returns the velocity vector array in LSE frame for SWIM in km/s.

This is the simplest way of getting velocity vector for 16x16 E-D bins for SWIM. The time should be provided as the argument. Format is the one to be supporetd by irfpy.util.utc.convert() method.

@return 16x16 array of the veolocity vector. Order of the loop is [E][D].

USAGE:

vel_vecs = velocity16x16lse(datetime.datetime(2009, 1, 25, 13, 0, 0)) print vel_vecs

Note:

Since this method calles irfpy.cy1orb.pvat.getlsevec() method, the retrieved data is cached in the memory. If you use this method frequently, the stored data mush be cleaned manually by calling irfpy.cy1orb.pvat.clear_cahce() method to prevent the excess use of memory.