This page was created by the IDL library routine
mk_html_help2
.
Last modified: Mon Oct 5 16:03:46 2020.
PROCEDURE: mvn_sta_dead_load PURPOSE: Loads dead-time arrays into apid common blocks for science data products, modified 20170919 for high background SEP events KEYWORDS: check: 0,1 if set, prints diagnostic data CREATED BY: J. McFadden VERSION: 1 LAST MODIFICATION: 15/03/02 MOD HISTORY: 14/12/20 changed algorithm to corrected valid events deadtime Deadtime = total(valid*dead,averaged)/total(valid,averaged) where "valid" are the valid events valid(energy,def) is extrapolated from apid c0 and c8 where "dead" is determined by rates dead(energy,def) is extrapolated from apid da and c8 dead calculation also uses apid d8 to determine relative amounts event types (see d1,d2,d3 in code) where "averaged" accounts for averaging over energy or deflection 15/01/17 added mcp droop correction 15/02/25 major modifications to mcp droop correction 17/10/02 major modifications to correctly account for background from SEP events NOTES: Program assumes that "mvn_sta_l0_load" or "mvn_sta_l2_load,/test" has been run Program requires c0,c8,d8,da packets are available at 4 sec cadence Program assumes Apids c2,c4,c6,ca,cd,cf,d3,d4 all have 4 second cadence If at some future date we are forced into slower cadence measurements, then code used for apid cc can be adapted to the above apids. TBDs ef3 should be made anode dependent to account for anode variations in anode rejection early in mission change code so that at attenuator transitions where count rates go below efficiency threshold, that the code will use the nearest attenuated values, not the higher attenuated efficiency. may have to break up the for-loop into 2 for-loops change code to default to anode efficiency based on anode rejection determination change code so that when background is high (as during deep dips from neutral density), the droop eff is properly calculated
(See projects/maven/sta/mvn_sta_programs/mvn_sta_dead_load.pro)
PROCEDURE: MVN_STA_GF_CORR PURPOSE: Computes a corrected g-factor for C0, C6, and C8 data products based on the CA data product. INPUTS: None. KEYWORDS: TPLOT: Makes some tplot variables by using the corrected g-factor. CREATED BY: Takuya Hara on 2018-08-09. LAST MODIFICATION: $LastChangedBy: hara $ $LastChangedDate: 2018-08-20 12:17:17 -0700 (Mon, 20 Aug 2018) $ $LastChangedRevision: 25665 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_gf_corr.pro $
(See projects/maven/sta/mvn_sta_programs/mvn_sta_gf_corr.pro)
PROCEDURE: mvn_sta_l2_gf_update,current_scale=current_scale,gf_scale=gf_scale,gf_old=gf_old PURPOSE: Used to update the geom_factor in data structures based on inflight calibrations, assumes c6 data is loaded for gf_old keyword INPUT: KEYWORDS: gf_scale flt scale factor multiplied by original geom_factor gf_old 0/1 if set will transform geom_factor back to the value estimated at launch, CREATED BY: J. McFadden 2019/04/19 VERSION: 1 LAST MODIFICATION: 2019/04/19 MOD HISTORY: NOTES A minimal gf_scale=1.3 is needed to match LPW fp measurements on 20180531 (-3.0V) with no ion suppression Default gf_scale=1.5 determined from 20190405 transition from fly-Z (-0.3) to fly-Y (-2.0V) to get kk3 = [3.1,2.8,3.0,2.4] combined with LPW waves calibraton on 20190331
(See projects/maven/sta/mvn_sta_programs/mvn_sta_l2_gf_update.pro)
PROCEDURE: mvn_sta_mag_load PURPOSE: Load Magnetometer data and insert values into STATIC common block structures. Also creates tplot variables. USAGE: mvn_sta_mag_load KEYWORDS: frame: Mag data frame of reference (currently STATIC) verbose: Display information. LAST MODIFICATION: $LastChangedBy: cmfowler $ $LastChangedDate: 2019-10-14 09:53:47 -0700 (Mon, 14 Oct 2019) $ $LastChangedRevision: 27848 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_mag_load.pro $ .r /Users/cmfowler/IDL/STATIC_routines/mvn_sta_mag_load/mvn_sta_mag_load_cmf.pro
(See projects/maven/sta/mvn_sta_programs/mvn_sta_mag_load.pro)
PROCEDURE: mvn_sta_mag_load PURPOSE: Load Magnetometer data and insert values into STATIC common block structures. Also creates tplot variables. USAGE: mvn_sta_mag_load KEYWORDS: frame: Mag data frame of reference (currently STATIC) verbose: Display information. LAST MODIFICATION: $LastChangedBy: mcfadden $ $LastChangedDate: 2019-09-17 12:28:36 -0700 (Tue, 17 Sep 2019) $ $LastChangedRevision: 27766 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_mag_load_v2.pro $
(See projects/maven/sta/mvn_sta_programs/mvn_sta_mag_load_v2.pro)
PROCEDURE: mvn_sta_make_c6e PURPOSE: Makes common block structure mvn_c6e (64E-64M) from c6 (32E-64M) and c0 (64E-2M) data products CREATED BY: J. McFadden VERSION: 1 LAST MODIFICATION: 16/04/04 MOD HISTORY: NOTES: The common block can be accessed via mvn_sta_get_c6e.pro to return a single data structure Data structures can be operated on by programs like n_4d.pro, v_4d.pro Or used in conjunction with iterative programs such as get_4dt.pro and get_en_spec4dt.pro
(See projects/maven/sta/mvn_sta_programs/mvn_sta_make_c6e.pro)
PROCEDURE: mvn_sta_make_d1e PURPOSE: Makes common block structure mvn_d1e (64E-64S-8M) from d1 (32E-64S-8M) and c0 (64E-1S-2M) data products CREATED BY: J. McFadden VERSION: 1 LAST MODIFICATION: 16/04/04 MOD HISTORY: NOTES: The common block can be accessed via mvn_sta_get_d1e.pro to return a single data structure Data structures can be operated on by programs like n_4d.pro, v_4d.pro Or used in conjunction with iterative programs such as get_4dt.pro and get_en_spec4dt.pro
(See projects/maven/sta/mvn_sta_programs/mvn_sta_make_d1e.pro)
PROCEDURE: mvn_sta_scpot_load PURPOSE: Loads scpot into static apid common blocks for science data products - only works if scpot is negative KEYWORDS: check: 0,1 if set, prints diagnostic data CREATED BY: J. McFadden 15/01/?? VERSION: 1 LAST MODIFICATION: 16/02/22 MOD HISTORY: NOTES: Program assumes that "mvn_sta_l0_load" or "mvn_sta_l2_load,/test" has been run Program will use some combination of sta, lpw, swe data to estimate scpot Assumption 1 - O2+ ram velocity only valid below 300 km Assumption 2 - low energy cutoff only valid when (Ni>100/cc and alt>180km) or in shadow Assumption 3 - when the above do not apply, s/c potential set to 0V TBDs - scpot is not valid 20151127/1:00UT - why is it invalid? TBD - cutoff keyword forces the use of c0 cutoff for potential - needed if winds impact potential
(See projects/maven/sta/mvn_sta_programs/mvn_sta_scpot_load.pro)
PROCEDURE: mvn_sta_scpot_update PURPOSE: Overwrites STATIC spacecraft potentials with the composite potential from mvn_scpot. Most of this code is taken from mvn_sta_scpot_load. This procedure generally does not affect STATIC- derived potentials in the EUV shadow, since STATIC is the primary source of potentials in this region. It does provide better estimates in other regions, replacing the STATIC-default 0 V with real estimates in many cases. INPUTS: none: All information obtained from and written to common blocks. KEYWORDS: CREATED BY: D. L. Mitchell. LAST MODIFICATION: $LastChangedBy: dmitchell $ $LastChangedDate: 2018-07-31 10:54:21 -0700 (Tue, 31 Jul 2018) $ $LastChangedRevision: 25527 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_scpot_update.pro $
(See projects/maven/sta/mvn_sta_programs/mvn_sta_scpot_update.pro)
FUNCTION: MVN_STA_SC_BINS_INSERT PURPOSE: Insert s/c blockage into new data structure INPUT: orig_dat - data structure containing spacecraft blockage new_dat - new data structure containig data with spacecraft blockage removed OUTPUT: None. KEYWORDS: None. CREATED BY: Roberto Livi on 2015-10-07. VERSION: LAST MODIFICATION: $LastChangedBy: hara $ $LastChangedDate: 2015-11-03 16:35:37 -0800 (Tue, 03 Nov 2015) $ $LastChangedRevision: 19226 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_insert.pro $
(See projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_insert.pro)
:Name: Roberto Livi :Program: MVN_STA_SC_BINS_LOAD :Syntax: IDL> mvn_sta_sc_bins_load, /test_plot1, /test_plot2 :Purpose: Fill MAVEN STATIC common block data with FOV obstruction by the spacecraft. :Params: perc_block: Set this number to the desired percentage of covered area before marking a bin as blocked. :Returns: None. :Keywords: test_plot1: Plots for debugging. test_plot2: More plots for debugging. ssave: Save file for intermediary debugging. rrestore: Restore file for intermediary debugging. verbose: Print out processing status. :Version: $LastChangedBy: jimm $ $LastChangedDate: 2019-10-29 18:09:51 -0700 (Tue, 29 Oct 2019) $ $LastChangedRevision: 27947 $ $URL: svn+ssh://thmsvn@ambrosia.ssl.berkeley.edu/repos/spdsoft/tags/spedas_4_1/projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_load.pro $
(See projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_load.pro)
Inside - Take the dot and cross product of point an nearby vertices to determine whether the point is inside or outisde of box
(See projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_load.pro)
################################################# Main Function #################################################
(See projects/maven/sta/mvn_sta_programs/mvn_sta_sc_bins_load.pro)