%
% DESCRIPTION: Program to create the Ground water level GDF file in the Matlab format.
% 
% [TimeZone] and [Description] have text format so the values give in ''


clear;clc;
[FormatName] = 'GDF';
[FormatVersion] = 2.1;
[CRS] = 'n/a'%['EPSG:' num2str(input('[CRS] EPSG code (just number) = '))];
[TimeZone] = 'UTC' %input('TimeZone (char) = ');
[Description] = 'Description of the dataset' %input('Description of data (char) = ');
         
[FieldDescription] = {
    'Date','Time of measurment'
    'Station_codename_1','Ground water level above sea level measured for a specified station/place 1'
    'Station_codename_2','Ground water level above sea level measured for a specified station/place 2'
    'Station_codename_n','Ground water level above sea level measured for a specified station/place n'
    };
[FieldType] = {
    'Date',5
    'Station_codename_1',32
    'Station_codename_2',32
    'Station_codename_n',32
    };
[FieldUnit] = {
    'Date','datenum'
    'Station_codename_1','m'
    'Station_codename_2','m'
    'Station_codename_n','m'
    };
[d] = struct();

d.Date = [];

d.Station_codename_1 = [];

d.Station_codename_2 = [];

d.Station_codename_n = [];

save('GDF_EpisodeName_Ground_Water_Level_example.mat')