-
Notifications
You must be signed in to change notification settings - Fork 0
/
Readme_GEOmatlab.txt
94 lines (77 loc) · 2.85 KB
/
Readme_GEOmatlab.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
In this repository ase saved several Matlab Scripts to import 1D point output from GEOtop 2.0 model and plot it in Matlab.
The main script to load GEOtop timeseries data is:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
load_GEOtop_2_0.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% loads GEOTOP GEOtop 2.0 temporal inputs/outputs
%
% it parese the geotop.inpts file and then imports the
% timeseries output files
%
% Copyright, 2017 Giacomo Bertoldi, Stefano della Chiesa, 2011 Ruth
% Mugford
%
% you should edit the variable 'simname' and the 'filroot'
% in this m-file to specify the simulation path
%
% you should also set the appropriate flags
The main script to plot 1D point GEOtop outptut file data is:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
plot_GEOtop_2_0_point.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright, 2010 Giacomo Bertoldi;
%
% plots GEOTOP 2_0 temporal outputs for a chosen control point ;
% load before load_GEOtop_2_0.m
% you need to define the chosen point # in the script
The main script to plot 1D point profiles of soil moisture, soil pressure, soil temperature is:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
plot_GEOtop_2_0_profiles.m
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Copyright, 2010 Giacomo Bertoldi
%
% plot 2_0 GEOTOP point profiles for every layer
% of: soil temparature, sil pressure, soil total water content, soil ice
% content
%
% load before load_GEOtop_2_0
The following functions are called:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function simpath=load_GEOtop_2_0_sim_path(mysim)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% adapted x geotop GEOtop2_0 simulations
% load the path of the simulation mysim
% Copyright, 2009 Giacomo Bertoldi
%
% Inputs:
% 'mysim': string name of the simulation
%
% Outputs:
% simpath: simulation path
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function unload_GEOtop_2_0_sim_path(mysim)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% adapted for GEOTOP GEOtop2_0 outputs
% unload the path of the mysimulation mysim
% Copyright, 2009 Giacomo Bertoldi
%
% Inputs:
% 'mysim': string name of the simulation
%
% Outputs:
% clear variable simpath
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
function [mydata, mytimes, mydates, mylabels]=import_GEOtop_2_0_data(myfile)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% adapted x geotop GEOtop2_0 simulations
% import a GEOtop2_0 time series file
% Copyright, 2009 Giacomo Bertoldi
%
% Inputs:
% 'myfile': string name of the file to import
%
% Outputs:
% mydata: array with numeric data
% mytimes: array with the time in days (Matlab standard date time)
% mydates: string array with the dates
% mylabels: string array with column labels