%
% DESCRIPTION: Program to create the Shallow Groundwater Temperature 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] = 'n/a' %input('TimeZone (char) = ');
[Description] = 'Description of the dataset' %input('Description of data (char) = ');
         
[FieldDescription] = {
    'Name','Code name of the well where the measurement took place'
    'Depth','Depth of the shallow groundwater temperature measurement'
    'Temperature','Shallow groundwater temperature'
    
    'Elevation','Elevation in metres above sea level of the shallow groundwater temperature measurement'
    };
[FieldType] = {
    'Name',3
    'Depth',4
    'Temperature',22
    
    'Elevation',4
    };
[FieldUnit] = {
    'Name','char'
    'Depth','m'
    'Temperature','Celsius deg'
    
    'Elevation','m'
    };
[d] = struct();

d.Name = [];

d.Depth = [];

d.Temperature = [];

d.Elevation = [];



save('GDF_EpisodeName_Shallow_Groundwater_Temperature_example.mat')