forked from wrf-model/WRF
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Jan Mandel
committed
Jul 12, 2015
1 parent
00f446a
commit d363dea
Showing
5 changed files
with
59 additions
and
12 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 was deleted.
Oops, something went wrong.
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,8 @@ | ||
Test example for assimilation of NDWI | ||
|
||
1. run ideal.exe | ||
2. in matlab, cd up directory (em_fire), startup, cd ndwi | ||
3. still in matlab, set_wrfinput, note the value of fmc_g at the end | ||
3. look at output - the values of fmc_g should be the same | ||
4. in matlab, confirm fmc_g=ncread('wrfout_d01_0001-01-01_00:00:00','FMG_C') | ||
for fmc_g(:,:,2) (fmc_g is set only after the initial wrfout is made) |
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,31 @@ | ||
disp('Set wrfinput for NDWI assimilation testing') | ||
format compact | ||
|
||
f='wrfinput_d01' | ||
|
||
ndwi = 0.5 | ||
live_fmc_prior=0.1 | ||
|
||
w=ncread(f,'NDWI'); | ||
w=ndwi * ones(size(w)); | ||
ncreplace(f,'NDWI',w) | ||
|
||
% set FMC_GC(:,:,5)=0.1 | ||
u=ncread(f,'FMC_GC'); | ||
u(:,:,5)=live_fmc_prior; | ||
ncreplace(f,'FMC_GC',u); | ||
|
||
% in namelist.fire we have set | ||
fmc_gw05 = 0.5 , % fuel is consists of 0.5 live fuel | ||
fmc_gl_stdev = 0.1, % live fuel moisture prior has error +- 0.1 | ||
% ! observation: FMC = 0.1 + 0.6 * NDWI +- 0.2 | ||
fmc_gl_ndwi_0 = 0.1, | ||
fmc_gl_ndwi_rate = 0.6, | ||
fmc_gl_ndwi_stdev = 0.2, | ||
|
||
% so we should see | ||
live_fmc_obs = fmc_gl_ndwi_0 + fmc_gl_ndwi_rate * ndwi | ||
w_prior = 1/(fmc_gl_stdev^2) | ||
w_obs = 1/(fmc_gl_ndwi_stdev^2) | ||
fmc_live = (live_fmc_prior*w_prior + live_fmc_obs*w_obs)/(w_prior+w_obs) | ||
fmc_g = fmc_live * fmc_gw05 % contribution to fmc_g on fire mesh |