Last change
on this file since 5212 was
4773,
checked in by idelkadi, 11 months ago
|
- Update of Ecrad in LMDZ
The same organization of the Ecrad offline version is retained in order to facilitate the updating of Ecrad in LMDZ and the comparison between online and offline results.
version 1.6.1 of Ecrad (https://github.com/lguez/ecrad.git)
- Implementation of the double call of Ecrad in LMDZ
|
File size:
317 bytes
|
Line | |
---|
1 | function hr = calc_hr(data, band, icol) |
---|
2 | |
---|
3 | eval(['flux_up = data.flux_up_' band ';']); |
---|
4 | eval(['flux_dn = data.flux_dn_' band ';']); |
---|
5 | flux_net = flux_dn-flux_up; |
---|
6 | g=9.81; |
---|
7 | scaling = 3600.*24; |
---|
8 | hr_all = -scaling.*(diff(flux_net).*g./diff(data.pressure_hl)./1004)'; |
---|
9 | if nargin > 2 |
---|
10 | hr = hr_all(icol,:); |
---|
11 | else |
---|
12 | hr = hr_all; |
---|
13 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.