NASA Logo
Ocean Color Science Software

ocssw V2022
ch_xfr.f90
Go to the documentation of this file.
1 module ch_xfr
2  ! this will contain all data needed for chimaera use for a line
3  ! (and any surrounding lines) from l2gen
4  !
5  ! Also, any new data to transfer out
6  !
7  ! W. Robinson, SAIC, Nov 2018
8  !
9  ! l1b data
10  real, allocatable, dimension( :,:,: ) :: c2_refl, c2_bnd_unc
11  real, allocatable, dimension( : ) :: c2_spec_unc, c2_unc_sf
12  real, allocatable, dimension( :,: ) :: c2_lat, c2_lon, c2_senz
13  real, allocatable, dimension( :,: ) :: c2_sena, c2_solz, c2_sola, c2_relaz
14  ! anc data
15  real, allocatable, dimension( :,:,: ) :: c2_prof_mixr, c2_prof_t
16  real, allocatable, dimension( :,:,: ) :: c2_prof_p, c2_prof_hgt
17  real, allocatable, dimension( :,: ) :: c2_tsfc, c2_psfc, c2_tot_o3
18  real, allocatable, dimension( :,: ) :: c2_wind
19  real, allocatable, dimension( :,: ) :: c2_ice_frac, c2_snow_frac
20  real, allocatable, dimension( :,: ) :: c2_alt_o3, c2_alt_icec
21  ! anc sfc albedo
22  real, allocatable, dimension( :,:,: ) :: c2_sfc_albedo
23  ! cloud top hgt, p, t transfer arrays
24  real, allocatable, dimension( :,: ) :: c2_cth, c2_ctp, c2_ctt
25  !
26  integer*1, allocatable, dimension( :,: ) :: c2_sfc_lvl, c2_trop_lvl
27  integer, allocatable, dimension( :,: ) :: c2_alt_snowice
28  ! cloud mask data
29  integer*1, allocatable, dimension( :,: ) :: c2_cld_det, c2_conf_cld
30  integer*1, allocatable, dimension( :,: ) :: c2_clr_66, c2_clr_95, c2_clr_99
31  integer*1, allocatable, dimension( :,: ) :: c2_sno_sfc, c2_wtr_sfc
32  integer*1, allocatable, dimension( :,: ) :: c2_coast_sfc, c2_desert_sfc
33  integer*1, allocatable, dimension( :,: ) :: c2_lnd_sfc, c2_night, c2_glint
34  integer*1, allocatable, dimension( :,: ) :: c2_ocean_no_snow, c2_ocean_snow
35  integer*1, allocatable, dimension( :,: ) :: c2_lnd_no_snow, c2_lnd_snow
36  integer*1, allocatable, dimension( :,: ) :: c2_tst_h_138, c2_tst_vis_refl
37  integer*1, allocatable, dimension( :,: ) :: c2_tst_vis_ratio, c2_vis_cld_250
38  integer*1, allocatable, dimension( :,: ) :: c2_appl_hcld_138
39  integer*1, allocatable, dimension( :,: ) :: c2_appl_vis_refl
40  integer*1, allocatable, dimension( :,: ) :: c2_appl_vis_nir_ratio
41  !
42  ! band presence array
43  integer*1, allocatable, dimension( : ) :: c2_cmp_there
44  !
45  ! dimensions, location in whole chunck
48  !
49  ! c2_sensor_id, the identification of which sensor is being used
50  integer :: c2_sensor_id
51  integer :: ocis_id = 31 ! code for OCIS from sensorDefs.h
52  integer :: oci_id = 30 ! code for OCIS from sensorDefs.h
53  !
54  ! the cm_from_l2 is a switch to say read from the l2 inputs instead of
55  ! the work file
56  integer :: cm_from_l2
57  character(len=500) :: c2_cloud_hgt_file
58  !
59  !
60  ! And now for data to transfer out to l2gen -- diagnostic for the point refl
61  ! relative to the table
62  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_2100
63  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_1600
64  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_1621
65  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_2200
69 
70  ! Also the save arrays, so the 3-line results are saved
71  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_2100_sav
72  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_1600_sav
73  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_2200_sav
74  real, allocatable, dimension( :,:,: ) :: prd_out_refl_loc_1621_sav
75 end module ch_xfr
Definition: ch_xfr.f90:1
real, dimension(:,:), allocatable c2_alt_icec
Definition: ch_xfr.f90:20
integer *1, dimension(:,:), allocatable c2_trop_lvl
Definition: ch_xfr.f90:26
real, dimension(:,:), allocatable c2_psfc
Definition: ch_xfr.f90:17
integer, dimension(:,:), allocatable c2_alt_snowice
Definition: ch_xfr.f90:27
integer *1, dimension(:,:), allocatable c2_wtr_sfc
Definition: ch_xfr.f90:31
integer c2_g_year
Definition: ch_xfr.f90:46
integer *1, dimension(:,:), allocatable c2_clr_99
Definition: ch_xfr.f90:30
integer c2_nbnd_albedo
Definition: ch_xfr.f90:46
integer refl_abs
Definition: ch_xfr.f90:66
real, dimension(:,:,:), allocatable c2_prof_hgt
Definition: ch_xfr.f90:16
real, dimension(:,:,:), allocatable c2_bnd_unc
Definition: ch_xfr.f90:10
integer *1, dimension(:,:), allocatable c2_sno_sfc
Definition: ch_xfr.f90:31
integer ocis_id
Definition: ch_xfr.f90:51
real, dimension(:,:), allocatable c2_lon
Definition: ch_xfr.f90:12
real, dimension(:,:,:), allocatable prd_out_refl_loc_2100_sav
Definition: ch_xfr.f90:71
integer *1, dimension(:,:), allocatable c2_appl_hcld_138
Definition: ch_xfr.f90:38
integer *1, dimension(:,:), allocatable c2_vis_cld_250
Definition: ch_xfr.f90:37
integer cm_from_l2
Definition: ch_xfr.f90:56
real, dimension(:,:), allocatable c2_sena
Definition: ch_xfr.f90:13
integer *1, dimension(:,:), allocatable c2_tst_h_138
Definition: ch_xfr.f90:36
integer *1, dimension(:,:), allocatable c2_ocean_snow
Definition: ch_xfr.f90:34
integer *1, dimension(:,:), allocatable c2_desert_sfc
Definition: ch_xfr.f90:32
integer tbl_lo_nabs_ice
Definition: ch_xfr.f90:66
real, dimension(:), allocatable c2_unc_sf
Definition: ch_xfr.f90:11
real, dimension(:,:,:), allocatable prd_out_refl_loc_1621_sav
Definition: ch_xfr.f90:74
real, dimension(:,:,:), allocatable c2_prof_mixr
Definition: ch_xfr.f90:15
real, dimension(:,:,:), allocatable prd_out_refl_loc_1600
Definition: ch_xfr.f90:63
real, dimension(:,:), allocatable c2_solz
Definition: ch_xfr.f90:13
real, dimension(:,:,:), allocatable c2_sfc_albedo
Definition: ch_xfr.f90:22
integer *1, dimension(:,:), allocatable c2_night
Definition: ch_xfr.f90:33
real, dimension(:,:), allocatable c2_lat
Definition: ch_xfr.f90:12
real, dimension(:,:), allocatable c2_ctp
Definition: ch_xfr.f90:24
integer c2_nlin
Definition: ch_xfr.f90:46
real, dimension(:,:), allocatable c2_tsfc
Definition: ch_xfr.f90:17
real, dimension(:,:,:), allocatable prd_out_refl_loc_2200
Definition: ch_xfr.f90:65
integer tbl_hi_nabs_ice
Definition: ch_xfr.f90:66
real, dimension(:,:,:), allocatable prd_out_refl_loc_1600_sav
Definition: ch_xfr.f90:72
integer refl_nabs
Definition: ch_xfr.f90:66
integer *1, dimension(:,:), allocatable c2_cld_det
Definition: ch_xfr.f90:29
integer *1, dimension(:,:), allocatable c2_appl_vis_refl
Definition: ch_xfr.f90:39
real, dimension(:,:), allocatable c2_relaz
Definition: ch_xfr.f90:13
integer c2_npix
Definition: ch_xfr.f90:46
real, dimension(:,:), allocatable c2_ice_frac
Definition: ch_xfr.f90:19
integer *1, dimension(:,:), allocatable c2_tst_vis_refl
Definition: ch_xfr.f90:36
character(len=500) c2_cloud_hgt_file
Definition: ch_xfr.f90:57
integer c2_g_day
Definition: ch_xfr.f90:46
integer *1, dimension(:,:), allocatable c2_coast_sfc
Definition: ch_xfr.f90:32
integer c2_sensor_id
Definition: ch_xfr.f90:50
integer *1, dimension(:,:), allocatable c2_glint
Definition: ch_xfr.f90:33
integer *1, dimension(:,:), allocatable c2_lnd_snow
Definition: ch_xfr.f90:35
real, dimension(:,:,:), allocatable c2_prof_p
Definition: ch_xfr.f90:16
integer tbl_hi_abs_ice
Definition: ch_xfr.f90:66
real, dimension(:,:,:), allocatable prd_out_refl_loc_1621
Definition: ch_xfr.f90:64
integer *1, dimension(:,:), allocatable c2_lnd_sfc
Definition: ch_xfr.f90:33
integer *1, dimension(:,:), allocatable c2_tst_vis_ratio
Definition: ch_xfr.f90:37
integer tbl_lo_abs_ice
Definition: ch_xfr.f90:66
integer *1, dimension(:,:), allocatable c2_appl_vis_nir_ratio
Definition: ch_xfr.f90:40
integer *1, dimension(:,:), allocatable c2_clr_95
Definition: ch_xfr.f90:30
integer c2_scan
Definition: ch_xfr.f90:46
integer tbl_lo_nabs
Definition: ch_xfr.f90:66
integer *1, dimension(:,:), allocatable c2_lnd_no_snow
Definition: ch_xfr.f90:35
integer c2_nlvl_model
Definition: ch_xfr.f90:46
integer *1, dimension(:,:), allocatable c2_ocean_no_snow
Definition: ch_xfr.f90:34
integer *1, dimension(:,:), allocatable c2_sfc_lvl
Definition: ch_xfr.f90:26
integer oci_id
Definition: ch_xfr.f90:52
real, dimension(:,:), allocatable c2_alt_o3
Definition: ch_xfr.f90:20
integer c2_nbnd
Definition: ch_xfr.f90:46
real, dimension(:,:,:), allocatable prd_out_refl_loc_2200_sav
Definition: ch_xfr.f90:73
integer tbl_hi_nabs
Definition: ch_xfr.f90:66
integer tbl_lo_abs
Definition: ch_xfr.f90:66
integer *1, dimension(:,:), allocatable c2_clr_66
Definition: ch_xfr.f90:30
real, dimension(:,:), allocatable c2_ctt
Definition: ch_xfr.f90:24
integer c2_st_samp
Definition: ch_xfr.f90:46
integer tbl_hi_abs
Definition: ch_xfr.f90:66
real, dimension(:,:), allocatable c2_snow_frac
Definition: ch_xfr.f90:19
real, dimension(:,:), allocatable c2_wind
Definition: ch_xfr.f90:18
real, dimension(:,:), allocatable c2_senz
Definition: ch_xfr.f90:12
real, dimension(:,:,:), allocatable prd_out_refl_loc_2100
Definition: ch_xfr.f90:62
real, dimension(:,:,:), allocatable c2_prof_t
Definition: ch_xfr.f90:15
real, dimension(:,:), allocatable c2_sola
Definition: ch_xfr.f90:13
real, dimension(:), allocatable c2_spec_unc
Definition: ch_xfr.f90:11
real, dimension(:,:), allocatable c2_tot_o3
Definition: ch_xfr.f90:17
integer *1, dimension(:), allocatable c2_cmp_there
Definition: ch_xfr.f90:43
real, dimension(:,:), allocatable c2_cth
Definition: ch_xfr.f90:24
integer *1, dimension(:,:), allocatable c2_conf_cld
Definition: ch_xfr.f90:29
real, dimension(:,:,:), allocatable c2_refl
Definition: ch_xfr.f90:10