%
% DESCRIPTION: Program to create the Insitu 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] = 'UTC';%input('TimeZone (char) = ');
[Description] = 'Description of the dataset' %input('Description of data (char) = ');
         
[FieldDescription] = {
    'Date','Time of temperature measurement'
    'Sensor_1','Rock temperature measurement by sensor no.1'
    'Sensor_2','Rock temperature measurement by sensor no.2'
    'Sensor_n','Rock temperature measurement by sensor no.n'
    };
[FieldType] = {
    'Date',5
    'Sensor_1',22
    'Sensor_2',22
    'Sensor_n',22
    };
[FieldUnit] = {
    'Date','datenum'
    'Sensor_1','Celcious deg'
    'Sensor_2','Celcious deg'
    'Sensor_n','Celcious deg'
    };
[d] = struct();

d.Date = [];

d.Sensor_1 = [];

d.Sensor_2 = [];

d.Sensor_n = [];

save('GDF_EpisodeName_Insitu_Temperature_example.mat')