pro append_5minfiles_write_abbrev, fname ; this routine writes the radiative properties at only 0.5 microns and 11 microns. common cldmicro_output, iwc_out, re_ice_out, icemicro_error, iwc_source, ice_size_source, ice_tau_solar, $ ice_omega_solar, ice_g_solar,ice_tau_ir, ice_omega_ir,ice_g_ir,ice_rad_param_source, lwc_out, re_liq_out, liqmicro_error, $ lwc_source, liq_size_source, liq_tau_solar, liq_omega_solar, liq_g_solar, liq_tau_ir, liq_omega_ir, $ liq_g_ir,liq_rad_param_source, ice_fraction, rap_solar_wl, rap_ir_wl if n_elements(where(iwc_out eq -9999.)) gt 1 then iwc_out[where(iwc_out eq -9999.)]=9.e-9 if n_elements(where(iwc_out eq -8888.)) gt 1 then iwc_out[where(iwc_out eq -8888.)]=8.e-8 if n_elements(where(iwc_out le 0.)) gt 1 then iwc_out[where(iwc_out le 0.)]=9.e-9 if n_elements(where(re_ice_out eq -9999.)) gt 1 then re_ice_out[where(re_ice_out eq -9999.)]=9.e-9 if n_elements(where(re_ice_out eq -8888.)) gt 1 then re_ice_out[where(re_ice_out eq -8888.)]=8.e-8 if n_elements(where(re_ice_out le 0.)) gt 1 then re_ice_out[where(re_ice_out le 0.)]=9.e-9 if n_elements(where(icemicro_error eq -9999.)) gt 1 then icemicro_error[where(icemicro_error eq -9999.)]=9.e-9 if n_elements(where(icemicro_error eq -8888.)) gt 1 then icemicro_error[where(icemicro_error eq -8888.)]=8.e-8 if n_elements(where(icemicro_error le 0.)) gt 1 then icemicro_error[where(icemicro_error le 0.)]=9.e-9 if n_elements(where(ice_tau_solar eq -9999.)) gt 1 then ice_tau_solar[where(ice_tau_solar eq -9999.)]=9.e-9 if n_elements(where(ice_tau_solar eq -8888.)) gt 1 then ice_tau_solar[where(ice_tau_solar eq -8888.)]=8.e-8 if n_elements(where(ice_tau_solar le 0.)) gt 1 then ice_tau_solar[where(ice_tau_solar le 0.)]=9.e-9 if n_elements(where(ice_omega_solar eq -9999.)) gt 1 then ice_omega_solar[where(ice_omega_solar eq -9999.)]=9.e-9 if n_elements(where(ice_omega_solar eq -8888.)) gt 1 then ice_omega_solar[where(ice_omega_solar eq -8888.)]=8.e-8 if n_elements(where(ice_omega_solar le 0.)) gt 1 then ice_omega_solar[where(ice_omega_solar le 0.)]=9.e-9 if n_elements(where(ice_g_solar eq -9999.)) gt 1 then ice_g_solar[where(ice_g_solar eq -9999.)]=9.e-9 if n_elements(where(ice_g_solar eq -8888.)) gt 1 then ice_g_solar[where(ice_g_solar eq -8888.)]=8.e-8 if n_elements(where(ice_g_solar le 0.)) gt 1 then ice_g_solar[where(ice_g_solar le 0.)]=9.e-9 if n_elements(where(ice_tau_ir eq -9999.)) gt 1 then ice_tau_ir[where(ice_tau_ir eq -9999.)]=9.e-9 if n_elements(where(ice_tau_ir eq -8888.)) gt 1 then ice_tau_ir[where(ice_tau_ir eq -8888.)]=8.e-8 if n_elements(where(ice_tau_ir le 0.)) gt 1 then ice_tau_ir[where(ice_tau_ir le 0.)]=9.e-9 if n_elements(where(ice_omega_ir eq -9999.)) gt 1 then ice_omega_ir[where(ice_omega_ir le 0.)]=9.e-9 if n_elements(where(ice_omega_ir eq -8888.)) gt 1 then ice_omega_ir[where(ice_omega_ir eq -8888.)]=8.e-8 if n_elements(where(ice_omega_ir le 0.)) gt 1 then ice_omega_ir[where(ice_omega_ir le 0.)]=9.e-9 if n_elements(where(ice_g_ir eq -9999.)) gt 1 then ice_g_ir[where(ice_g_ir eq -9999.)]=9.e-9 if n_elements(where(ice_g_ir eq -8888.)) gt 1 then ice_g_ir[where(ice_g_ir eq -8888.)]=8.e-8 if n_elements(where(ice_g_ir le 0.)) gt 1 then ice_g_ir[where(ice_g_ir le 0.)]=9.e-9 if n_elements(where(lwc_out eq -9999.)) gt 1 then lwc_out[where(lwc_out eq -9999.)]=9.e-9 if n_elements(where(lwc_out eq -8888.)) gt 1 then lwc_out[where(lwc_out eq -8888.)]=8.e-8 if n_elements(where(lwc_out le 0.)) gt 1 then lwc_out[where(lwc_out le 0.)]=9.e-9 if n_elements(where(re_liq_out eq -9999.)) gt 1 then re_liq_out[where(re_liq_out eq -9999.)]=9.e-9 if n_elements(where(re_liq_out eq -8888.)) gt 1 then re_liq_out[where(re_liq_out eq -8888.)]=8.e-8 if n_elements(where(re_liq_out le 0.)) gt 1 then re_liq_out[where(re_liq_out le 0.)]=9.e-9 if n_elements(where(liqmicro_error eq -9999.)) gt 1 then liqmicro_error[where(liqmicro_error eq -9999.)]=9.e-9 if n_elements(where(liqmicro_error eq -8888.)) gt 1 then liqmicro_error[where(liqmicro_error eq -8888.)]=8.e-8 if n_elements(where(liqmicro_error le 0.)) gt 1 then liqmicro_error[where(liqmicro_error le 0.)]=9.e-9 if n_elements(where(liq_tau_solar eq -9999.)) gt 1 then liq_tau_solar[where(liq_tau_solar eq -9999.)]=9.e-9 if n_elements(where(liq_tau_solar eq -8888.)) gt 1 then liq_tau_solar[where(liq_tau_solar eq -8888.)]=8.e-8 if n_elements(where(liq_tau_solar le 0.)) gt 1 then liq_tau_solar[where(liq_tau_solar le 0.)]=9.e-9 if n_elements(where(liq_omega_solar eq -9999.)) gt 1 then liq_omega_solar[where(liq_omega_solar eq -9999.)]=9.e-9 if n_elements(where(liq_omega_solar eq -8888.)) gt 1 then liq_omega_solar[where(liq_omega_solar eq -8888.)]=8.e-8 if n_elements(where(liq_omega_solar le 0.)) gt 1 then liq_omega_solar[where(liq_omega_solar le 0.)]=9.e-9 if n_elements(where(liq_g_solar eq -9999.)) gt 1 then liq_g_solar[where(liq_g_solar eq -9999.)]=9.e-9 if n_elements(where(liq_g_solar eq -8888.)) gt 1 then liq_g_solar[where(liq_g_solar eq -8888.)]=8.e-8 if n_elements(where(liq_g_solar le 0.)) gt 1 then liq_g_solar[where(liq_g_solar le 0.)]=9.e-9 if n_elements(where(liq_tau_ir eq -9999.)) gt 1 then liq_tau_ir[where(liq_tau_ir eq -9999.)]=9.e-9 if n_elements(where(liq_tau_ir eq -8888.)) gt 1 then liq_tau_ir[where(liq_tau_ir eq -8888.)]=8.e-8 if n_elements(where(liq_tau_ir le 0.)) gt 1 then liq_tau_ir[where(liq_tau_ir le 0.)]=9.e-9 if n_elements(where(liq_omega_ir eq -9999.)) gt 1 then liq_omega_ir[where(liq_omega_ir eq -9999.)]=9.e-9 if n_elements(where(liq_omega_ir eq -8888.)) gt 1 then liq_omega_ir[where(liq_omega_ir eq -8888.)]=8.e-8 if n_elements(where(liq_omega_ir le 0.)) gt 1 then liq_omega_ir[where(liq_omega_ir le 0.)]=9.e-9 if n_elements(where(liq_g_ir eq -9999.)) gt 1 then liq_g_ir[where(liq_g_ir eq -9999.)]=9.e-9 if n_elements(where(liq_g_ir eq -8888.)) gt 1 then liq_g_ir[where(liq_g_ir eq -8888.)]=8.e-8 if n_elements(where(liq_g_ir le 0.)) gt 1 then liq_g_ir[where(liq_g_ir le 0.)]=9.e-9 if n_elements(where(ice_fraction eq -9999.)) gt 1 then ice_fraction[where(ice_fraction eq -9999.)]=9.e-9 if n_elements(where(ice_fraction eq -8888.)) gt 1 then ice_fraction[where(ice_fraction eq -8888.)]=8.e-8 if n_elements(where(ice_fraction le 0.)) gt 1 then ice_fraction[where(ice_fraction le 0.)]=9.e-9 cdfid=ncdf_open(fname,/write) time_index_id=ncdf_dimid(cdfid,'time') height_index_id=ncdf_dimid(cdfid,'height') ncdf_diminq, cdfid, height_index_id, char_strng, num_heights ncdf_diminq, cdfid, time_index_id, char_strng, num_times dim_indices1=[height_index_id,time_index_id] ;ir_bands_index_id=ncdf_dimid(cdfid,'ir_bands_index') iwc_id=ncdf_varid(cdfid,'IWC_best_estimate') if iwc_id lt 0 then begin ncdf_control, cdfid, /verbose ; need to add dimensions for ir and solar raprad bands ;ir_bands_index_id=ncdf_dimdef(cdfid, 'ir_bands_index',n_elements(rap_ir_wl)) ;solar_bands_index_id=ncdf_dimdef(cdfid, 'solar_bands_index',n_elements(rap_solar_wl)) ;ncdf_control, cdfid, /endef ncdf_control, cdfid, /redef dim_indices2=[height_index_id,time_index_id] dim_indices3=[height_index_id,time_index_id] iwc_id=ncdf_vardef(cdfid,'IWC_best_estimate',dim_indices1,/short) a_string='Best_Estimate_IWC' ncdf_attput, cdfid, iwc_id, 'long_name', a_string a_string='iwc (g/m^3)->10.^(float((*)/1000.)' ncdf_attput, cdfid, iwc_id, 'units', a_string a_string='>1.e-6 g/m^3, missing data: 8.e-8, no cloud: 9.e-9' ncdf_attput, cdfid, iwc_id, 'valid_range', a_string a_string='See IWC_source variable for information on how this quantity was computed' ncdf_attput, cdfid, iwc_id, 'Comment1', a_string re_ice_id=ncdf_vardef(cdfid,'re_ice_best_estimate',dim_indices1,/short) a_string='Best_Estimate_ice_effective_radius' ncdf_attput, cdfid, re_ice_id, 'long_name', a_string a_string='effective_radius (m)->10.^(float((*)/1000.)' ncdf_attput, cdfid, re_ice_id, 'units', a_string a_string='>1.e-6 m, missing data: 8.e-8, no cloud: 9.e-9' ncdf_attput, cdfid, re_ice_id, 'valid_range', a_string a_string='See re_ice_source variable for information on how this quantity was computed' ncdf_attput, cdfid, re_ice_id, 'Comment1', a_string ice_error_id=ncdf_vardef(cdfid,'ice_micro_error_estimate',dim_indices1,/short) a_string='estimated fractional error in the ice microphysical quantities' ncdf_attput, cdfid, ice_error_id, 'long_name', a_string a_string='ice_error (unitless fraction)->10.^(float((*)/1000.)' ncdf_attput, cdfid, ice_error_id, 'units', a_string a_string='>0., missing data: 8.e-8, no cloud: 9.e-9' ncdf_attput, cdfid, ice_error_id, 'valid_range', a_string iwc_source_id=ncdf_vardef(cdfid,'iwc_source',dim_indices1,/short) a_string='Source index of the ice water content algorithm' ncdf_attput, cdfid, iwc_source_id, 'long_name', a_string a_string='none' ncdf_attput, cdfid, iwc_source_id, 'units', a_string a_string='1: mace et al 1998, 2: mace et al 2001, 3: ccm3 Parameterization (Kiehl et al 1998)' ncdf_attput, cdfid, iwc_source_id, 'Comment1', a_string a_string='4: Liu and Illingworth, 2000, 5: Dong et al 1998 parameterization ncdf_attput, cdfid, iwc_source_id, 'Comment2', a_string a_string='6: Dong and Mace 2001 retrieval, 7: frisch et al 1998 lwc retrieval ncdf_attput, cdfid, iwc_source_id, 'Comment3', a_string ice_re_source_id=ncdf_vardef(cdfid,'ice_effective_radius_source',dim_indices1,/short) a_string='Source index of the effective radius algorithm' ncdf_attput, cdfid, ice_re_source_id, 'long_name', a_string a_string='none' ncdf_attput, cdfid, ice_re_source_id, 'units', a_string a_string='1: mace et al 1998, 2: mace et al 2001, 3: ccm3 Parameterization (Kiehl et al 1998)' ncdf_attput, cdfid, ice_re_source_id, 'Comment1', a_string a_string='4: Liu and Illingworth, 2000, 5: Dong et al 1998 parameterization ncdf_attput, cdfid, ice_re_source_id, 'Comment2', a_string a_string='6: Dong and Mace 2001 retrieval, 7: frisch et al 1998 lwc retrieval ncdf_attput, cdfid, ice_re_source_id, 'Comment3', a_string ice_tau_solar_id=ncdf_vardef(cdfid,'ice_tau_solar',dim_indices1,/short) a_string='Spectral solar optical depth at 0.5 microns of the ice phase in this vertical bin' ncdf_attput, cdfid, ice_tau_solar_id, 'long_name', a_string a_string='optical depth (unitless)->10.^(float((*)/1000.)' ncdf_attput, cdfid, ice_tau_solar_id, 'units', a_string a_string='>0.0, missing data: 8.e-8, no cloud: 9.e-9' ncdf_attput, cdfid, ice_tau_solar_id, 'valid_range', a_string a_string='See ice_rad_param_source variable for information on how this quantity was computed' ncdf_attput, cdfid, ice_tau_solar_id, 'Comment1', a_string ice_omega_solar_id=ncdf_vardef(cdfid,'ice_omega_solar',dim_indices1,/short) a_string='Spectral solar single scattering albedo at 0.5 microns of the ice phase in this vertical bin' ncdf_attput, cdfid, ice_omega_solar_id, 'long_name', a_string a_string='omega (unitless)->10.^(float((*)/1000.)' ncdf_attput, cdfid, ice_omega_solar_id, 'units', a_string a_string='0.0