%
% DESCRIPTION: Program to create the Shallow Velocity Profile 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 measurement point'
    'Lat','Latitude of the station'
    'Long','Longitude of the station'
    'Depth','Depth of the station from surface'
    'Vs','Velocity of S wave'
    
    'Vp','Velocity of P wave'
    };
[FieldType] = {
    'Name',3
    'Lat',1
    'Long',1
    'Depth',4
    'Vs',4
    
    'Vp',4
    };
[FieldUnit] = {
    'Name','char'
    'Lat','deg'
    'Long','deg'
    'Depth','m'
    'Vs','m/s'
    
    'Vp','m/s'
    };
[d] = struct();

d.Name = [];

d.Lat = [];

d.Long = [];

d.Depth = [];

d.Vs = [];

d.Vp = [];


save('GDF_EpisodeName_Shallow_Velocity_Profile_example.mat')