;***************************************************************************** ; NICST TOOL ; ; Readme file for RC5 Test Part 2. ;***************************************************************************** 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/OBC/LRV/ and place the relavant .gse files in a directory such as ../Hot_plateau/28V/OBC/GSE/. Then dump the raw dn for the OBC, EV, and SV only in a directory such as ../Hot_plateau/28V/OBC/. 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_OBC_read_LRV_data.pro (backup RC5_OBC_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), T_xxx_2[scans,collect] (svs, bcs, omm, cfpa, lwasp, and mwasp) and T_xxx_2[scans,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_1[6,scans,ham,collect]. 2) RC5_OBC_rad.pro (backup RC5_OBC_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 OBC on a scan by scan basis. 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_OBC_read_LRV_data.pro. Output: ...rad.sav file containing ncollects, p[bannds], rad_OBC_scans[collect,band,HAM,detector,subsample,scans], rad_BCS_scans[collect,band,HAM,detector,subsample,scans], rad_p1[band,collect,bcs=0 svs=1], rad_p3[band,HAM,collect,scans,ham=0 rta=1 cav=2 sh=3 obc=4], and rvs[band,subsample,detector,HAM,bcs=0 svs=1 obc=2]. 3) RC5_OBC_dn_4.pro (backup RC5_OBC_dn_3.pro) Reads the dumped DN files, background subtracts, frame averages, determines the standard deviations, and calulates the slopes of the data as a function of frames 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). The difference between the two versions is that the first labels the first subsample as 1 and the second labels the higher subsample as 1. Input: an input file with a path to the raw data and a path for the output data. Output: ...dn.sav file containing dn_col(collect,band,HAM,detector,subsample,EV=0 SV=1 OBC=2], std_obc(collect,band,HAM,detector,subsample,EV=0 SV=1 OBC=2], slope1(collect,band,HAM,detector,subsample,scan,a0=1 a1=1], and slope1_obc(collect,band,HAM,detector,subsample,scan,a0=1 a1=1]. 4) RC5_OBC_fit_3.pro (backup RC5_OBC_fit_3_EDU.pro for the EDU) Takes the rad_OBC and dn_obc and fits this data with POLY_FIT (linear, quadratic, and cubic polynomials). Fits both dn vs deltaL and deltaL vs dn for both warm-up and cool-down cycles. Generates fitting coefficients. 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,scans,ifit] -- radiometric gain per fit, dL_fit[collect,band,HAM,detector,subsample,scans,ifit] -- fitting residual per fit, rad_OBC_scan_x[collect,band,HAM,detector,subsample,scans/2] -- reformed OBC radiance, dn_x[collect,band,HAM,detector,subsample,scans/2] -- reformed OBC dn. Output files containing gains:...rg.txt, ...rg.scan_avg.txt, and ...rg.det_avg.txt. 5) RC5_OBC_eff_rad.pro (backup RC5_OBC_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_OBC_ret[collect,band,detector,ifit], max_ARD_obc[collect,band,detector,ifit], emiss_OBC[collect,band,ifit] Output files containing gains:...ard.txt. 6) RC5_OBC_SNR_NEdT.pro Calulates the snr from the dn and std, then fits the snr to the rad_OBC radiance using a function for both warm up (ifit=0) and cool down (ifit=1). In addition, the fits are redone using gaussian wieghting (1/std). Then the NEdL and NEdT are calulated at each collect. 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[collect,band,HAM,detector,subsample,scan], snr_coeff[band,HAM,detector,subsample,coefficients,fit type,not weighted or weighted], snr_fit[collect,band,HAM,detector,subsample,scan,fit type,not weighted or weighted], NEdL[collect,b,HAM,detector,subsample,scan,fit type,not weighted or weighted], and NEdT[collect,band,HAM,detector,subsample,scan,fit type,not weighted or weighted]. 7) RC5_view.pro 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. The L_min, L_typ, and L_max values are marked. 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). The ARD for the I-bands (SRV0546) and M-bands (SRV0545). 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. ;************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