1 | ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
2 | ! Copyright (c) 2015, Regents of the University of Colorado |
---|
3 | ! All rights reserved. |
---|
4 | ! |
---|
5 | ! Redistribution and use in source and binary forms, with or without modification, are |
---|
6 | ! permitted provided that the following conditions are met: |
---|
7 | ! |
---|
8 | ! 1. Redistributions of source code must retain the above copyright notice, this list of |
---|
9 | ! conditions and the following disclaimer. |
---|
10 | ! |
---|
11 | ! 2. Redistributions in binary form must reproduce the above copyright notice, this list |
---|
12 | ! of conditions and the following disclaimer in the documentation and/or other |
---|
13 | ! materials provided with the distribution. |
---|
14 | ! |
---|
15 | ! 3. Neither the name of the copyright holder nor the names of its contributors may be |
---|
16 | ! used to endorse or promote products derived from this software without specific prior |
---|
17 | ! written permission. |
---|
18 | ! |
---|
19 | ! THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
---|
20 | ! EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
---|
21 | ! MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
---|
22 | ! THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
---|
23 | ! SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
---|
24 | ! OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
25 | ! INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
---|
26 | ! LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
---|
27 | ! OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
---|
28 | ! |
---|
29 | ! History |
---|
30 | ! May 2015 - D. Swales - Original version |
---|
31 | ! %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
32 | MODULE MOD_COSP_PARASOL_INTERFACE |
---|
33 | USE COSP_KINDS, ONLY: WP |
---|
34 | implicit none |
---|
35 | |
---|
36 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
37 | ! TYPE cosp_parasol |
---|
38 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
39 | TYPE PARASOL_SGX |
---|
40 | ! Dimensions |
---|
41 | integer :: & |
---|
42 | Npoints, & ! Number of gridpoints |
---|
43 | Ncolumns, & ! Number of columns |
---|
44 | Nrefl ! Number of parasol reflectances |
---|
45 | |
---|
46 | ! Arrays with dimensions (Npoints,Ncolumns,Nrefl) |
---|
47 | real(wp),dimension(:,:,:),pointer :: & |
---|
48 | refl ! parasol reflectances |
---|
49 | |
---|
50 | END TYPE PARASOL_SGX |
---|
51 | TYPE PARASOL_GBX |
---|
52 | integer :: & |
---|
53 | Npoints, & ! Number of gridpoints |
---|
54 | Ncolumns, & ! Number of columns |
---|
55 | Nrefl ! Number of parasol reflectances |
---|
56 | real(wp), dimension(:,:),pointer :: & |
---|
57 | parasolrefl ! Mean parasol reflectance |
---|
58 | |
---|
59 | END TYPE PARASOL_GBX |
---|
60 | TYPE COSP_PARASOL |
---|
61 | type(PARASOL_SGX) :: PARASOL_SGX |
---|
62 | type(PARASOL_GBX) :: PARASOL_GBX |
---|
63 | END TYPE COSP_PARASOL |
---|
64 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
65 | ! TYPE parasol_in |
---|
66 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
67 | TYPE parasol_IN |
---|
68 | integer,pointer :: & |
---|
69 | Npoints, & ! Number of horizontal gridpoints |
---|
70 | Nlevels, & ! Number of vertical levels |
---|
71 | Ncolumns, & ! Number of columns |
---|
72 | Nrefl ! Number of angles for which the reflectance is computed |
---|
73 | real(wp),dimension(:,:),pointer :: & |
---|
74 | tautot_S_liq, & ! Liquid water optical thickness, from TOA to SFC |
---|
75 | tautot_S_ice ! Ice water optical thickness, from TOA to SFC |
---|
76 | END TYPE parasol_IN |
---|
77 | |
---|
78 | contains |
---|
79 | |
---|
80 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
81 | ! SUBROUTINE cosp_parasol_init |
---|
82 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
83 | SUBROUTINE COSP_PARASOL_INIT() |
---|
84 | |
---|
85 | end subroutine COSP_PARASOL_INIT |
---|
86 | |
---|
87 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
88 | ! END MODULE |
---|
89 | !%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
90 | end module MOD_COSP_PARASOL_INTERFACE |
---|