projects/maven/quicklook/
mvn_ngi_read_csv.pro
Routines
Routines from mvn_ngi_read_csv.pro
result = pp2spectrogram(pp, time_range=time_range)
result = mvn_ngi_read_csv(filename, tplot_vars, tplot_spec)
NAME: mvn_ngi_read_csvPURPOSE: Reads an NGIMS csv fileCALLING SEQUENCE: p = mvn_ngi_read_csv(filename)INPUT: filename = the input file name, full path.
Routine details
top source pp2spectrogram
result = pp2spectrogram(pp, time_range=time_range)
Parameters
- pp
Keywords
- time_range
top source mvn_ngi_read_csv
result = mvn_ngi_read_csv(filename, tplot_vars, tplot_spec)
NAME: mvn_ngi_read_csv PURPOSE: Reads an NGIMS csv file CALLING SEQUENCE: p = mvn_ngi_read_csv(filename) INPUT: filename = the input file name, full path. OUTPUT: p = a structure with tags corresponding to the columns in the file tplot_vars = an array of tplot var names, one for each column Currently: TIME, MASS, SCRIPT, COUNTS_PER_SECOND, MODE, CS_FIL1_EMISSION, CS_FIL2_EMISSION, OS_FIL1_EMISSION, OS_FIL2_EMISSION, EM1_VOLTAGE, EM2_VOLTAGE The column names are encoded in the file. tplot_spec = the name of the tplot mass spectrogram variable NOTES: NGIMS CSV file notes (via Mehdi) four operation modes: - csn = closed source neutrals - osnt = open source neutrals thermal (grid at 0 V) - osnb = open source neutrals beam (grid at ~1 V) - osi = open source ion modes are typically combined on a periapsis pass: csn/osnb, csn/osi masses are in amu, modulo 150: - 0 < mass <= 150 --> attenuation factor = 1 - 150 < mass <= 300 --> attenuation factor = 10 - 300 < mass <= 450 --> attenuation factor = 100 masses can come in any order a given mass can be present with multiple attenuation factors Noete that the most recent test file has masses up to the 400's so I assumet aht this is fixed... jmm, 2014-09-22 masses can come with 1-amu resolution or fractional (~0.1-amu) resolution - for fractional resolution, take all masses within 0.5 amu of an integer, and take the peak count rate in that range *** changed to 0.3 amu, for ovelap issues at m= 27, 28 boundary, jmm, 2014-08-20 *** Corrected Rate = Raw Rate * Attenuation Factor * Emission Gain Maybe 3 panels: CSN, OSN, OSI - OSN and OSI can be combined, since they cannot be done simultaneously, but this might be confusing Build up spectrograms one pixel at a time? HISTORY: 2014-07-28, jmm, jimm@ssl.berkeley.edu $LastChangedBy: jimm $ $LastChangedDate: 2014-10-28 10:54:21 -0700 (Tue, 28 Oct 2014) $ $LastChangedRevision: 16057 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/trunk/projects/maven/quicklook/mvn_ngi_read_csv.pro $
Parameters
- filename
- tplot_vars
- tplot_spec
File attributes
Modification date: | Fri Nov 21 06:43:12 2014 |
Lines: | 149 |