%
% DESCRIPTION: Program to create the Rock 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'
    'Elevation','Elevation in metres above sea level of the rock temperature measurement'
    'Temperature','Rock temperature'
    
    'Depth','Depth of the rock temperature measurement'
    };
[FieldType] = {
    'Name',3
    'Elevation',4
    'Temperature',22
    
    'Depth',4
    };
[FieldUnit] = {
    'Name','char'
    'Elevation','m'
    'Temperature','Celsius deg'
    
    'Depth','m'
    };
[d] = struct();

d.Name = [];

d.Elevation = [];

d.Temperature = [];

d.Depth = [];



save('GDF_EpisodeName_Rock_Temperature_example.mat')