-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:iurnus/scripps_kaust_model
- Loading branch information
Showing
22 changed files
with
525 additions
and
15 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,5 +14,6 @@ rm -rf *.TBL | |
rm -rf RRTM* | ||
rm -rf wrf*d01 | ||
rm -rf CAM* | ||
rm -rf cplFlux | ||
rm -rf cplFlux* | ||
rm -rf ozone* | ||
rm -rf log* |
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
Binary file added
BIN
+20.2 MB
coupler/L3.C1.coupled_RS2012_ring/save_nc/met_em.d01.2012-06-01_00:00:00.nc
Binary file not shown.
Binary file added
BIN
+20.2 MB
coupler/L3.C1.coupled_RS2012_ring/save_nc/met_em.d01.2012-06-01_06:00:00.nc
Binary file not shown.
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/csh -f | ||
|
||
./clean.sh | ||
|
||
cd runCase/ | ||
./Allclean | ||
cd .. | ||
|
||
cd runCase.init/ | ||
./Allclean | ||
cd .. | ||
|
||
cd runMITtest/ | ||
./Allclean | ||
cd .. | ||
|
||
cd runWRFtest/ | ||
./Allclean | ||
cd .. | ||
|
||
cd latexSummary | ||
./clean.sh | ||
cd .. |
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,26 @@ | ||
#!/bin/csh -f | ||
|
||
# ./install.sh | ||
# ./install_mit.sh | ||
|
||
cd runCase.init/ | ||
./Allrun | ||
cd .. | ||
|
||
cd runCase/ | ||
./Allrun | ||
cd .. | ||
|
||
cd runMITtest/ | ||
./Allrun | ||
cd .. | ||
|
||
cd runWRFtest/ | ||
./Allrun | ||
cd .. | ||
|
||
cd latexSummary | ||
./generate.sh | ||
cd .. | ||
|
||
evince latexSummary/report.pdf |
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
80 changes: 80 additions & 0 deletions
80
coupler/L3.C2.coupled_CA2018_ring/runMITtest/genMIT/copy_wrf_forcing.m
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,80 @@ | ||
clear all | ||
close all | ||
clc | ||
|
||
wrf_results = '../../runCase/wrfout_d01_2018-01-27_00:00:00'; | ||
opath = './'; | ||
fpath = opath; | ||
|
||
eval ([ 'load ' fpath 'FMT.mat']); | ||
|
||
ctl = {'T2','Q2','LH','HFX','U10','V10'}; | ||
ctl_i = {'atemp','aqh','hl','hs','uwind','vwind',}; | ||
|
||
prec='double'; | ||
|
||
np = length(ctl); | ||
saveField = {}; | ||
for jp = 1:np | ||
jp | ||
param_wrf = [ctl{jp}]; | ||
param_out = [ctl_i{jp}]; | ||
|
||
file = wrf_results; | ||
|
||
ncid = netcdf.open(file,'NOWRITE'); | ||
[numdims, numvars, numglobalatts, unlimdimID] = netcdf.inq(ncid); | ||
|
||
for varid =1:numvars | ||
varlist(varid) = {netcdf.inqVar(ncid,varid-1)}; | ||
end | ||
|
||
ind=find(ismember(varlist,param_wrf)); | ||
tmp = netcdf.getVar(ncid,ind-1,prec); | ||
|
||
[varname vartype vardimIDs varatts] = netcdf.inqVar(ncid,ind-1); | ||
|
||
for varatid =1:varatts | ||
attlist(varatid) = {netcdf.inqAttName(ncid,ind-1,varatid-1)}; | ||
end | ||
|
||
% miss = netcdf.getAtt(ncid,ind-1,'missing_value',prec) | ||
% if miss < 0 | ||
% tmp(tmp <= miss) = NaN; | ||
% else | ||
% tmp(tmp >= miss) = NaN; | ||
% end | ||
|
||
if isempty(find(ismember(attlist,'scale_factor'))) | ||
scale = 1.0; | ||
else | ||
scale = netcdf.getAtt(ncid,ind-1,'scale_factor',prec); | ||
end | ||
|
||
if isempty(find(ismember(attlist,'add_offset'))) | ||
offset = 0.0; | ||
else | ||
offset = netcdf.getAtt(ncid,ind-1,'add_offset',prec); | ||
end | ||
|
||
tmp = offset + (tmp.*scale); | ||
|
||
if (strcmp(param_wrf,'T2')) | ||
% tmp = tmp - 273.15; | ||
tmp = tmp; | ||
elseif (strcmp(param_wrf,'LH')) | ||
tmp = -tmp; | ||
elseif (strcmp(param_wrf,'HFX')) | ||
tmp = -tmp; | ||
end | ||
|
||
%% we need to flip as NCEPlat is flipped | ||
% tmp = flipdim(tmp,2); | ||
size(tmp) | ||
wrslice([opath 'wrf_' param_out '_20mins_2018' ],tmp,1,fmt,Ieee); | ||
netcdf.close(ncid); | ||
|
||
saveField{jp} = tmp; | ||
|
||
clear p param_* tmp dpath | ||
end |
78 changes: 78 additions & 0 deletions
78
coupler/L3.C2.coupled_CA2018_ring/runMITtest/genMIT/gen_evap_forcing.m
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,78 @@ | ||
clear all | ||
close all | ||
clc | ||
|
||
wrf_results = '../../runCase/wrfout_d01_2018-01-27_00:00:00'; | ||
opath = './'; | ||
fpath = opath; | ||
|
||
eval ([ 'load ' fpath 'FMT.mat']); | ||
|
||
ctl = {'SFCEVP'} | ||
|
||
prec='double'; | ||
deltaT = 60.0; | ||
|
||
np = length(ctl); | ||
tmpFields = {}; | ||
for jp = 1:np | ||
jp | ||
param_wrf = [ctl{jp}]; | ||
|
||
file = wrf_results; | ||
|
||
ncid = netcdf.open(file,'NOWRITE'); | ||
[numdims, numvars, numglobalatts, unlimdimID] = netcdf.inq(ncid); | ||
|
||
for varid =1:numvars | ||
varlist(varid) = {netcdf.inqVar(ncid,varid-1)}; | ||
end | ||
|
||
ind=find(ismember(varlist,param_wrf)); | ||
tmp = netcdf.getVar(ncid,ind-1,prec); | ||
|
||
[varname vartype vardimIDs varatts] = netcdf.inqVar(ncid,ind-1); | ||
|
||
for varatid =1:varatts | ||
attlist(varatid) = {netcdf.inqAttName(ncid,ind-1,varatid-1)}; | ||
end | ||
|
||
% miss = netcdf.getAtt(ncid,ind-1,'missing_value',prec) | ||
% if miss < 0 | ||
% tmp(tmp <= miss) = NaN; | ||
% else | ||
% tmp(tmp >= miss) = NaN; | ||
% end | ||
|
||
if isempty(find(ismember(attlist,'scale_factor'))) | ||
scale = 1.0; | ||
else | ||
scale = netcdf.getAtt(ncid,ind-1,'scale_factor',prec); | ||
end | ||
|
||
if isempty(find(ismember(attlist,'add_offset'))) | ||
offset = 0.0; | ||
else | ||
offset = netcdf.getAtt(ncid,ind-1,'add_offset',prec); | ||
end | ||
|
||
tmp = offset + (tmp.*scale); | ||
|
||
tmpFields{jp} = tmp; | ||
|
||
clear p param_* tmp dpath | ||
end | ||
|
||
tmp_total = tmpFields{1}; | ||
tmp = tmp_total; | ||
|
||
nTime = length(tmp(1,1,:)); | ||
for nT = 1:nTime-1 | ||
tmp(:,:,nT+1) = (tmp_total(:,:,nT+1)-tmp_total(:,:,nT))/deltaT/1000.0; | ||
end | ||
|
||
%% we need to flip as NCEPlat is flipped | ||
% tmp = flipdim(tmp,2); | ||
size(tmp) | ||
wrslice([opath 'wrf_evap_20mins_2018' ],tmp,1,fmt,Ieee); | ||
netcdf.close(ncid); |
71 changes: 71 additions & 0 deletions
71
coupler/L3.C2.coupled_CA2018_ring/runMITtest/genMIT/gen_lw_forcing.m
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,71 @@ | ||
clear all | ||
close all | ||
clc | ||
|
||
wrf_results = '../../runCase/wrfout_d01_2018-01-27_00:00:00'; | ||
opath = './'; | ||
fpath = opath; | ||
|
||
eval ([ 'load ' fpath 'FMT.mat']); | ||
|
||
ctl = {'LWDNB','LWUPB'} | ||
|
||
prec='double'; | ||
|
||
np = length(ctl); | ||
tmpFields = {}; | ||
for jp = 1:np | ||
jp | ||
param_wrf = [ctl{jp}]; | ||
|
||
file = wrf_results; | ||
|
||
ncid = netcdf.open(file,'NOWRITE'); | ||
[numdims, numvars, numglobalatts, unlimdimID] = netcdf.inq(ncid); | ||
|
||
for varid =1:numvars | ||
varlist(varid) = {netcdf.inqVar(ncid,varid-1)}; | ||
end | ||
|
||
ind=find(ismember(varlist,param_wrf)); | ||
tmp = netcdf.getVar(ncid,ind-1,prec); | ||
|
||
[varname vartype vardimIDs varatts] = netcdf.inqVar(ncid,ind-1); | ||
|
||
for varatid =1:varatts | ||
attlist(varatid) = {netcdf.inqAttName(ncid,ind-1,varatid-1)}; | ||
end | ||
|
||
% miss = netcdf.getAtt(ncid,ind-1,'missing_value',prec) | ||
% if miss < 0 | ||
% tmp(tmp <= miss) = NaN; | ||
% else | ||
% tmp(tmp >= miss) = NaN; | ||
% end | ||
|
||
if isempty(find(ismember(attlist,'scale_factor'))) | ||
scale = 1.0; | ||
else | ||
scale = netcdf.getAtt(ncid,ind-1,'scale_factor',prec); | ||
end | ||
|
||
if isempty(find(ismember(attlist,'add_offset'))) | ||
offset = 0.0; | ||
else | ||
offset = netcdf.getAtt(ncid,ind-1,'add_offset',prec); | ||
end | ||
|
||
tmp = offset + (tmp.*scale); | ||
|
||
tmpFields{jp} = tmp; | ||
|
||
clear p param_* tmp dpath | ||
end | ||
|
||
tmp = tmpFields{2} - tmpFields{1}; | ||
|
||
%% we need to flip as NCEPlat is flipped | ||
% tmp = flipdim(tmp,2); | ||
size(tmp); | ||
wrslice([opath 'wrf_lwflux_20mins_2018' ],tmp,1,fmt,Ieee); | ||
netcdf.close(ncid); |
Oops, something went wrong.