;***************************************************************************** ; NICST TOOL ; ; Readme file for RC5 Test Part 1. Treat the low gain M13 states seperately. ;***************************************************************************** Extract using the LRV the following files: 27007 ETA_FT_LW_CFPA_HI_RSL, 27009 ETA_FT_SM_CFPA_HI_RSL, 29024 ETP_MF_STOPASSY_BAFF_NZ, 29005 ETP_MF_AO_BLKHD_NX_PZ, 21028 ETP_AP_LW_CCA, 21029 ETP_AP_SM_CCA, 29017 ETP_MF_SCAN_CVTY_BAF_NZ, 29016 ETP_MF_SCAN_CVTY_BAF_PZ, 29014 ETP_MF_SCAN_CAVITY_NX_P, 29011 ETP_MF_TEL_BLKHD_PY, 2006 ETP_BB_6, 22005 ETP_BB_5, 2004 ETP_BB_4, 2003 ETP_BB_3, 22002 ETP_BB_2, 2001 ETP_BB_1, 32021 ETP_SE_HAM_MIRR_T1, 32022 ETP_SE_HAM_MIRR_T2. First place the LRV files in a directory such as ../Hot_plateau/28V/LRV/ and place the relavant .gse files in a directory such as ../Hot_plateau/28V/GSE/. Then dump the raw dn for 200 M band samples in a directory such as ../Hot_plateau/28V/. Also, required is the general_TEB.sav file, which contains general band info, and sav files for RVS, RSR, and xxx_general_coef.sav (xxx=EDU or FU1). ;***************************************************************************** ; General procedure. ;***************************************************************************** 1) RC5_read_LRV_data.pro (backup RC5_read_LRV_data_EDU.pro for the EDU) Reads the LRV files and scan averages the temperatures (converting to K where appropriate). In addition, the slopes of the temperatures over scan and collect are recorded. Use Slope_temp_1 and Slope_temp_3 for SRV0654, std_obc_temp1 and std_obc_temp2 for SRV0095, and T_obc and T_obc_2 for SRV0598. Input: an input file with a path to the raw data and a path for the output data. Output: ...temp..sav file containing T_xxx[collect] (svs, bcs, omm, cfpa, lwasp, and mwasp) and T_xxx[ham,collect] (ham, cav, rta, sh, and obc). slope_temp_1[ham=0 cav=1 rta=2 sh=3 obc=4,ham,collect,a0=1 a1=1], slope_temp_2[cfpa=0 omm=1 lwasp=2 mwasp=3,collect,a0=1 a1=1], slope_temp_3[ham=0 cav=1 rta=2 sh=3 obc=4,ham,a0=1 a1=1], slope_temp_4[cfpa=0 omm=1 lwasp=2 mwasp=3,a0=1 a1=1],slope_temp_5[bcs=0 svs=1,collect,a0=1 a1=1], slope_temp_6[bcs=0 svs=1,collect,a0=1 a1=1], std_obc_temp1[HAM,collect], std_obc_temp1[HAM]), and T_obc_2[scans,ham,collect]. 2) RC5_rad.pro (backup RC5_rad_EDU.pro for the EDU) Reads the temperatures and calculates the radiances based on Planck's radiation law. It then incorporates both the RVS and RSR data to determine the delta radiance for the BCS and OBC. Input: an input file with a path to the raw data and a path for the output data. The input file also contains the paths to sav files for the RVS, EDU instrument coefficients, and RSR. Temperature output from RC5_read_LRV_data.pro. Output: ...rad.sav file containing ncollects, p[bands], rad_BCS[collect,band,HAM,detector,subsample,rsr], rad_OBC[collect,band,HAM,detector,subsample,scan], rad_p1[band,collect,bcs=0 svs=1,rsr], rad_p2[band,HAM,collect,ham=0 rta=1 cav=2 sh=3 obc=4,rsr], rad_p3[band,HAM,collect,scan,ham=0 rta=1 cav=2 sh=3 obc=4,rsr], and rvs[band,subsample,detector,HAM,bcs=0 svs=1]. 3) RC5_dn_3.pro Reads the dumped DN files, background subtracts, scan and frame averages, determines the standard deviations, and calulates the slopes of the data as a function of frames and scans for both EV and OBC DN. The dn and std are calculated three ways: scan and then frame averaged, frame and then scan averaged, and scan + frame averaged (uses a 3 sigma kick out at each step). Input: an input file with a path to the raw data and a path for the output data. Output: ...dn.sav file containing dn(collect,band,HAM,detector,subsample,F->S S->F S+F], std(collect,band,HAM,detector,subsample,F->S S->F S+F], dn_obc(collect,band,HAM,detector,subsample,F->S S->F S+F], std_obc(collect,band,HAM,detector,subsample,F->S S->F S+F], slope1(collect,band,HAM,detector,subsample,scan,a0=1 a1=1], slope2(collect,band,HAM,detector,subsample,a0=1 a1=1], slope1_obc(collect,band,HAM,detector,subsample,scan,a0=1 a1=1], and slope2_obc(collect,band,HAM,detector,subsample,a0=1 a1=1]. 4) RC5_fit_3.pro (backup RC5_fit_3_EDU.pro for the EDU) Takes the rad_BCS and dn generated about and fits this data with AMEOBA (quadratic polynomial -- ifit=0) and POLY_FIT (quadratic and cubic polynomials -- ifit=1 and 2). Includes a gain correction factor and calulates fitting residuals for all three fits with and without the gain correction. Generates fitting coefficients and HAM and subsamples averges them. Also, tests SVS0448 (RRCU) and SVS0595 (RRNL). Input: an input file with a path to the raw data and a path for the output data. Output: ...rg.sav file containing ncollects, rg_1[band,HAM,detector,subsample,a0 a1 a2 a3,ifit,rsr] -- radiometric gain per fit, dL_fit[collect,band,HAM,detector,subsample,ifit,rsr] -- fitting residual per fit, rrcu[band,HAM,detector,subsample,ifit,rsr,sum or quadrature] -- radiometric response characterization uncertainty per fit, and rrnl[band,HAM,detector,subsample,ifit,rsr] -- radiometric response non-linearity per fit. 5) RC5_SNR_NEdT.pro (backup RC5_SNR_NEdT_EDU.pro for the EDU) Calulates the snr from the dn and std, then fits the snr to the rad_BCS radiance using a function (ifit=0) and cubic polynomial (ifit=1). In addition, the fits are redone using gaussian wieghting (1/std). Then the NEdL and NEdT are calulated at each collect. NEdT(T_typ) is also calculated, SRV0053. Input: an input file with a path to the raw data and a path for the output data. Output: ...snr.sav file containing SNR[collect,band,HAM,detector,subsample], snr_1[band,HAM,detector,subsample,coefficients,ifit,not weighted or weighted,rsr], snr_fit[collect,band,HAM,detector,subsample,ifit,not weighted or weighted,rsr] NEdL[collect,b,HAM,detector,subsample,ifit,not weighted or weighted,rsr], NEdT[collect,band,HAM,detector,subsample,ifit,not weighted or weighted,rsr], NEdL_typ[band,HAM,detector,subsample,ifit,not weighted or weighted,rsr], NEdT_typ[band,HAM,detector,subsample,ifit,not weighted or weighted,rsr]. 6) RC5_eff_rad.pro (backup RC5_eff_rad_EDU.pro for the EDU) Calculates the retreived radiance for BCS, the Absolute Radiance Difference (ARD), and the Radiametric Response Uniformity (RRU). SVR0545 uses ARD for M bands, SRV0546 uses ARD for I bands, and SRV0613 uses RRU. Input: an input file with a path to the raw data and a path for the output data. Output: ...eff_rad.sav file containing rad_BCS_ret[collect,band,HAM,detector,subsample,ifit] ARD[collect,band,HAM,detector,subsample,ifit], mean and max ARD over detectors, gain drift corrected ARD and mean, and RCU[collect,band,HAM,subsample,ifit]. 7) RC5_view.pro (backup RC5_view_EDU.pro for the EDU) Plots the dn vs deltaL along with the fits. SRV0466 is shown by the whether or not the points encompass the entire dynamic range for any band. In addition, the fitting residuals are shown for each fit. Then the SNR vs deltaL is graphed along with the fits. The L_min, L_typ, and L_max values are marked on dn and SNR plots. Then the NEdT is plotted vs deltaL. Input: an input file with a path to the raw data and a path for the output data. Output: ...ps file containing the plots mentioned. 8) RC5_view_req.pro Plots the temperature of the OBC vs scan and collect as well as the standard deviation vs collect (SRV0095, SRV0654, and SRV0598). Plots the RRCU and RRNL vs detector (SRV0448 and SRV0595 respectively). The graphs of NEdT at T_typ (SRV0053). The ARD for the I-bands (SRV0546) and M-bands (SRV0545) as well as the RRU (SRV0613) are given. Input: an input file with a path to the raw data and a path for the output data. Output: ...req.ps file containing the plots mentioned. 9) RC5_view_temp.pro Plots all temperatures vs scan and collect. Input: an input file with a path to the raw data and a path for the output data. Output: ...temp.ps file containing the plots mentioned. ;************Misc********* Subroutines: read_dmpd.pro read_dmpd2.pro sig_mean.pro n_collect.pro initial_ham_side.pro Planck.pro Planck_deriv.pro legend.pro set_legend.pro set_multicolor.pro get_avg_2.pro Files that produce .sav files used here: general_data.pro read_rvs.pro read_rsr.pro EDU_general_coef.pro Input file: Input.txt