%
% DESCRIPTION: Program to create the Fracking Process Parameters 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 measurement'
    'Maximum_pressure','Maximum pressure obtained during fracking stage'
    'Total_proppant','Total amount of proppant'
    'Maximum_proppant_concentration','Maximum proppant concentration'
    'Total_volume_of_slickwater','Total volume of slickwater'
    'Total_volume_of_injected_fluid','Total volume of injected fluid'
    };

[FieldType] = {
    'Date',5
    'Maximum_pressure',143
    'Total_proppant',143
    'Maximum_proppant_concentration',143
    'Total_volume_of_slickwater',143
    'Total_volume_of_injected_fluid',143
    };

[FieldUnit] = {
    'Date','datenum'
    'Maximum_pressure','bar'
    'Total_proppant','ton'
    'Maximum_proppant_concentration','kg/m^3'
    'Total_volume_of_slickwater','m^3'
    'Total_volume_of_injected_fluid','m^3'
    };
[d] = struct();

d.Date = [];

d.Maximum_pressure = [];

d.Total_proppant = [];

d.Maximum_proppant_concentration = [];

d.Total_volume_of_slickwater = [];

d.Total_volume_of_injected_fluid = [];



save('GDF_EpisodeName_Fracking_Process_Parameters_example.mat')