projects/themis/spacecraft/fields/
thm_spinfit.pro
procedure: thm_spinfit Purpose: finds spinfits of field data finds A,B, and C fits for each period of data, over the entire day required parameters: var_name_in = tplot variable name containing data to fit keywords: sigma = If set, will cause program to output tplot variable with sigma for each period. npoints = If set, will cause program to output tplot variable with number of points in fit. spinaxis = If set, program will output a tplot variable storing the average over the spin axis dimension for each time period. median = If spinaxis set, program will output a median of each period instead of the average. plane_dim = Tells program which dimension to treat as the plane. 0=x, 1=y, 2=z. Default 0. axis_dim = Tells program which dimension contains axis to average over. Default 0. Will not create a tplot variable unless used with /spinaxis. min_points = Minimum number of points to fit. Default = 5. alpha = A parameter for finding fits. Points outside of sigma*(alpha + beta*i) will be thrown out. Default 1.4. beta = A parameter for finding fits. See above. Default = 0.4 phase_mask_starts = Time to start masking data. Default = 0 phase_mask_ends = Time to stop masking data. Default = -1 sun2sensor = Tells how much to rotate data to align with sun sensor. This defaults to 45 degrees for plane_dim = 1 and 135 degrees for plane_dim = 0 build_efi_var = if set to a valid string, then this will return an EFI-like variable, with Ex set to spinfit_b, and Ey set to spinfit_c, with the name of build_efi_var Example: thm_spinfit,'th?_fg?',/sigma Notes: under construction!! Written by Katherine Ramer $LastChangedBy: kramer $ $LastChangedDate: 2007-06-08 10:10:36 -0700 (Fri June 8, 2007) $ $LastChangedRevision: 0 $ $URL:
Routines
top source thm_spinfit
thm_spinfit, var_name_in, sigma=sigma, npoints=npoints, spinaxis=spinaxis, median=median, plane_dim=plane_dim, axis_dim=axis_dim, min_points=min_points, alpha=alpha, beta=beta, phase_mask_starts=phase_mask_starts, phase_mask_ends=phase_mask_ends, sun2sensor=sun2sensor, build_efi_var=build_efi_var
Parameters
- var_name_in
Keywords
- sigma
- npoints
- spinaxis
- median
- plane_dim
- axis_dim
- min_points
- alpha
- beta
- phase_mask_starts
- phase_mask_ends
- sun2sensor
- build_efi_var
File attributes
Modification date: | Thu Feb 13 16:42:38 2014 |
Lines: | 85 |