;***************************************************************************** ; NICST TOOL ; ; Readme file for RC1 Test Part 1. M13 low gain portion. ; Version 2: updated portability and output. ; Version 3: included retrieved radiance and SNR as well as plots. ; Version 4: ; Version 5: added truncation of SV and OBC DN to 12 bit and divided delta radiance by rho_rta ; Version 6: updated TMC radiance and transfer from BCS to TMC. ;***************************************************************************** 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/TMC/LRV/, place the relavant .gse files in a directory such as ../Hot_plateau/28V/TMC/GSE/, and place the relavant .adf files in a directory such as ../Hot_plateau/28V/TMC/ADF/. Then dump the raw dn for 100 M band samples in a directory such as ../Hot_plateau/28V/TMC/. Also, required is the general_TEB.2.sav file, which contains general band info and sav files for rvs_xxx.sav, xxx_rsr_xxx.sav, and general_coef_xxx.sav (xxx=F1 or F2). ;***************************************************************************** ; General procedure (low temperature). ;***************************************************************************** 1) rc1_read_LRV.pro Reads the LRV and GSE files and scan averages the temperatures (converting to K where appropriate). In addition, the slopes of the temperatures over scan and collect are recorded. The standard deviation of the OBC thermistors is also calculated. Input: an input file with a path to the raw data and a path for the output data. Output: ...temp.sav file containing temperatures. ...temp.ps file containing plots of all temperatures versus time and scan*collect, as well as versus scan for each collect. In addition, there is a plot of the standard deviation of the OBC thermistors. ...temp.slope.txt file containing those temperatures with a change of 0.05 K over scans or 1 degree over collects. 2) rc1_dn_5.pro Reads the dumped DN files, background subtracts, scan and frame averages, determines the standard deviations, and calculates 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. ...ps files of plots of dn, DN, standard deviation, and slope vs scan or frame. 3) rc1_tmc_rad_1.pro Reads the temperatures and calculates the radiances based on Planck's radiation law. It then incorporates both the RVS, RSR data as well as the TMC emissivity to determine the delta radiance for the TMC high temperature collects. then it determines the effective TMC emissivity for use in the high temperature region. 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, RSR, and temperature output from RC5_read_LRV_data.pro. Output: ...rad.1.sav file containing the transmission of the TMC optics. ;***************************************************************************** ; General procedure (high temperature). ;***************************************************************************** 1) rc1_read_LRV.pro Reads the LRV and GSE files and scan averages the temperatures (converting to K where appropriate). In addition, the slopes of the temperatures over scan and collect are recorded. The standard deviation of the OBC thermistors is also calculated. Input: an input file with a path to the raw data and a path for the output data. Output: ...temp.sav file containing temperatures. ...temp.ps file containing plots of all temperatures versus time and scan*collect, as well as versus scan for each collect. In addition, there is a plot of the standard deviation of the OBC thermistors. ...temp.slope.txt file containing those temperatures with a change of 0.05 K over scans or 1 degree over collects. 2) rc1_dn_5.pro Reads the dumped DN files, background subtracts, scan and frame averages, determines the standard deviations, and calculates 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. ...ps files of plots of dn, DN, standard deviation, and slope vs scan or frame. 3) rc1_tmc_rad_2.pro Reads the temperatures and calculates the radiances based on Planck's radiation law. It then incorporates both the RVS, RSR data as well as the TMC emissivity to determine the delta radiance for the TMC high temperature collects. 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, RSR, and temperature output from RC5_read_LRV_data.pro. Output: ...rad.1.sav file containing radiances. 4) rc1_tmc_fit_2.pro Takes the high temperature rad_TMC and dn generated and fits this data with polynomials at the linear, quadratic, and cubic levels. Fits are conducted for L vs dn (ifit=1-3) and dn vs L (ifit=3-5). Calculates fitting residuals for the fits and RRNL and RRCU. Then cross calibrates. Input: an input file with a path to the raw data and a path for the output data. Output: ...rg.2.sav file containing radiometric coefficients. The following text files: ...rg.txt,...rg.avg.txt,...rg.no_rsr.txt,...rg.avg.no_rsr.txt . 5) rc1_tmc_eff_rad.pro Calculates the retrieved radiance for the 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 retrieved radiance. ...ps file of plots of ARD and RRU vs TMC temperature. 6) rc1_tmc_snr_nedt.pro Calulates the snr from the dn and std, then fits the snr to the rad_BCS radiance using a function (ifit=0) and quadratic polynomial (ifit=1). In addition, the fits are done using Gaussian weighting (1/std). Then the SNR, NEdL, and NEdT are calculated at Ttyp, 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, NEdL, and NEdT. 7) rc1_tmc_view.pro Plots the coefficients as a function of detector. 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 as well as the NEdT at Ttyp vs detector. Plots the RRCU and RRNL vs detector (SRV0448 and SRV0595 respectively). 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. ;************Misc********* Subroutines: read_dmpd_bin.pro sig_mean.pro Planck.pro legend.pro set_legend.pro set_multicolor.pro get_avg_5.pro Files that produce .sav files used here (xxx=F1 or F2): general_data.pro read_rvs_xxx.pro read_rsr_xxx.pro general_coef_xxx.pro Input file: Input.txt