张凌
DHSVM结果文件处理程序
2017-1-4 14:01
阅读:4488
标签:MATLAB, DHSVM

DHSVM的一些水文成分(比如降雨蒸散发等)是输出在Mass.Balance这个文件中,按照模拟的时间步长输出的。

如下:


但是实际我们可能关系的是在daily,monthly or yearly的尺度上的结果,方便分析比较。为此我写了一个MATLAB程序能把这个文件输出到三个不同的文件,分别代表daily, montly, yearly的结果。


下面是代码的头文件,需要用户自定义一些:

%% This Code is used to sumarized the default output of DHSVM (Mass.Balance)

%  Initally created by LING ZHANG, zhanglingky@lzb.ac.cn

%  The result is in Excel format; note:the Begining day should be 01/01 if

%  you want to summarize yearly data


%% The meaning for each colunmn

% Total runoff

% Total amount of water in the canopy

% Total amount of water in the soil

% Total amount of snow water equivalent

% Total amount of saturated subsurface flow

% Total amount of water intercepted by channels

% Total amount of water intercepted by roads

% Total amount of water returned by culverts to the land surface

% Total amount of evapotranspiration

% Total amount of precipitation

% Total amount of sublimation from snow on the ground

% Total amount of sublimation from snow in the canopy

% Total amount of water during the previous time step

% Total amount of flow from culverts to the channel

% Total amount of surface flow to the channel

% Total mass balance error for the current time step


%****************** Only the following items will be output*********%

% Total amount of saturated subsurface flow

% Total amount of water intercepted by channels

% Total amount of evapotranspiration

% Total amount of precipitation

% Total amount of surface flow to the channel



%% User difined Parmaters:需要用户自定义!

clc;

clear;

Model_start_year = 1992;

Model_end_year = 1995;

Model_time_step = 3;


完整的文件下载:

BalanceSum.rar


转载本文请联系原作者获取授权,同时请注明本文来自张凌科学网博客。

链接地址:https://wap.sciencenet.cn/blog-922140-1025356.html?mobile=1

收藏

分享到:

当前推荐数:0
推荐到博客首页
网友评论0 条评论
确定删除指定的回复吗?
确定删除本博文吗?