zhanghouxing的个人博客分享 http://blog.sciencenet.cn/u/zhanghouxing

博文

DHSVM结果文件处理程序

已有 4478 次阅读 2017-1-4 14:01 |个人分类:MATLAB|系统分类:科研笔记| 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://blog.sciencenet.cn/blog-922140-1025356.html

上一篇:VIC模型对气象数据进行时间降尺度
下一篇:ArcGIS模型构建器批处理操作
收藏 IP: 210.72.80.*| 热度|

0

该博文允许注册用户评论 请点击登录 评论 (0 个评论)

数据加载中...

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-25 09:37

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部