repo.or.cz
/
wrf-fire-matlab.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
gitinore *.txt files
[wrf-fire-matlab.git]
/
cycling
/
p2w.m
blob
764ffcdefd2806fea80901cd56f410861940e69c
1
function [wf,wa,ws] = p2w(p,w)
2
% function takes in a wrfout file, stored at matlab .mat and returns the
3
% structs using the forecast, analysis, and spinup from p =
4
% detect_fit_level2
5
6
wf = w;
7
save w_forecast.mat w;
8
9
w.tign_g = p.analysis;
10
wa = w;
11
save w_analysis.mat w;
12
13
w.tign_g = p.spinup;
14
ws = w;
15
save w_spinup.mat w;
16
17
18
19
end