This page was created by the IDL library routine `mk_html_help2`.

Last modified: Sat Sep 6 18:17:35 2025.

# Directory Listing of Routines

# general/missions/rbsp/efw/rbsp_phasef/file_production

- PHASEF_ADD_ORBIT_NUM_TO_L4
- PHASEF_GEN_L2_E_HIRES_UVW_V02
- PHASEF_GEN_L2_E_SPINFIT_V03
- PHASEF_GEN_L2_EB1_V01
- PHASEF_GEN_L2_ESVY_DESPUN_V03
- PHASEF_GEN_L2_FBK_V02
- PHASEF_GEN_L2_SPEC_V02
- PHASEF_GEN_L3_E_V03
- PHASEF_GEN_L3_E_V03_PATCH1
- PHASEF_GEN_L4_E_V03
- PHASEF_GEN_L4_E_V04
- PHASEF_GET_VALID_RANGE
- PHASEF_READ_DIAG_VAR
- PHASEF_READ_E_HIRES_UVW
- PHASEF_READ_E_SPINFIT_L2
- PHASEF_READ_EFW_HSK
- PHASEF_READ_EFW_QUAL
- PHASEF_READ_ESVY_DESPUN
- PHASEF_READ_ORBIT_NUM
- PHASEF_READ_POS_VAR
- PHASEF_READ_SPINAXIS_GSE
- PHASEF_SAVE_BIAS_CURRENT_TO_FILE
- PHASEF_SAVE_BOOM_PROPERTY_TO_FILE
- PHASEF_SAVE_E_HIRES_UVW_HSK_TO_FILE
- PHASEF_SAVE_E_HIRES_UVW_TO_FILE
- PHASEF_SAVE_E_SPINFIT_L2_TO_FILE
- PHASEF_SAVE_E_SPINFIT_L3_TO_FILE
- PHASEF_SAVE_EFW_QUAL_HIRES_TO_FILE
- PHASEF_SAVE_EFW_QUAL_TO_FILE
- PHASEF_SAVE_ESVY_DESPUN_TO_FILE
- PHASEF_SAVE_FLAGS_ALL_TO_FILE
- PHASEF_SAVE_L_VECTOR_TO_FILE
- PHASEF_SAVE_ORBIT_NUM_TO_FILE
- PHASEF_SAVE_POS_VAR_TO_FILE
- PHASEF_SAVE_POSITION_VAR_TO_FILE
- PHASEF_SAVE_SPINAXIS_GSE_TO_FILE
- RBSP_EFW_PHASEF_UPDATE_FLAGS
- RBSP_EFW_READ_L3_GEN_FILE
- RBSP_EFW_READ_L4
- RBSP_EFW_READ_L4_GEN_FILE
  Generate level-4 EFW CDF files, adopted from rbsp_efw_make_l4

# Routine Descriptions

## PHASEF_ADD_ORBIT_NUM_TO_L4

[Next Routine] [List of Routines]

     Add orbit_num to L4 data.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_add_orbit_num_to_l4.pro)

## PHASEF_GEN_L2_EB1_V01

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 eb1_v01 data.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_eb1_v01.pro)

## PHASEF_GEN_L2_ESVY_DESPUN_V03

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 esvy_despun v03 cdfs.
       v01 and v02 files are not in the same format. v03 cdfs will be in the same format.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_esvy_despun_v03.pro)

## PHASEF_GEN_L2_E_HIRES_UVW_V02

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 e_hires_uvw v02 cdfs.
       v01 files are not in the same format. v02 cdfs will be in the same format.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_e_hires_uvw_v02.pro)

## PHASEF_GEN_L2_E_SPINFIT_V03

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 e_spinfit v03 cdfs.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_e_spinfit_v03.pro)

## PHASEF_GEN_L2_FBK_V02

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 filter bank v02 cdfs.
       v01 files are not in the same format. v02 cdfs will be in the same format.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_fbk_v02.pro)

## PHASEF_GEN_L2_SPEC_V02

[Previous Routine] [Next Routine] [List of Routines]

     Generate L2 spec v02 cdfs.
       v01 files are not in the same format. v02 cdfs will be in the same format.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l2_spec_v02.pro)

## PHASEF_GEN_L3_E_V03

[Previous Routine] [Next Routine] [List of Routines]

     Adopted from rbsp_efw_read_l3_gen_file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l3_e_v03.pro)

## PHASEF_GEN_L3_E_V03_PATCH1

[Previous Routine] [Next Routine] [List of Routines]

     Add used_boom_pair to v03 files.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l3_e_v03_patch1.pro)

## PHASEF_GEN_L4_E_V03

[Previous Routine] [Next Routine] [List of Routines]

     Make some minor changes to v02 files.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l4_e_v03.pro)

## PHASEF_GEN_L4_E_V04

[Previous Routine] [Next Routine] [List of Routines]

     Generate L4 v04 data.
     To replace rbsp_efw_read_l4_gen_file.

     Use the e_spinfit and e_diagonal_spinfit updated on 2021-07-07.
     Use the 25-element flags and have a more explicit structure for the flag system.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_gen_l4_e_v04.pro)

## PHASEF_GET_VALID_RANGE

[Previous Routine] [Next Routine] [List of Routines]

     Return the valid range for certain data_type and probe.

     data_type. A string for the data type.
     probe=probe. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_get_valid_range.pro)

## PHASEF_READ_DIAG_VAR

[Previous Routine] [Next Routine] [List of Routines]

     Read diag related vars.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_diag_var.pro)

## PHASEF_READ_EFW_HSK

[Previous Routine] [Next Routine] [List of Routines]

     Read EFW housekeeping data, including usher, gaurd, ibias.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_efw_hsk.pro)

