-
Joe Taylor authoredJoe Taylor authored
convert_anc_to_structs.m 3.95 KiB
function [ICT_Param,RU,nonlin,polcorr_param] = convert_anc_to_structs(nc_struct);
%
% function [ICT_Param,RU,nonlin,polcorr_param] = convert_anc_to_structs(nc_struct);
%
% This function converts the contents from the CrIS L1b RU ancillary file
% to ICT_Param, RU, nonlin, and polcorr structures for use in the RU calculations
%
% Input
% nc_struct structure of vars read from CrIS L1b RU ancillary file
%
% Output
% ICT_Param ICT ancillary parameters [struct]
% RU Radiometric Uncertainty ancillary parameters [struct]
% nonlin nonlinearity corretion ancillary parameters [struct]
% polcorr_param polarization correction ancillary parameters [struct]
%
% JKT 2021-Aug-26
% University of Wisconsin-Madison Space Science and Engineering Center (UW-SSEC)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
ICT_Param.Earth_Temperature = nc_struct.ICT_Param_Earth_Temperature;
ICT_Param.lw_ICT_wnum = nc_struct.wnum_lw;
ICT_Param.lw_ICT_emiss = nc_struct.ICT_Param_lw_ICT_emiss;
ICT_Param.lw_ICT_Baffle_emiss = nc_struct.ICT_Param_lw_ICT_Baffle_emiss;
ICT_Param.lw_Housing_emiss = nc_struct.ICT_Param_lw_Housing_emiss;
ICT_Param.lw_ScanBaffle_emiss = nc_struct.ICT_Param_lw_ScanBaffle_emiss;
ICT_Param.lw_ScanMirror_emiss = nc_struct.ICT_Param_lw_ScanMirror_emiss;
ICT_Param.lw_Earth_emiss = nc_struct.ICT_Param_lw_Earth_emiss;
ICT_Param.mw_ICT_wnum = nc_struct.wnum_mw;
ICT_Param.mw_ICT_emiss = nc_struct.ICT_Param_mw_ICT_emiss;
ICT_Param.mw_ICT_Baffle_emiss = nc_struct.ICT_Param_mw_ICT_Baffle_emiss;
ICT_Param.mw_Housing_emiss = nc_struct.ICT_Param_mw_Housing_emiss;
ICT_Param.mw_ScanBaffle_emiss = nc_struct.ICT_Param_mw_ScanBaffle_emiss;
ICT_Param.mw_ScanMirror_emiss = nc_struct.ICT_Param_mw_ScanMirror_emiss;
ICT_Param.mw_Earth_emiss = nc_struct.ICT_Param_mw_Earth_emiss;
ICT_Param.sw_ICT_wnum = nc_struct.wnum_sw;
ICT_Param.sw_ICT_emiss = nc_struct.ICT_Param_sw_ICT_emiss;
ICT_Param.sw_ICT_Baffle_emiss = nc_struct.ICT_Param_sw_ICT_Baffle_emiss;
ICT_Param.sw_Housing_emiss = nc_struct.ICT_Param_sw_Housing_emiss;
ICT_Param.sw_ScanBaffle_emiss = nc_struct.ICT_Param_sw_ScanBaffle_emiss;
ICT_Param.sw_ScanMirror_emiss = nc_struct.ICT_Param_sw_ScanMirror_emiss;
ICT_Param.sw_Earth_emiss = nc_struct.ICT_Param_sw_Earth_emiss;
ICT_Param.View_Factor.Space = nc_struct.ICT_Param_A_Space;
ICT_Param.View_Factor.BeamSplitterCold = nc_struct.ICT_Param_A_BeamSplitterCold;
ICT_Param.View_Factor.BeamSplitterWarm = nc_struct.ICT_Param_A_BeamSplitterWarm;
ICT_Param.View_Factor.OMAandFrame = nc_struct.ICT_Param_A_OMAandFrame;
ICT_Param.View_Factor.ICTBaffle = nc_struct.ICT_Param_A_ICTBaffle;
ICT_Param.View_Factor.ScanBaffle = nc_struct.ICT_Param_A_ScanBaffle;
RU.dT_ict = nc_struct.RU_dT_ict;
RU.de_ict = nc_struct.RU_de_ict;
RU.dT_ict_ref_meas = nc_struct.RU_dT_ict_ref_meas;
RU.dT_ict_ref_model = nc_struct.RU_dT_ict_ref_model;
RU.dprpt = nc_struct.RU_dprpt;
RU.dalpha = nc_struct.RU_dalpha;
RU.lw_da2 = nc_struct.RU_lw_da2;
RU.mw_da2 = nc_struct.RU_mw_da2;
RU.sw_da2 = nc_struct.RU_sw_da2;
nonlin.lw_a2 = nc_struct.nonlin_lw_a2;
nonlin.mw_a2 = nc_struct.nonlin_mw_a2;
nonlin.sw_a2 = nc_struct.nonlin_sw_a2;
polcorr_param.delta_SSM = nc_struct.polcorr_delta_SSM;
polcorr_param.lw_wn = repmat(nc_struct.wnum_lw(:),1,9);
polcorr_param.lw_prpt = nc_struct.polcorr_lw_prpt;
polcorr_param.lw_alph = nc_struct.polcorr_lw_alph;
polcorr_param.lw_delta_cbb = nc_struct.polcorr_delta_cbb;
polcorr_param.lw_delta_hbb = nc_struct.polcorr_delta_hbb;
polcorr_param.mw_wn = repmat(nc_struct.wnum_mw(:),1,9);
polcorr_param.mw_prpt = nc_struct.polcorr_mw_prpt;
polcorr_param.mw_alph = nc_struct.polcorr_mw_alph;
polcorr_param.mw_delta_cbb = nc_struct.polcorr_delta_cbb;
polcorr_param.mw_delta_hbb = nc_struct.polcorr_delta_hbb;
polcorr_param.sw_wn = repmat(nc_struct.wnum_sw,1,9);
polcorr_param.sw_prpt = nc_struct.polcorr_sw_prpt;
polcorr_param.sw_alph = nc_struct.polcorr_sw_alph;
polcorr_param.sw_delta_cbb = nc_struct.polcorr_delta_cbb;
polcorr_param.sw_delta_hbb = nc_struct.polcorr_delta_hbb;
return