tsadar.utils.data_handling.load_ts_data#
Functions
|
This function loads the appropriate data based off the provided shot number (sNum) automatically determining the |
- tsadar.utils.data_handling.load_ts_data.loadData(sNum, sDay, loadspecs, custom_path=False)Source#
This function loads the appropriate data based off the provided shot number (sNum) automatically determining the type of data in the file. The flag sDay changes the default path to the temporary archive on the redwood server and will only work if connected to the LLE redwood server (depreciated).
If the data is time resolved an attempt will be made to locate t=0 based off the fiducials. The relationship between the fiducials and t=0 should be fixed, with the data potentialy moving if delay is added to the probe.
- Known Issues:
If there are mutliple data types from the same shot number such as ATS and imaging data, this algorithm will fail. This only works for OMEGA data and will need to be reworked for non-OMEGA data.
- Args:
sNum: Shot number sDay: N/A loadspecs: Dictionary containing the options of which spectra should be loaded, sub-dictionary of the input
deck
- eDat, iDat, xlab, t0, specType
- Returns:
eDat: electron data iDat: ion data xlab: x-axis label, one of the following: Radius, Time, Angle t0: pixel location of t0 in the ion and electron data, defaults to 0 if no fiducials are found