-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
327cc6d
commit bc9b83c
Showing
23 changed files
with
254 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Ignore data directory | ||
/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,30 +5,46 @@ | |
You can reach me at [[email protected]](mailto:[email protected]) for questions related to the usage of this code. | ||
|
||
### Description | ||
This set of scripts fufills three stages in generating the results presented in the paper: | ||
- Load and process raw data | ||
This set of scripts fufills the analysis presented in the paper in three steps: | ||
- Load and process original data | ||
- Calculate key parameters | ||
- Produce figures | ||
|
||
### Prerequisites | ||
This code is tested in MATLAB R2019b. | ||
|
||
It also uses some external toolboxes/functions, as listed below: | ||
- [Gibbs-SeaWater (GSW) Oceanographic Toolbox'](http://www.teos-10.org/software.htm) | ||
- [Gibbs-SeaWater (GSW) Oceanographic Toolbox](http://www.teos-10.org/software.htm) | ||
- [Air-sea toolbox](https://github.com/sea-mat/air-sea) | ||
- [cbrewer](https://www.mathworks.com/matlabcentral/fileexchange/34087-cbrewer-colorbrewer-schemes-for-matlab) | ||
- [RGB](https://www.mathworks.com/matlabcentral/fileexchange/24497-rgb-triple-of-color-name-version-2) triple of color name | ||
- [Custom Colormap](https://www.mathworks.com/matlabcentral/fileexchange/69470-custom-colormap) | ||
- [RGB](https://www.mathworks.com/matlabcentral/fileexchange/24497-rgb-triple-of-color-name-version-2) | ||
- [MarkerTransparency](https://www.mathworks.com/matlabcentral/fileexchange/65194-peterrochford-markertransparency) | ||
- [suplabel](https://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel) | ||
- [tight_subplot](https://www.mathworks.com/matlabcentral/fileexchange/27991-tight_subplot-nh-nw-gap-marg_h-marg_w) | ||
|
||
### Data | ||
The data used in this work are mostly publicly available (see the "Data availability statement" in our paper). For your convience, a copy of the original data can be downloaded either from [this Google Drive link](https://drive.google.com/file/d/13UYYOT9AXFufjMw6_wr4-hoNv7M3tT7v/view?usp=sharing), or from the most recent [release]() of this repository. | ||
|
||
### Work flow | ||
1. Download this repository to your local computer. Alternatively, you can clone it using the command line in Terminal, | ||
|
||
### Reference | ||
```bash | ||
git clone https://github.com/zhihua-zheng/EvaMO_UOSL_code.git | ||
``` | ||
Add this repository to your MATLAB search path | ||
|
||
```matlab | ||
addpath(genpath('<path to this repository>')) | ||
``` | ||
|
||
2. Download the data file `EvaMO_UOSL_data.zip` as described in the [Data](#-data) section. Unzip it into the `EvaMO_UOSL_code` directory and rename the `EvaMO_UOSL_data` direcctory to `data`. | ||
|
||
3. | ||
|
||
4. | ||
|
||
* McDougall, T.J. and P.M. Barker, 2011: Getting started with TEOS-10 and the Gibbs Seawater (GSW) Oceanographic Toolbox, 28pp., SCOR/IAPSO WG127, ISBN 978-0-646-55621-5. | ||
|
||
* Charles, R. 2015: cbrewer : colorbrewer schemes for Matlab, MATLAB Central File Exchange. Retrieved May 26, 2019. | ||
|
||
Functions for solving super-equilibirum model equations are in ./library | ||
======================================================================== | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,16 +12,17 @@ | |
% | ||
% INPUT: | ||
% | ||
% idatm - 1-D column vector of MATLAB datetime for the inquired period | ||
% zz - vertical coordinates for the choosen 2 levels [-, m] | ||
% casename - string to indicate the parameters for which cases is inquired | ||
% idatm - 1-D column vector, MATLAB datetime for the period inquired | ||
% zz - Vertical coordinates for the choosen 2 levels [-, m] | ||
% casename - Name of the case for which parameters are inquired | ||
% | ||
% OUTPUT: | ||
% | ||
% MOL - Monin-Obukhov length for evaluated depth [m] | ||
% MOL - Monin-Obukhov length for evaluated depth [m] | ||
% zeta - Monin-Obukhov stability parameter | ||
% FS - struct contains turbulence scale for velocity (Ustar), temperature | ||
% (Tstar), salinity (Sstar), buoyancy (Bstar), buoyancy forcing Bf | ||
% FS - Struct contains turbulence scale for velocity (Ustar), | ||
% temperature (Tstar), salinity (Sstar), buoyancy (Bstar), | ||
% buoyancy forcing Bf | ||
% | ||
% AUTHOR: | ||
% June 29 2019, Zhihua Zheng [ [email protected] ] | ||
|
@@ -48,22 +49,10 @@ | |
|
||
ntm = length(w_b_0); | ||
|
||
MOconsts_name = '~/GDrive/UW/Research/Data/Misce/MO_consts.mat'; | ||
load(MOconsts_name,'g','rho0','cp','kappa'); | ||
|
||
%% T-S dependent coefficients | ||
|
||
% ignore the depth-dependence as T-S variation with depth is small | ||
|
||
% use sea surface SA and CT before calibration | ||
% ssSA = gsw_SA_from_SP(SKF.sss,ssp,lon,lat); % [g/kg] | ||
% ssCT = gsw_CT_from_t(ssSA,SKF.sst,ssp); | ||
% | ||
% % isobaric heat capacity of seawater [J/kg/C] | ||
% % cp = gsw_cp_t_exact(ssSA,SKF.sst,ssp); | ||
% | ||
% alpha = gsw_alpha(ssSA,ssCT,ssp); | ||
% % beta = gsw_beta(ssSA,ssCT,ssp); | ||
g = 9.81; | ||
rho0 = 1025; | ||
cp = 3985; | ||
kappa = 0.4; | ||
|
||
%% Fluxes due to shortwave radiation | ||
|
||
|
@@ -81,13 +70,13 @@ | |
|
||
switch band_SR | ||
|
||
case 0 % test: shortwave radiation are absorbed at the surface | ||
case 0 % test: shortwave radiation are absorbed at the surface | ||
Iz = zeros(ndum,ntm); | ||
|
||
case 2 % 2-band exponential decay of shortwave radiation | ||
case 2 % 2-band exponential decay of shortwave radiation | ||
Iz = get_SRz(NSW,zdum,band_SR,waterType); | ||
|
||
case 9 % 9-band exponential decay of shortwave radiation | ||
case 9 % 9-band exponential decay of shortwave radiation | ||
Iz = get_SRz(NSW,zdum,band_SR,waterType); | ||
end | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.