%
% DESCRIPTION: Program to create the Shear Wave Velocity concentration 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] = {
    'Lat','Vector of real numbers containing Latitude'
    'Long','Vector of real numbers containing Longitude'
    'Elevation','Vector of real numbers containing elevation above sea level'
    'Vs30','Vector of real numbers containing shear wave velocities'};
[FieldType] = {
    'Lat',124
    'Long',134
    'Elevation',144
    'Vs30',30};
[FieldUnit] = {
    'Lat','deg'
    'Long','deg'
    'Elevation','m'
    'Vs30','m/s'};
[d] = struct();

d.Lat = [];

d.Long = [];

d.Elevation = [];

d.Vs30 = [];

save('GDF_EpizodName_Shear_Wave_Velocity.mat')