public class LSpec
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
DIR_BOTH
include both sweeps
|
static int |
DIR_INWARD
just the inward sweeps
|
static int |
DIR_OUTWARD
just the outward sweeps
|
static java.lang.String |
USER_PROP_SWEEPS
identifies the sweep of each record
|
Modifier and Type | Method and Description |
---|---|
static QDataSet |
identifySweeps(QDataSet lds,
int dir)
identify monotonically increasing or decreasing segments of the dataset.
|
static QDataSet |
rebin(QDataSet tlz,
QDataSet lgrid,
int dir)
alternate, convenient interface which where tlz is a bundle of buckshot data (T,L,Z)
|
static QDataSet |
rebin(QDataSet lds,
QDataSet zds,
QDataSet lgrid)
rebin the datasets to rank 2 dataset ( time, LShell ), by interpolating along sweeps.
|
static QDataSet |
rebin(QDataSet lds,
QDataSet zds,
QDataSet lgrid,
int dir)
rebin the datasets to rank 2 dataset ( time, LShell ), by interpolating along sweeps.
|
static QDataSet |
rebin(QDataSet tt,
QDataSet lds,
QDataSet zds,
QDataSet tspace,
QDataSet lgrid,
int dir)
alternate algorithm following Brian Larson's algorithm that rebin the datasets to rank 2 dataset ( time, LShell ), by
interpolating along sweeps.
|
public static final java.lang.String USER_PROP_SWEEPS
public static int DIR_INWARD
public static int DIR_OUTWARD
public static int DIR_BOTH
public static QDataSet identifySweeps(QDataSet lds, int dir)
lds
- the dataset which sweeps back and forth, such as LShell or MagLat (or a sine wave for testing).dir
- 0=both 1=outward 2= inwardpublic static QDataSet rebin(QDataSet lds, QDataSet zds, QDataSet lgrid)
lds
- rank 1 dataset of length Nzds
- rank 1 dataset of length N, indexed along with lds
lgrid
- rank 1 dataset indicating the dim 1 tags for the result dataset.lgrid
public static QDataSet rebin(QDataSet tlz, QDataSet lgrid, int dir)
tlz
- x,y,z (T,L,Z) bundle of Z values collected along inward and outward sweeps of L in time.lgrid
- desired uniform grid of L values.dir
- =1 increasing (outward) only, =-1 decreasing (inward) only, 0 both.lgrid
public static QDataSet rebin(QDataSet tt, QDataSet lds, QDataSet zds, QDataSet tspace, QDataSet lgrid, int dir)
lds
- The L values corresponding to y axis position, which should be a function of time.tt
- The Time values corresponding to x axis position. If null, then use lds.property(QDataSet.DEPEND_0).zds
- the Z values corresponding to the parameter we wish to organizetspace
- rank 0 cadence, such as dataset('9 hr')lgrid
- rank 1 data is the grid points, such as linspace( 2.,8.,30 )dir
- =1 increasing (outward) only, =-1 decreasing (inward) only, 0 bothlgrid
public static QDataSet rebin(QDataSet lds, QDataSet zds, QDataSet lgrid, int dir)
lds
- rank 1 dataset of length Nzds
- rank 1 dataset of length N, indexed along with lds
lgrid
- rank 1 dataset indicating the dim 1 tags for the result dataset.dir
- =1 increasing (outward) only, =-1 decreasing (inward) only, 0 bothlgrid