-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
364 lines (285 loc) · 8.8 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
# Makefile for gmtserver-admin
#
#
# Author: Paul Wessel, SOEST, U. of Hawaii.
#
# Update Date: 02-DEC-2023
#
#-------------------------------------------------------------------------------
# !! STOP EDITING HERE, THE REST IS FIXED !!
#-------------------------------------------------------------------------------
#-------------------------------------------------------------------------------
help::
@grep '^#!' Makefile | cut -c3-
#!-------------------- MAKE HELP FOR GMTSERVER-ADMIN --------------------
#!
#!make <target>, where <target> can be:
#!
#!BUILD AND EXPLORE A NEW DATASET (*) OR AN UPDATE TO EXISTING DATA (e.g., neptune_relief)
#! *1. Design neptune_relief.recipe and place in recipes directory
#! *2. Examine and run "scripts/srv_downsampler.sh neptune_relief -n"
#! 3. Run "scripts/srv_downsampler.sh neptune_relief" to down-sample the data
#! *4. Examine and run "scripts/srv_tiler.sh neptune_relief -n"
#! 5. Run "scripts/srv_tiler.sh neptune_relief" to tile the largest files
#! 6. Run "make place-neptune-relief" to place the new data on the candidate server
#! 7. Create the targets for the new data in this makefile
#! Note: for updates, steps 3 and 5 can be done via make neptune-relief
#!
#!REBUILD DATA SETS LOCALLY IN STAGING DIRECTORY
#! 1. To make all the planets, run "make planets"
#! 2. To make all Earth data set, run "make earth"
#! 3. To make just all Earth topography, run "make earth-topo"
#! 4. To make just the GEBCO Earth topography, run "make earth-gebco"
#!
#!MANAGE DATA ON SERVER CANDIDATE:
#! candidate-delete : Remove ALL data sets from the server dir candidate
#! candidate-release : rsync ALL data from staging directory to server dir candidate
#! candidate-info : Rebuild the gmt_data_server.txt file for server dir candidate
#!
#!UPDATE PUBLIC SERVER OCEANIA:
#! server-release : rsync ALL data and gmt_data_server.txt from candidate server to public server oceania
#!
#!UPDATE PUBLIC SERVER TEST:
#! test-release : rsync ALL data and gmt_data_server.txt from candidate server to the guru test server
#!
#!MANAGE DATA ON SERVER STATIC:
#! static-delete : Remove ALL data sets from the server dir static
#! static-release : Update all files needed from oceania to the server dir static
#!-----------------------------------------------------------------------
####################
# SERVER (candidate)
####################
# Completely wipe the candidate/server directory on the candidate server
candidate-delete:
ssh candidate.generic-mapping-tools.org "rm -rf /export/gmtserver/gmt/candidate/server; mkdir /export/gmtserver/gmt/candidate/server"
candidate-release:
scripts/candidate-release.sh
scripts/srv_candidate_server.sh
candidate-info:
scripts/srv_candidate_server.sh
####################
# SERVER (static)
####################
static-delete:
ssh static.generic-mapping-tools.org "rm -rf /export/gmtserver/gmt/static/server; mkdir /export/gmtserver/gmt/static/server"
static-release:
scripts/static-release.sh
scripts/srv_candidate_server.sh
####################
# SERVER (test)
####################
test-delete:
ssh test.generic-mapping-tools.org "rm -rf /export/gmtserver/gmt/test/server; mkdir /export/gmtserver/gmt/test/server"
test-release:
scripts/test-release.sh
####################
# SERVER (oceania)
####################
server-release:
scripts/server-release.sh
earth:
make earth-age
make earth-dist
make earth-grav
make earth-mag
make earth-mask
make earth-topo
planets:
make mars-relief
make moon-relief
make mercury-relief
make pluto-relief
make venus-relief
#----------------------------------
earth-topo:
make earth-gebco
make earth-gebcosi
make earth-relief
make earth-synbath
earth-grav:
make earth-faa
make earth-faaerror
make earth-geoid
make earth-edefl
make earth-mdt
make earth-mss
make earth-ndefl
make earth-vgg
earth-mag:
make earth-emag
make earth-emag4km
make earth-wdmam
earth-age:
scripts/srv_downsampler.sh earth_age
scripts/srv_tiler.sh earth_age
earth-dist:
scripts/srv_downsampler.sh earth_dist
scripts/srv_tiler.sh earth_dist
earth-images:
make earth-day
make earth-night
earth-day:
scripts/srv_downsampler.sh earth_day
earth-night:
scripts/srv_downsampler.sh earth_night
earth-gebco:
scripts/srv_downsampler.sh earth_gebco
scripts/srv_tiler.sh earth_gebco
earth-gebcosi:
scripts/srv_downsampler.sh earth_gebcosi
scripts/srv_tiler.sh earth_gebcosi
earth-relief:
scripts/srv_downsampler.sh earth_relief
scripts/srv_tiler.sh earth_relief
earth-synbath:
scripts/srv_downsampler.sh earth_synbath
scripts/srv_tiler.sh earth_synbath
earth-faa:
scripts/srv_downsampler.sh earth_faa
scripts/srv_tiler.sh earth_faa
earth-faaerror:
scripts/srv_downsampler.sh earth_faaerror
scripts/srv_tiler.sh earth_faaerror
earth-geoid:
scripts/srv_downsampler.sh earth_geoid
scripts/srv_tiler.sh earth_geoid
earth-edefl:
scripts/srv_downsampler.sh earth_edefl
scripts/srv_tiler.sh earth_edefl
earth-mdt:
scripts/srv_downsampler.sh earth_mdt
scripts/srv_tiler.sh earth_mdt
earth-mss:
scripts/srv_downsampler.sh earth_mss
scripts/srv_tiler.sh earth_mss
earth-ndefl:
scripts/srv_downsampler.sh earth_ndefl
scripts/srv_tiler.sh earth_ndefl
earth-vgg:
scripts/srv_downsampler.sh earth_vgg
scripts/srv_tiler.sh earth_vgg
earth-wdmam:
scripts/srv_downsampler.sh earth_wdmam
scripts/srv_tiler.sh earth_wdmam
earth-emag:
scripts/srv_downsampler.sh earth_mag
scripts/srv_tiler.sh earth_mag
earth-emag4km:
scripts/srv_downsampler.sh earth_mag4km
scripts/srv_tiler.sh earth_mag4km
earth-mask:
scripts/srv_earthmasks.sh earth_mask
mars-relief:
scripts/srv_downsampler.sh mars_relief
scripts/srv_tiler.sh mars_relief
mercury-relief:
scripts/srv_downsampler.sh mercury_relief
scripts/srv_tiler.sh mercury_relief
moon-relief:
scripts/srv_downsampler.sh moon_relief
scripts/srv_tiler.sh moon_relief
pluto-relief:
scripts/srv_downsampler.sh pluto_relief
scripts/srv_tiler.sh pluto_relief
venus-relief:
scripts/srv_downsampler.sh venus_relief
scripts/srv_tiler.sh venus_relief
#####################################################
# Upload Earth and planetary data to candidate server
#####################################################
# Uploads everything
place-all:
make place-earth
make place-planets
# Uploads everything about Earth
place-earth:
make place-earth-age
make place-earth-dist
make place-earth-topo
make place-earth-grav
make place-earth-mag
make place-earth-mask
# Uploads all Earth age datasets
place-earth-age:
scripts/place_candidate.sh earth_age
# Uploads all Earth dist datasets
place-earth-dist:
scripts/place_candidate.sh earth_dist
# Uploads all Earth image datasets
place-earth-images:
make place-earth-day
make place-earth-night
place-earth-day:
scripts/place_candidate.sh earth_day
place-earth-night:
scripts/place_candidate.sh earth_night
# Uploads all Earth gravity/geodesy datasets
place-earth-grav:
make place-earth-edefl
make place-earth-faa
make place-earth-faaerror
make place-earth-geoid
make place-earth-mdt
make place-earth-mss
make place-earth-ndefl
make place-earth-vgg
# Uploads all Earth magnetics datasets
place-earth-mag:
make place-earth-emag
make place-earth-emag4km
make place-earth-wdmam
# Uploads all Earth relief datasets
place-earth-topo:
make place-earth-gebco
make place-earth-gebcosi
make place-earth-relief
make place-earth-synbath
place-earth-edefl:
scripts/place_candidate.sh earth_edefl
place-earth-emag:
scripts/place_candidate.sh earth_mag
place-earth-emag4km:
scripts/place_candidate.sh earth_mag4km
place-earth-faa:
scripts/place_candidate.sh earth_faa
place-earth-faaerror:
scripts/place_candidate.sh earth_faaerror
place-earth-geoid:
scripts/place_candidate.sh earth_geoid
place-earth-gebco:
scripts/place_candidate.sh earth_gebco
place-earth-gebcosi:
scripts/place_candidate.sh earth_gebcosi
place-earth-mask:
scripts/place_candidate.sh earth_mask
place-earth-mdt:
scripts/place_candidate.sh earth_mdt
place-earth-mss:
scripts/place_candidate.sh earth_mss
place-earth-ndefl:
scripts/place_candidate.sh earth_ndefl
place-earth-relief:
scripts/place_candidate.sh earth_relief
place-earth-synbath:
scripts/place_candidate.sh earth_synbath
place-earth-vgg:
scripts/place_candidate.sh earth_vgg
place-earth-wdmam:
scripts/place_candidate.sh earth_wdmam
# Upload planetary data to candidate server
place-planets:
make place-mars-relief
make place-mercury-relief
make place-moon-relief
make place-pluto-relief
make place-venus-relief
place-mars-relief:
scripts/place_candidate.sh mars_relief
place-mercury-relief:
scripts/place_candidate.sh mercury_relief
place-moon-relief:
scripts/place_candidate.sh moon_relief
place-pluto-relief:
scripts/place_candidate.sh pluto_relief
place-venus-relief:
scripts/place_candidate.sh venus_relief