## PHASEF_READ_EFW_QUAL

[Previous Routine] [Next Routine] [List of Routines]

     Read EFW quality, which is an older version of flags_all.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_efw_qual.pro)

## PHASEF_READ_ESVY_DESPUN

[Previous Routine] [Next Routine] [List of Routines]

     Read esvy_mgse.
     Adopted from rbsp_efw_make_l2_esvy_despun, rbsp_load_efw_esvy_mgse, rbsp_efw_vxb_subtract_crib.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_esvy_despun.pro)

## PHASEF_READ_E_HIRES_UVW

[Previous Routine] [Next Routine] [List of Routines]

     Read e_hires_uvw related vars.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_e_hires_uvw.pro)

## PHASEF_READ_E_SPINFIT_L2

[Previous Routine] [Next Routine] [List of Routines]

     Read e_spinfit related vars.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_e_spinfit_l2.pro)

## PHASEF_READ_ORBIT_NUM

[Previous Routine] [Next Routine] [List of Routines]

     Read orbit number.
     Adopted fromrbsp_read_ect_mag_ephem.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_orbit_num.pro)

## PHASEF_READ_POS_VAR

[Previous Routine] [Next Routine] [List of Routines]

     Read position vars, r_gse, v_gse, mlt, mlat, lshell.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_pos_var.pro)

## PHASEF_READ_SPINAXIS_GSE

[Previous Routine] [Next Routine] [List of Routines]

     Read spinaxis_gse related vars.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_read_spinaxis_gse.pro)

## PHASEF_SAVE_BIAS_CURRENT_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save bias current for a given date to a given CDF.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_bias_current_to_file.pro)

## PHASEF_SAVE_BOOM_PROPERTY_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save boom property to file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_boom_property_to_file.pro)

## PHASEF_SAVE_EFW_QUAL_HIRES_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save efw_qual related vars for a given date to a given CDF.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_efw_qual_hires_to_file.pro)

## PHASEF_SAVE_EFW_QUAL_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save efw_qual related vars for a given date to a given CDF.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_efw_qual_to_file.pro)

## PHASEF_SAVE_ESVY_DESPUN_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save esvy_despun for a given date to a given CDF.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_esvy_despun_to_file.pro)

## PHASEF_SAVE_E_HIRES_UVW_HSK_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save e_hires_hsk related vars for a given date to a given CDF.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_e_hires_uvw_hsk_to_file.pro)

## PHASEF_SAVE_E_HIRES_UVW_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save e_hires_uvw related vars for a given date to a given CDF.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_e_hires_uvw_to_file.pro)

## PHASEF_SAVE_E_SPINFIT_L2_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save e_spinfit_l2 for a given date to a given CDF.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_e_spinfit_l2_to_file.pro)

## PHASEF_SAVE_E_SPINFIT_L3_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save e_spinfit_l3 for a given date to a given CDF.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_e_spinfit_l3_to_file.pro)

## PHASEF_SAVE_FLAGS_ALL_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save flags_all related vars for a given date to a given CDF.
     Adopted from rbsp_efw_make_l2_esvy_uvw.

     date. A string or double (unix time) for the wanted date.
     probe=. A string 'a' or 'b'.
     filename=. A string for the CDF file where data to be saved.
     saved_vars=. Output, the vars saved in the CDF file.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_flags_all_to_file.pro)

## PHASEF_SAVE_L_VECTOR_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save L_vector in GSE.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_l_vector_to_file.pro)

## PHASEF_SAVE_ORBIT_NUM_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save orbit_num.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_orbit_num_to_file.pro)

## PHASEF_SAVE_POSITION_VAR_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save position variables.

     This is used in gen l3 data.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_position_var_to_file.pro)

## PHASEF_SAVE_POS_VAR_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save position variables.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_pos_var_to_file.pro)

## PHASEF_SAVE_SPINAXIS_GSE_TO_FILE

[Previous Routine] [Next Routine] [List of Routines]

     Save spinaxis_gse.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/phasef_save_spinaxis_gse_to_file.pro)

## RBSP_EFW_PHASEF_UPDATE_FLAGS

[Previous Routine] [Next Routine] [List of Routines]

     Update flags for all related data product.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/rbsp_efw_phasef_update_flags.pro)

## RBSP_EFW_READ_L3_GEN_FILE

[Previous Routine] [Next Routine] [List of Routines]

(See general/missions/rbsp/efw/rbsp_phasef/file_production/rbsp_efw_read_l3_gen_file.pro)

## RBSP_EFW_READ_L4

[Previous Routine] [Next Routine] [List of Routines]

     Read L4 data.

     time. The time range in unix time.
     probe=. 'a' or 'b'.
     files=. Output. The files.
     get_file=. Set to just get files, do not read data in files.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/rbsp_efw_read_l4.pro)

## RBSP_EFW_READ_L4_GEN_FILE

[Previous Routine] [List of Routines]

     NAME:
       rbsp_efw_read_l4_gen_file

     PURPOSE:
       Generate level-4 EFW CDF files, adopted from rbsp_efw_make_l4

     CALLING SEQUENCE:
       rbsp_efw_read_l4_gen_file, date, probe=sc

     ARGUMENTS:
       date: IN, REQUIRED
           A date string in format like '2013-02-13'

     KEYWORDS:
       probe=: IN, REQUIRED
           'a' or 'b'
       filename=. In, required. The file name for the CDF file to be saved.
       skeleton_file=. In, optional. By default the skeleton file should be in the same folder of this program.
       density_min=. In, optional. Default is 10 cc.
       errmsg=. Out. The error massege if the program fails.

(See general/missions/rbsp/efw/rbsp_phasef/file_production/rbsp_efw_read_l4_gen_file.pro)