% DNAGMagneticsProfile.m  L Braile  4/12/06
% DNAG Magnetics ftp://ftp.ngdc.noaa.gov/Solid_Earth/Aeromag/gna/ascii_xyz/
% http://www.ngdc.noaa.gov/seg/fliers/se-2004.shtml
% Profile on latitude = 35.666309
% Begins at ~ -125 deg W lon to ~ -105 deg W lon
% Basin and Range is about -120 to -110
% 480 points, dx = 3.7641 km
% See interpolation at end of data (below)
% W Lon           N Lat      nT
A = [-124.999481     35.666309   -158
-124.957817     35.666309   -163
-124.916145     35.666309    -85
-124.874481     35.666309    -74
-124.832809     35.666309    -54
-124.791145     35.666309    -40
-124.749481     35.666309    -36
-124.707809     35.666309    -16
-124.666145     35.666309     33
-124.624481     35.666309     87
-124.582809     35.666309    114
-124.541145     35.666309    144
-124.499474     35.666309    218
-124.457809     35.666309    291
-124.416145     35.666309    270
-124.374474     35.666309    248
-124.332809     35.666309    198
-124.291145     35.666309    106
-124.249474     35.666309     47
-124.207809     35.666309     30
-124.166138     35.666309     21
-124.124474     35.666309      9
-124.082809     35.666309     -8
-124.041138     35.666309    -30
-123.999474     35.666309    -48
-123.957809     35.666309    -55
-123.916138     35.666309    -46
-123.874474     35.666309    -27
-123.832802     35.666309    -13
-123.791138     35.666309    -12
-123.749474     35.666309    -21
-123.707802     35.666309    -34
-123.666138     35.666309    -38
-123.624474     35.666309    -31
-123.582802     35.666309     -9
-123.541138     35.666309      5
-123.499466     35.666309     -9
-123.457802     35.666309    -15
-123.416138     35.666309    -11
-123.374466     35.666309    -11
-123.332802     35.666309    -11
-123.291130     35.666309     -6
-123.249466     35.666309      0
-123.207802     35.666309    -14
-123.166130     35.666309    -77
-123.124466     35.666309   -126
-123.082802     35.666309   -122
-123.041130     35.666309    -98
-122.999466     35.666309    -69
-122.957794     35.666309    -47
-122.916130     35.666309    -32
-122.874466     35.666309    -13
-122.832794     35.666309     23
-122.791130     35.666309     61
-122.749466     35.666309     82
-122.707794     35.666309     92
-122.666130     35.666309     95
-122.624458     35.666309     96
-122.582794     35.666309     91
-122.541130     35.666309     92
-122.499458     35.666309     99
-122.457794     35.666309     90
-122.416130     35.666309     47
-122.374458     35.666309      3
-122.332794     35.666309    -14
-122.291122     35.666309    -12
-122.249458     35.666309     -8
-122.207794     35.666309     -6
-122.166122     35.666309     -8
-122.124458     35.666309     -8
-122.082794     35.666309     -7
-122.041122     35.666309     -5
-121.999458     35.666309     -3
-121.957787     35.666309     -1
-121.916122     35.666309      0
-121.874458     35.666309      0
-121.832787     35.666309      2
-121.791122     35.666309      2
-121.749458     35.666309      1
-121.707787     35.666309      0
-121.666122     35.666309      0
-121.624451     35.666309      0
-121.582787     35.666309     -1
-121.541122     35.666309     -1
-121.499451     35.666309     -2
-121.457787     35.666309     -2
-121.416122     35.666309     -3
-121.374451     35.666309     -4
-121.332787     35.666309     -5
-121.291115     35.666309     -1
-121.249451     35.666309      4
-121.207787     35.666309      0
-121.166115     35.666309      1
-121.124451     35.666309     24
-121.082787     35.666309     31
-121.041115     35.666309    -25
-120.999451     35.666309   -108
-120.957779     35.666309   -131
-120.916115     35.666309   -135
-120.874451     35.666309   -142
-120.832779     35.666309   -134
-120.791115     35.666309   -102
-120.749451     35.666309    -50
-120.707779     35.666309     51
-120.666115     35.666309     84
-120.624443     35.666309     82
-120.582779     35.666309     51
-120.541115     35.666309     17
-120.499443     35.666309     -4
-120.457779     35.666309     -4
-120.416107     35.666309     10
-120.374443     35.666309     43
-120.332779     35.666309     22
-120.291107     35.666309    -18
-120.249443     35.666309     33
-120.207779     35.666309    185
-120.166107     35.666309    349
-120.124443     35.666309    429
-120.082771     35.666309    406
-120.041107     35.666309    325
-119.999443     35.666309    223
-119.957771     35.666309    113
-119.916107     35.666309     95
-119.874443     35.666309     99
-119.832771     35.666309     95
-119.791107     35.666309    111
-119.749435     35.666309    147
-119.707771     35.666309    183
-119.666107     35.666309    204
-119.624435     35.666309    212
-119.582771     35.666309    215
-119.541107     35.666309    213
-119.499435     35.666309    210
-119.457771     35.666309    213
-119.416100     35.666309    233
-119.374435     35.666309    239
-119.332771     35.666309    240
-119.291100     35.666309    256
-119.249435     35.666309    300
-119.207771     35.666309    357
-119.166100     35.666309    375
-119.124435     35.666309    344
-119.082764     35.666309    240
-119.041100     35.666309     57
-118.999435     35.666309    -60
-118.957764     35.666309   -134
-118.916100     35.666309   -145
-118.874435     35.666309     75
-118.832764     35.666309     97
-118.791100     35.666309    143
-118.749428     35.666309    214
-118.707764     35.666309     44
-118.666100     35.666309    -62
-118.624428     35.666309    -90
-118.582764     35.666309    -97
-118.541100     35.666309    -98
-118.499428     35.666309    -88
-118.457764     35.666309    -90
-118.416092     35.666309    -93
-118.374428     35.666309    -77
-118.332764     35.666309     -8
-118.291092     35.666309    121
-118.249428     35.666309    176
-118.207764     35.666309    136
-118.166092     35.666309    170
-118.124428     35.666309    193
-118.082756     35.666309     68
-118.041092     35.666309     49
-117.999428     35.666309     91
-117.957756     35.666309    104
-117.916092     35.666309     41
-117.874420     35.666309    -45
-117.832756     35.666309    -62
-117.791092     35.666309    -42
-117.749420     35.666309     15
-117.707756     35.666309     45
-117.666092     35.666309     64
-117.624420     35.666309    177
-117.582756     35.666309    282
-117.541084     35.666309     89
-117.499420     35.666309    -98
-117.457756     35.666309    247
-117.416084     35.666309    313
-117.374420     35.666309    242
-117.332756     35.666309    253
-117.291084     35.666309    281
-117.249420     35.666309     27
-117.207748     35.666309    -71
-117.166084     35.666309    -72
-117.124420     35.666309    -27
-117.082748     35.666309      0
-117.041084     35.666309     76
-116.999420     35.666309    202
-116.957748     35.666309    202
-116.916084     35.666309    133
-116.874413     35.666309     95
-116.832748     35.666309     60
-116.791084     35.666309     74
-116.749413     35.666309      8
-116.707748     35.666309    -71
-116.666084     35.666309    -81
-116.624413     35.666309    -79
-116.582748     35.666309    -59
-116.541077     35.666309     46
-116.499413     35.666309      5
-116.457748     35.666309    -71
-116.416077     35.666309    -68
-116.374413     35.666309    -64
-116.332748     35.666309    -75
-116.291077     35.666309    -69
-116.249413     35.666309    -28
-116.207741     35.666309    -61
-116.166077     35.666309    -67
-116.124413     35.666309    -40
-116.082741     35.666309    -11
-116.041077     35.666309      2
-115.999413     35.666309     13
-115.957741     35.666309     28
-115.916077     35.666309     28
-115.874405     35.666309     -5
-115.832741     35.666309    -58
-115.791077     35.666309   -107
-115.749405     35.666309   -136
-115.707741     35.666309   -146
-115.666077     35.666309   -150
-115.624405     35.666309   -148
-115.582741     35.666309   -129
-115.541069     35.666309    -94
-115.499405     35.666309    -58
-115.457741     35.666309    -39
-115.416069     35.666309    -25
-115.374405     35.666309    -14
-115.332733     35.666309    -33
-115.291069     35.666309    -48
-115.249405     35.666309     26
-115.207733     35.666309     48
-115.166069     35.666309      6
-115.124405     35.666309   -158
-115.082733     35.666309   -207
-115.041069     35.666309   -149
-114.999397     35.666309    -90
-114.957733     35.666309    -24
-114.916069     35.666309      9
-114.874397     35.666309    100
-114.832733     35.666309    227
-114.791069     35.666309    431
-114.749397     35.666309    281
-114.707733     35.666309     68
-114.666061     35.666309    -50
-114.624397     35.666309    -37
-114.582733     35.666309    -51
-114.541061     35.666309    -87
-114.499397     35.666309   -131
-114.457733     35.666309   -201
-114.416061     35.666309   -248
-114.374397     35.666309   -132
-114.332726     35.666309    -47
-114.291061     35.666309   -113
-114.249397     35.666309   -147
-114.207726     35.666309   -211
-114.166061     35.666309   -227
-114.124397     35.666309    -82
-114.082726     35.666309    -37
-114.041061     35.666309     45
-113.999390     35.666309    -37
-113.957726     35.666309    -66
-113.916061     35.666309     32
-113.874390     35.666309    231
-113.832726     35.666309    217
-113.791061     35.666309      7
-113.749390     35.666309    -40
-113.707726     35.666309   -133
-113.666054     35.666309   -115
-113.624390     35.666309    -99
-113.582726     35.666309    -76
-113.541054     35.666309    -55
-113.499390     35.666309    -57
-113.457726     35.666309   -147
-113.416054     35.666309   -187
-113.374390     35.666309   -180
-113.332718     35.666309   -123
-113.291054     35.666309     35
-113.249390     35.666309    167
-113.207718     35.666309    243
-113.166054     35.666309     -8
-113.124390     35.666309   -113
-113.082718     35.666309   -220
-113.041054     35.666309   -199
-112.999382     35.666309    -31
-112.957718     35.666309     38
-112.916054     35.666309    -48
-112.874382     35.666309    -60
-112.832718     35.666309    -14
-112.791054     35.666309    -35
-112.749382     35.666309    -73
-112.707718     35.666309   -140
-112.666046     35.666309   -139
-112.624382     35.666309   -126
-112.582718     35.666309   -116
-112.541046     35.666309    -87
-112.499382     35.666309    -12
-112.457710     35.666309     61
-112.416046     35.666309    -25
-112.374382     35.666309    -55
-112.332710     35.666309    -33
-112.291046     35.666309    -61
-112.249382     35.666309    -44
-112.207710     35.666309      0
-112.166046     35.666309    145
-112.124374     35.666309    204
-112.082710     35.666309    211
-112.041046     35.666309    208
-111.999374     35.666309    175
-111.957710     35.666309    119
-111.916046     35.666309     69
-111.874374     35.666309    108
-111.832710     35.666309    229
-111.791039     35.666309    285
-111.749374     35.666309    168
-111.707710     35.666309    -21
-111.666039     35.666309    -13
-111.624374     35.666309    -10
-111.582710     35.666309      1
-111.541039     35.666309    125
-111.499374     35.666309    139
-111.457703     35.666309     83
-111.416039     35.666309     11
-111.374374     35.666309     70
-111.332703     35.666309     99
-111.291039     35.666309    126
-111.249374     35.666309     56
-111.207703     35.666309     59
-111.166039     35.666309     43
-111.124367     35.666309    123
-111.082703     35.666309    321
-111.041039     35.666309    257
-110.999367     35.666309     95
-110.957703     35.666309     48
-110.916039     35.666309     35
-110.874367     35.666309    -12
-110.832703     35.666309    -72
-110.791031     35.666309    -60
-110.749367     35.666309    -15
-110.707703     35.666309     48
-110.666031     35.666309     86
-110.624367     35.666309     71
-110.582703     35.666309     49
-110.541031     35.666309     17
-110.499367     35.666309     -1
-110.457695     35.666309     30
-110.416031     35.666309    147
-110.374367     35.666309    173
-110.332695     35.666309    122
-110.291031     35.666309    120
-110.249367     35.666309    154
-110.207695     35.666309    148
-110.166031     35.666309     87
-110.124359     35.666309     53
-110.082695     35.666309     73
-110.041031     35.666309     68
-109.999359     35.666309    121
-109.957695     35.666309    112
-109.916023     35.666309    129
-109.874359     35.666309    181
-109.832695     35.666309    251
-109.791023     35.666309    285
-109.749359     35.666309    273
-109.707695     35.666309    217
-109.666023     35.666309    201
-109.624359     35.666309    188
-109.582687     35.666309    181
-109.541023     35.666309    194
-109.499359     35.666309    210
-109.457687     35.666309    209
-109.416023     35.666309    103
-109.374359     35.666309     56
-109.332687     35.666309     50
-109.291023     35.666309     33
-109.249352     35.666309     12
-109.207687     35.666309     -5
-109.166023     35.666309    -40
-109.124352     35.666309    -87
-109.082687     35.666309    -90
-109.041023     35.666309    -96
-108.999352     35.666309    -99
-108.957687     35.666309   -104
-108.916016     35.666309   -113
-108.874352     35.666309   -125
-108.832687     35.666309   -137
-108.791016     35.666309   -133
-108.749352     35.666309   -120
-108.707687     35.666309   -138
-108.666016     35.666309   -185
-108.624352     35.666309   -201
-108.582680     35.666309   -184
-108.541016     35.666309   -181
-108.499352     35.666309   -213
-108.457680     35.666309   -241
-108.416016     35.666309   -144
-108.374352     35.666309    -91
-108.332680     35.666309    -87
-108.291016     35.666309   -100
-108.249344     35.666309   -100
-108.207680     35.666309    -48
-108.166016     35.666309     36
-108.124344     35.666309     39
-108.082680     35.666309    -13
-108.041016     35.666309    -67
-107.999344     35.666309    -94
-107.957680     35.666309    -83
-107.916008     35.666309    -55
-107.874344     35.666309    -31
-107.832680     35.666309    -14
-107.791008     35.666309     -3
-107.749344     35.666309      7
-107.707680     35.666309     16
-107.666008     35.666309     20
-107.624344     35.666309     19
-107.582672     35.666309     13
-107.541008     35.666309     18
-107.499344     35.666309     52
-107.457672     35.666309    100
-107.416008     35.666309    125
-107.374344     35.666309    142
-107.332672     35.666309    146
-107.291008     35.666309    147
-107.249336     35.666309    142
-107.207672     35.666309    130
-107.166008     35.666309    122
-107.124336     35.666309    121
-107.082672     35.666309    114
-107.041000     35.666309    109
-106.999336     35.666309    100
-106.957672     35.666309     64
-106.916000     35.666309     22
-106.874336     35.666309     19
-106.832672     35.666309     66
-106.791000     35.666309    148
-106.749336     35.666309    229
-106.707664     35.666309    290
-106.666000     35.666309     43
-106.624336     35.666309   -118
-106.582664     35.666309   -136
-106.541000     35.666309    -88
-106.499336     35.666309    -56
-106.457664     35.666309    -45
-106.416000     35.666309    -68
-106.374329     35.666309   -101
-106.332664     35.666309   -136
-106.291000     35.666309   -163
-106.249329     35.666309   -174
-106.207664     35.666309   -178
-106.166000     35.666309   -180
-106.124329     35.666309   -175
-106.082664     35.666309   -177
-106.040993     35.666309   -176
-105.999329     35.666309   -161
-105.957664     35.666309    -94
-105.915993     35.666309     16
-105.874329     35.666309     51
-105.832664     35.666309     36
-105.790993     35.666309     22
-105.749329     35.666309     40
-105.707657     35.666309   -220
-105.665993     35.666309   -272
-105.624329     35.666309   -243
-105.582657     35.666309   -228
-105.540993     35.666309   -194
-105.499329     35.666309   -143
-105.457657     35.666309      0
-105.415993     35.666309     91
-105.374321     35.666309    149
-105.332657     35.666309    152
-105.290993     35.666309    101
-105.249321     35.666309     83
-105.207657     35.666309    163
-105.165993     35.666309    290
-105.124321     35.666309    352
-105.082657     35.666309    368
-105.040985     35.666309    348];
m = A(:,3);
dx = 3.7641;
maxx = 479*dx;
x = [0:dx:maxx];
xi = [0:1.0:1803]; % interpolate data to have 1 km spacing
mi = interp1(x,m,xi,'spline');
plot(xi,mi,'-r')
