1
|
# Full sequence of (bash) commands used to transform the original
|
2
|
# organisms@jupiter home directory structure to the new layers@atlas
|
3
|
# home directory structure. This was done after first rsyncing the
|
4
|
# entire ~organisms home directory from jupiter onto atlas at
|
5
|
# /home/organisms, and creating a new 'layers' user with home directory
|
6
|
# /home/layers.
|
7
|
#
|
8
|
# Jim Regetz
|
9
|
# NCEAS
|
10
|
# Created on 23-Feb-2012
|
11
|
|
12
|
export ORGANISMS="/home/organisms"
|
13
|
export LAYERS="/home/layers"
|
14
|
export REPO="."
|
15
|
|
16
|
#=======================================================================
|
17
|
# set up some directories
|
18
|
#=======================================================================
|
19
|
|
20
|
# create master home for all datasets
|
21
|
mkdir $LAYERS/data
|
22
|
mkdir $LAYERS/data/climate
|
23
|
mkdir $LAYERS/data/terrain
|
24
|
mkdir $LAYERS/data/land-cover
|
25
|
# create (temporary) home for associated readmes, documentation, etc
|
26
|
mkdir $LAYERS/documentation
|
27
|
mkdir $LAYERS/documentation/climate
|
28
|
mkdir $LAYERS/documentation/terrain
|
29
|
mkdir $LAYERS/documentation/land-cover
|
30
|
# create (temporary) home for processing code
|
31
|
mkdir $LAYERS/code
|
32
|
mkdir $LAYERS/code/climate
|
33
|
mkdir $LAYERS/code/terrain
|
34
|
mkdir $LAYERS/code/land-cover
|
35
|
# create (temporary?) home for everything else
|
36
|
mkdir $LAYERS/commons
|
37
|
mkdir $LAYERS/commons/terrain
|
38
|
mkdir $LAYERS/commons/land-cover
|
39
|
mkdir $LAYERS/commons/cruft
|
40
|
|
41
|
#=======================================================================
|
42
|
# carry out file migration, reorganization, and cleanup
|
43
|
#=======================================================================
|
44
|
|
45
|
#========#
|
46
|
# Marine #
|
47
|
#========#
|
48
|
|
49
|
# easy one ... just delete, as we're retaining this work on the original
|
50
|
# server
|
51
|
rm -rf Marine/
|
52
|
|
53
|
|
54
|
#=====#
|
55
|
# DEM #
|
56
|
#=====#
|
57
|
|
58
|
#
|
59
|
# SRTM 1km
|
60
|
#
|
61
|
|
62
|
# migrate original rar file
|
63
|
mkdir $LAYERS/data/terrain/dem-cgiar-srtm-1km-ascii
|
64
|
mv $ORGANISMS/DEM/SRTM_1km_ASCII.rar $LAYERS/data/terrain/dem-cgiar-srtm-1km-ascii/srtm_1km_ascii.rar
|
65
|
# migrate clipped/reprojected bil
|
66
|
mv $ORGANISMS/Oregon_SRTM $LAYERS/data/terrain/dem-cgiar-srtm-1km-OR/
|
67
|
|
68
|
#
|
69
|
# CGIAR SRTM 90m
|
70
|
#
|
71
|
|
72
|
# SRTM 90m zips
|
73
|
mv $ORGANISMS/DEM/cgiarSrtm/archive $LAYERS/data/terrain/dem-cgiar-srtm-90m-zips
|
74
|
|
75
|
# SRTM 90m tiles and processed descendents
|
76
|
# first flatten out SRTM 90m directories
|
77
|
mv $ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1/Tiles_Resampled/Mosaiced \
|
78
|
$ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1_Resampled_Mosaiced
|
79
|
mv $ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1/Tiles_Resampled \
|
80
|
$ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1_Resampled
|
81
|
# now migrate to ~layers
|
82
|
mv $ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1 \
|
83
|
$LAYERS/data/terrain/dem-cgiar-srtm-90m-asc
|
84
|
mv $ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1_Resampled \
|
85
|
$LAYERS/data/terrain/dem-cgiar-srtm-90m-asc-resamp
|
86
|
mv $ORGANISMS/DEM/cgiarSrtm/SRTM_90m_ASCII_4_1_Resampled_Mosaiced \
|
87
|
$LAYERS/data/terrain/dem-cgiar-srtm-90m-asc-resamp-mosaic
|
88
|
|
89
|
# SRTM 90m tile index (zipped)
|
90
|
mkdir $LAYERS/data/terrain/dem-cgiar-srtm-90m-index-zip
|
91
|
mv $ORGANISMS/DEM/cgiarSrtm/srtm-tile-index_v4.1_shp.zip \
|
92
|
$LAYERS/data/terrain/dem-cgiar-srtm-90m-index-zip/
|
93
|
|
94
|
# SRTM 90m tile index (unzipped)
|
95
|
mv $ORGANISMS/DEM/cgiarSrtm/index \
|
96
|
$LAYERS/data/terrain/dem-cgiar-srtm-90m-index
|
97
|
|
98
|
# move readme to deal with later
|
99
|
mv $ORGANISMS/DEM/cgiarSrtm/README.txt $LAYERS/documentation/terrain/cgiar-srtm-90m-readme.txt
|
100
|
|
101
|
# remove now-empty directory
|
102
|
rmdir $ORGANISMS/DEM/cgiarSrtm
|
103
|
|
104
|
#
|
105
|
# ASTER GDEM1
|
106
|
#
|
107
|
|
108
|
# --- first do cleanup ---
|
109
|
# remove duplicate files (confirmed by diffing)
|
110
|
rm $ORGANISMS/DEM/asterGdem/ListOfEurasiaDropouts.txt
|
111
|
rm $ORGANISMS/DEM/asterGdem/BadFileCheckLogVulcanAfterNewFiles.txt
|
112
|
rm $ORGANISMS/DEM/asterGdem/BadFileCheckLogBeforeCorrection.txt
|
113
|
# remove misc trivial/obsolete scripts
|
114
|
rm $ORGANISMS/DEM/asterGdem/translateToImg.sh
|
115
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/replacedJuly4/copyDownTifs.sh
|
116
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/checkBadAsterGDEMFiles.sh
|
117
|
# remove file listings and/or gdalinfo output with insufficient context
|
118
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/BadFileCheckLogVulcanAfterNewFiles.txt
|
119
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/ListOfEurasiaDropouts.txt
|
120
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/BadFileCheckLogBeforeCorrection.txt
|
121
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/replacedJuly4/Juy4NumFiles.txt
|
122
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/replacedJuly4/July4NumFiles.txt
|
123
|
rm $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/replacedJuly4/July4Files.txt
|
124
|
# remove now-empty directory
|
125
|
rmdir $ORGANISMS/DEM/asterGdem/incorrectTilesJuly2011/replacedJuly4
|
126
|
# remove reeves-generated ArcGIS aux/rrd files
|
127
|
find $ORGANISMS/DEM/asterGdem/ -name "*.aux" -exec rm {} \;
|
128
|
find $ORGANISMS/DEM/asterGdem/ -name "*.rrd" -exec rm {} \;
|
129
|
# remove gdal-generated metadata files
|
130
|
find $ORGANISMS/DEM/asterGdem/ -name "*.tif.aux.xml" -exec rm {} \;
|
131
|
find $ORGANISMS/DEM/asterGdem/ -name "*.dem.aux.xml" -exec rm {} \;
|
132
|
# remove img tiles (for which we have the original tifs in all cases)
|
133
|
rm $ORGANISMS/DEM/asterGdem/TilesBelowN59/*.{img,img.aux.xml}
|
134
|
|
135
|
# migrate Robinson R scripts
|
136
|
mv -i $ORGANISMS/DEM/asterGdem/R_files \
|
137
|
$LAYERS/code/terrain/asterGdem
|
138
|
# migrate Robinson GDEM1 assessment docs (incl QGIS project files)
|
139
|
mkdir $LAYERS/commons/terrain/gdem-v1
|
140
|
mv -i $ORGANISMS/DEM/asterGdem/*.ods \
|
141
|
$LAYERS/commons/terrain/gdem-v1/
|
142
|
find $ORGANISMS/DEM/asterGdem -name "*.qgs" -exec mv {} \
|
143
|
$LAYERS/commons/terrain/gdem-v1/ \;
|
144
|
# migrate remaining tree as the GDEM v1 dataset itself
|
145
|
mv $ORGANISMS/DEM/asterGdem \
|
146
|
$LAYERS/data/terrain/dem-aster-gdem1-30m-orig
|
147
|
|
148
|
#
|
149
|
# ASTER GDEM2
|
150
|
#
|
151
|
|
152
|
# remove gdal-generated metadata files
|
153
|
rm $ORGANISMS/DEM/asterGdem2/*.tif.aux.xml
|
154
|
rm $ORGANISMS/DEM/asterGdem2/90m_NoPixelOffset/*.tif.aux.xml
|
155
|
rm $ORGANISMS/DEM/asterGdem2/90m_NoPixelOffset/Mosaiced/N59to60/*.tif.aux.xml
|
156
|
|
157
|
# first flatten out directories
|
158
|
mv $ORGANISMS/DEM/asterGdem2/90m_NoPixelOffset/Mosaiced/N59to60 \
|
159
|
$ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset-Mosaiced-N59to60
|
160
|
mv $ORGANISMS/DEM/asterGdem2/90m_NoPixelOffset/Mosaiced \
|
161
|
$ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset-Mosaiced
|
162
|
mv $ORGANISMS/DEM/asterGdem2/90m_NoPixelOffset \
|
163
|
$ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset
|
164
|
# now migrate to ~layers
|
165
|
mv $ORGANISMS/DEM/asterGdem2 \
|
166
|
$LAYERS/data/terrain/dem-aster-gdem2-30m-orig
|
167
|
mv $ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset \
|
168
|
$LAYERS/data/terrain/dem-aster-gdem2-90m-resamp
|
169
|
mv $ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset-Mosaiced \
|
170
|
$LAYERS/data/terrain/dem-aster-gdem2-90m-resamp-mosaic-N60to83
|
171
|
mv $ORGANISMS/DEM/asterGdem2-90m_NoPixelOffset-Mosaiced-N59to60 \
|
172
|
$LAYERS/data/terrain/dem-aster-gdem2-90m-resamp-mosaic-N59to60
|
173
|
|
174
|
#
|
175
|
# CDED
|
176
|
#
|
177
|
|
178
|
# remove duplicate files (confirmed by diffing)
|
179
|
rm $ORGANISMS/DEM/CanadaDED/084b\ \(1\).zip
|
180
|
rm $ORGANISMS/DEM/CanadaDED/Monday/114p\ \(1\).zip
|
181
|
rm $ORGANISMS/DEM/CanadaDED/mosaicMostCanadaDem.sh
|
182
|
rm $ORGANISMS/DEM/CanadaDED/Monday/mergeCanada104105.{tif,aux,rrd}
|
183
|
# migrate zips
|
184
|
mkdir $LAYERS/data/terrain/dem-cded-zip
|
185
|
mv -i $ORGANISMS/DEM/CanadaDED/0*.zip \
|
186
|
$LAYERS/data/terrain/dem-cded-zip/
|
187
|
mv -i $ORGANISMS/DEM/CanadaDED/Monday/1*.zip \
|
188
|
$LAYERS/data/terrain/dem-cded-zip/
|
189
|
# migrate documentation
|
190
|
mv -i $ORGANISMS/DEM/CanadaDED/CanadaDEDTechRefManual.pdf \
|
191
|
$LAYERS/documentation/terrain/cded-TechRefManual.pdf
|
192
|
# migrate some stuff to experimental, for now...
|
193
|
mkdir $LAYERS/commons/terrain/dem-cded
|
194
|
# ... vrt files, what the heck
|
195
|
mv -i $ORGANISMS/DEM/CanadaDED/*demFile.vrt \
|
196
|
$LAYERS/commons/terrain/dem-cded/
|
197
|
# ... misc scripts and log files
|
198
|
mv -i $ORGANISMS/DEM/CanadaDED/in*DemFile.txt \
|
199
|
$LAYERS/commons/terrain/dem-cded/
|
200
|
mv -i $ORGANISMS/DEM/CanadaDED/unzipFiles.sh \
|
201
|
$LAYERS/commons/terrain/dem-cded/unzipFiles_0.sh
|
202
|
mv -i $ORGANISMS/DEM/CanadaDED/Monday/unzipFiles.sh \
|
203
|
$LAYERS/commons/terrain/dem-cded/unzipFiles_1.sh
|
204
|
mv -i $ORGANISMS/DEM/CanadaDED/{.,/Monday}/*.sh \
|
205
|
$LAYERS/commons/terrain/dem-cded/
|
206
|
mv -i $ORGANISMS/DEM/CanadaDED/*.log \
|
207
|
$LAYERS/commons/terrain/dem-cded/
|
208
|
mv -i $ORGANISMS/DEM/CanadaDED/moscomps \
|
209
|
$LAYERS/commons/terrain/dem-cded/
|
210
|
mv -i $ORGANISMS/DEM/CanadaDED/Monday/filesToMosaic \
|
211
|
$LAYERS/commons/terrain/dem-cded/
|
212
|
mv -i $ORGANISMS/DEM/CanadaDED/Monday/*Log \
|
213
|
$LAYERS/commons/terrain/dem-cded/
|
214
|
# remove extracted data (no plans to use it), after determining that these are
|
215
|
# the set of files matching globs "*.dem" or "*_fgdc_*.{xml,html}"
|
216
|
# # ---- bash code ---#
|
217
|
# # list out all files contained in the zips
|
218
|
# cd $LAYERS/data/terrain/dem-cded-zip && ls \
|
219
|
# | xargs -I+ sh -c 'unzip -l + | grep -e " 200[7-9]-"' \
|
220
|
# | awk '{print $4}' > /home/layers/cded-extracts.txt
|
221
|
# # ----- R code -----#
|
222
|
# # read in the extracted file names
|
223
|
# extracts <- scan("/home/layers/cded-extracts.txt", what="")
|
224
|
# # read in all CDED files stored in the organisms home dir
|
225
|
# files <- list.files(path=c("/home/organisms/DEM/CanadaDED",
|
226
|
# "/home/organisms/DEM/CanadaDED/Monday"))
|
227
|
# # note that all zip contents had been extracted (...based on filename)
|
228
|
# all(extracts %in% files)
|
229
|
# ## [1] TRUE
|
230
|
# # isolate files *not* extracted from the zips
|
231
|
# others <- setdiff(files, extracts)
|
232
|
# # show that all extracted filenames match one of two patterns
|
233
|
# all(grepl("dem$", extracts) | grepl("_fgdc_", extracts))
|
234
|
# ## [1] TRUE
|
235
|
# # and show that no other files match these
|
236
|
# any(grepl("dem$", others) | grepl("_fgdc_", others))
|
237
|
# ## [1] FALSE
|
238
|
# # ------------------#
|
239
|
rm $ORGANISMS/DEM/CanadaDED/*.dem
|
240
|
rm $ORGANISMS/DEM/CanadaDED/*_fgdc_*.{xml,html}
|
241
|
rm $ORGANISMS/DEM/CanadaDED/Monday/*.dem
|
242
|
rm $ORGANISMS/DEM/CanadaDED/Monday/*_fgdc_*.{xml,html}
|
243
|
# now remove items of uncertain origin
|
244
|
rm $ORGANISMS/DEM/CanadaDED/*.dem.aux.xml
|
245
|
rm $ORGANISMS/DEM/CanadaDED/Monday/*.dem.aux.xml
|
246
|
rm $ORGANISMS/DEM/CanadaDED/*dem?.{aux,rrd}
|
247
|
rm $ORGANISMS/DEM/CanadaDED/Monday/*dem?.{aux,rrd}
|
248
|
rm $ORGANISMS/DEM/CanadaDED/*demFile.{aux,rrd,vrt.aux,tif.aux.xml,tif,vrt.rrd}
|
249
|
rm $ORGANISMS/DEM/CanadaDED/CDEMPlySRTMDf.aux
|
250
|
rm -r $ORGANISMS/DEM/CanadaDED/cdemplysrtmdf
|
251
|
rm -r $ORGANISMS/DEM/CanadaDED/info
|
252
|
# what the hell, remove other generated tifs because I really can't account for
|
253
|
# the details of their creation...
|
254
|
rm $ORGANISMS/DEM/CanadaDED/CanadaDemMos*.{tif,rrd,aux,aux.xml,tif.xml,img,vat.dbf}
|
255
|
rm $ORGANISMS/DEM/CanadaDED/mergeCanada104105.{tif,aux,rrd}
|
256
|
|
257
|
# remove now-empty directories
|
258
|
rmdir $ORGANISMS/DEM/CanadaDED/Monday
|
259
|
rmdir $ORGANISMS/DEM/CanadaDED
|
260
|
|
261
|
|
262
|
#
|
263
|
# FUSED DEM
|
264
|
#
|
265
|
|
266
|
# remove gdal-generated metadata files
|
267
|
rm $ORGANISMS/DEM/GlobalProduct/*.tif.aux.xml
|
268
|
# migrate to ~layers
|
269
|
mv $ORGANISMS/DEM/GlobalProduct $LAYERS/data/terrain/dem-fused
|
270
|
|
271
|
#
|
272
|
# GTOPO30
|
273
|
#
|
274
|
|
275
|
# migrate Nunokawa-clipped data -- first version
|
276
|
mkdir $LAYERS/data/terrain/dem-usgs-gtopo30-clipped-nunokawa-v1
|
277
|
find $ORGANISMS/DEM/usgsGTOPO30 -name "*_Clipped.dem" \
|
278
|
-exec mv {} $LAYERS/data/terrain/dem-usgs-gtopo30-clipped-nunokawa-v1 \;
|
279
|
# migrate Nunokawa-clipped data -- second version
|
280
|
mv -i $ORGANISMS/DEM/Yuni/Data/GTOPO30 \
|
281
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-nunokawa-v2
|
282
|
|
283
|
# migrate Robinson-clipped data
|
284
|
mkdir $LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson
|
285
|
mv $ORGANISMS/DEM/asterGdem/N59to81_E20to59/e020n90/E020N90_clipped.dem \
|
286
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
287
|
mv $ORGANISMS/DEM/asterGdem/N59to81_E140to179/e140n90/E140N90_clipped.dem \
|
288
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
289
|
mv $ORGANISMS/DEM/asterGdem/N59to81_W140to101/w140n90/W140N90_clipped.dem \
|
290
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
291
|
mv $ORGANISMS/DEM/asterGdem/N59to81_E60to99/USGS_ErosDEM_N59to81E60to99/E060N90_clipped.dem \
|
292
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
293
|
mv $ORGANISMS/DEM/asterGdem/N59to81_W60to21/w060n90/W060N90_clipped.dem \
|
294
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
295
|
mv $ORGANISMS/DEM/asterGdem/N59to81_W100to61/w100n90/W100N90_clipped.dem \
|
296
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
297
|
mv $ORGANISMS/DEM/asterGdem/N59to81_E100to139/e100n90/E100N90_clipped.dem \
|
298
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
299
|
mv $ORGANISMS/DEM/asterGdem/N59to81_W180to141/w180n90/W180N90_clipped.dem \
|
300
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
301
|
mv $ORGANISMS/DEM/asterGdem/N59to81_W20toE19/w020n90/W020N90_clipped.dem \
|
302
|
$LAYERS/data/terrain/dem-usgs-gtopo30-clipped-robinson/
|
303
|
# remove mysterious extra GeoTIFF (sans extension) with timestamp similar to
|
304
|
# the above, but that was mysteriously the same as the like-named
|
305
|
# clipped-nunokawa-v1 file (created months later)
|
306
|
rm $ORGANISMS/DEM/asterGdem/N59to81_E60to99/USGS_ErosDEM_N59to81E60to99/E060N90_Clipped
|
307
|
|
308
|
# remove gdal-generated metadata file
|
309
|
rm $ORGANISMS/DEM/usgsGTOPO30/e020n90/*.DEM.aux.xml
|
310
|
# remove Mac OS X file metadata cruft
|
311
|
find $ORGANISMS/DEM/usgsGTOPO30 -name ".DS_Store" -exec rm {} \;
|
312
|
find $ORGANISMS/DEM/usgsGTOPO30 -name "._*" -exec rm {} \;
|
313
|
# now migrate original (?) GTOPO30 data
|
314
|
mv $ORGANISMS/DEM/usgsGTOPO30 $LAYERS/data/terrain/dem-usgs-gtopo30
|
315
|
# confirmed that we had identical copies of the above GTOPO DEM data
|
316
|
# # ---- bash code ---#
|
317
|
# for i in `find $ORGANISMS/DEM/asterGdem -name "*.DEM" -exec basename {} \;`
|
318
|
# do
|
319
|
# diff -q `find $ORGANISMS/DEM/asterGdem -name $i` \
|
320
|
# `find $LAYERS/data/terrain/dem-usgs-gtopo30 -name $i`
|
321
|
# done
|
322
|
# # ------------------#
|
323
|
# (and in fact manually confirmed that the containing directories themselves
|
324
|
# were duplicated, albeit with different names)
|
325
|
# ...so remove the duplicates...
|
326
|
find $ORGANISMS/DEM/asterGdem -name "*.DEM" | sed 's/\/[EW].*//' | xargs -I+ rm -r +
|
327
|
|
328
|
#
|
329
|
# GMTED2010
|
330
|
#
|
331
|
|
332
|
# remove gdal-generated metadata files
|
333
|
rm $ORGANISMS/GMTED2010/*.tif.aux.xml
|
334
|
# remove ArcMap(?) schema lock file
|
335
|
rm $ORGANISMS/GMTED2010/GMTED2010_Spatial_Metadata/GMTED2010_Spatial_Metadata.shp.IGSKMNCNWK00726.6284.8844.sr.lock
|
336
|
# migrate original (I think) downloaded data (OR only)
|
337
|
mkdir $LAYERS/data/terrain/dem-gmted2010-mea300-OR-tiles
|
338
|
mv $ORGANISMS/GMTED2010/30N150W_20101117_gmted_mea300.tif \
|
339
|
$LAYERS/data/terrain/dem-gmted2010-mea300-OR-tiles/
|
340
|
mv $ORGANISMS/GMTED2010/30N120W_20101117_gmted_mea300.tif \
|
341
|
$LAYERS/data/terrain/dem-gmted2010-mea300-OR-tiles/
|
342
|
# migrate merged OR tiles (i think)
|
343
|
mkdir $LAYERS/data/terrain/dem-gmted2010-mea300-OR-mosaic
|
344
|
mv $ORGANISMS/GMTED2010/OR_Coverage.tif \
|
345
|
$LAYERS/data/terrain/dem-gmted2010-mea300-OR-mosaic/
|
346
|
# migrate OR clipped/reprojected data
|
347
|
mkdir $LAYERS/data/terrain/dem-gmted2010-mea300-OR-clip-proj-sinu-tif
|
348
|
mv $ORGANISMS/GMTED2010/OR_ClippedToMODIS_InSinu.tif \
|
349
|
$LAYERS/data/terrain/dem-gmted2010-mea300-OR-clip-proj-sinu-tif/
|
350
|
mkdir $LAYERS/data/terrain/dem-gmted2010-mea300-OR-clip-proj-sinu-bil
|
351
|
mv $ORGANISMS/GMTED2010/OR_ClippedToMODIS_InSinu.{prj,hdr,bil} \
|
352
|
$LAYERS/data/terrain/dem-gmted2010-mea300-OR-clip-proj-sinu-bil/
|
353
|
# migrate shapefile
|
354
|
mv $ORGANISMS/GMTED2010/GMTED2010_Spatial_Metadata \
|
355
|
$LAYERS/data/terrain/dem-gmted2010-spatial-metadata
|
356
|
# migrate documentation
|
357
|
mv $ORGANISMS/GMTED2010/of2011-1073.pdf $LAYERS/documentation/terrain/gmted2010-report.pdf
|
358
|
mv $ORGANISMS/GMTED2010/ReadMe $LAYERS/documentation/terrain/gmted2010-readme.txt
|
359
|
# remove now-empty directory
|
360
|
rmdir $ORGANISMS/GMTED2010
|
361
|
|
362
|
#
|
363
|
# Nunokawa content
|
364
|
#
|
365
|
|
366
|
# regetz notes about nunokawa boundary datasets
|
367
|
# aster2/aster2_*_82N.tif # Int16 59N-82N GDEM2 elevation
|
368
|
# aster2/aster2_*_below.tif # Int16 59N-60N GDEM2 elevation
|
369
|
# aster2/aster2_*_above.tif # Int16 60N-61N GDEM2 elevation
|
370
|
# aster2/aster2_*_straddle.tif # Int16 59N-61N GDEM2 elevation (GDEM2 above, GDEM2 below)
|
371
|
# aster2/aster2_*_straddle_a.tif # Flt32 59N-61N GDEM2-based aspect
|
372
|
# aster2/aster2_*_straddle_s.tif # Flt32 59N-61N GDEM2-based slope
|
373
|
# aster2/aster2_*_below_blendgau.tif # Flt32 59N-60N GDEM2/SRTM blended elevation
|
374
|
# aster2/fused_*_straddle.tif # Int16 59N-61N GDEM2/SRTM unblended elevation (GDEM2 above, SRTM below)
|
375
|
# aster2/fused_*_straddle_a.tif # Flt32 59N-61N unblended-based aspect
|
376
|
# aster2/fused_*_straddle_s.tif # Flt32 59N-61N unblended-based aspect
|
377
|
# aster2/fused_*_blendgau.tif # Int16 59N-61N GDEM2/SRTM blended elevation (GDEM2 above, blended below)
|
378
|
# aster2/fused_*_blendgau_a.tif # Flt32 59N-61N blend-based aspect
|
379
|
# aster2/fused_*_blendgau_s.tif # Flt32 59N-61N blend-based aspect
|
380
|
# srtm/srtm_*_below.tif # Int16 59N-60N SRTM elevation
|
381
|
# srtm/srtm_*_below_a.tif # Flt32 59N-60N SRTM-based aspect
|
382
|
# srtm/srtm_*_below_below_s.tif # Flt32 59N-60N SRTM-based slope
|
383
|
# aster2/aster.vrt # VRT - GDEM2 from ~59N-82N (with 1/2-pixel offset)
|
384
|
# srtm/srtm.vrt # VRT - SRTM from ~55N-60N (with 1/2-pixel offset)
|
385
|
|
386
|
# remove duplicate file
|
387
|
rm $ORGANISMS/DEM/Yuni/Data/aster2/fused_w180w141
|
388
|
# remove redundant backup files (but leaving some others)
|
389
|
rm $ORGANISMS/DEM/Yuni/scripts/toAnalyzeData/aspect.r~
|
390
|
rm $ORGANISMS/DEM/Yuni/scripts/toAnalyzeData/check.r~
|
391
|
rm $ORGANISMS/DEM/Yuni/scripts/toAnalyzeData/meanElv.r~
|
392
|
rm $ORGANISMS/DEM/Yuni/scripts/toAnalyzeData/meanElv_onlyN59.r~
|
393
|
rm $ORGANISMS/DEM/Yuni/scripts/toAnalyzeData/
|
394
|
rm $ORGANISMS/DEM/Yuni/scripts/toProduceData/assembling.r~
|
395
|
rm $ORGANISMS/DEM/Yuni/scripts/toProduceData/gaussian.r~
|
396
|
rm $ORGANISMS/DEM/Yuni/scripts/toProduceData/mkVrt_Tiff.r~
|
397
|
rm $ORGANISMS/DEM/Yuni/scripts/toProduceData/slope_aspect.r~
|
398
|
|
399
|
# migrate scripts
|
400
|
mv $ORGANISMS/DEM/Yuni/scripts \
|
401
|
$LAYERS/code/terrain/nunokawa-scripts
|
402
|
# migrate documents
|
403
|
mv -i $ORGANISMS/DEM/Yuni/documents \
|
404
|
$LAYERS/documentation/terrain/nunokawa-documents
|
405
|
mv -i $ORGANISMS/DEM/Yuni/missing_gdem2_tiles.txt \
|
406
|
$LAYERS/documentation/terrain/nunokawa-documents/
|
407
|
mv -i $ORGANISMS/DEM/Yuni/metadata.txt \
|
408
|
$LAYERS/documentation/terrain/nunokawa-documents/
|
409
|
# migrate remaining Data contents to 60N boundary dir
|
410
|
mv -i $ORGANISMS/DEM/Yuni/Data \
|
411
|
$LAYERS/commons/terrain/north-60
|
412
|
|
413
|
# remove now-empty directories
|
414
|
rmdir $ORGANISMS/DEM/Yuni
|
415
|
rmdir $ORGANISMS/DEM
|
416
|
|
417
|
#
|
418
|
# Remaining DEM content
|
419
|
#
|
420
|
|
421
|
mv $ORGANISMS/DEM/DEM_ProcessingScripts $LAYERS/code/terrain/
|
422
|
mv $ORGANISMS/DEM/ReadMeInProgress.txt $LAYERS/documentation/terrain/misc-partial-readme.txt
|
423
|
|
424
|
|
425
|
rm $ORGANISMS/DEM/checklog
|
426
|
mv $ORGANISMS/DEM/checkBadAsterGDEMFiles.sh $LAYERS/commons/cruft/
|
427
|
mv $ORGANISMS/DEM/CheckGDEMLog.txt $LAYERS/commons/cruft/
|
428
|
|
429
|
|
430
|
#=========#
|
431
|
# CLIMATE #
|
432
|
#=========#
|
433
|
|
434
|
#
|
435
|
# CRU
|
436
|
#
|
437
|
|
438
|
# migrate original gz data from CRU (or so it appears...)
|
439
|
mkdir $LAYERS/data/climate/cru-ts-3.0-1901-2006-gzip
|
440
|
mv $ORGANISMS/CRU_TS_3.0/*.gz $LAYERS/data/climate/cru-ts-3.0-1901-2006-gzip/
|
441
|
# I confirmed that the gunzipped files are identical to the gz contents (by
|
442
|
# gunzipping to /tmp and then diffing):w
|
443
|
# ...so let's delete the uncompressed versions
|
444
|
rm $ORGANISMS/CRU_TS_3.0/cru_ts_3_00.1901.2006.pre.nc
|
445
|
rm $ORGANISMS/CRU_TS_3.0/cru_ts_3_00.1901.2006.tmn.nc
|
446
|
rm $ORGANISMS/CRU_TS_3.0/cru_ts_3_00.1901.2006.tmp.nc
|
447
|
rm $ORGANISMS/CRU_TS_3.0/cru_ts_3_00.1901.2006.tmx.nc
|
448
|
# migrate extracted ASCII grid files
|
449
|
mv $ORGANISMS/CRU_TS_3.0/PRE $LAYERS/data/climate/cru-ts-3.0-1967-2006-asc-pre
|
450
|
mv $ORGANISMS/CRU_TS_3.0/TMN $LAYERS/data/climate/cru-ts-3.0-1967-2006-asc-tmn
|
451
|
mv $ORGANISMS/CRU_TS_3.0/TMP $LAYERS/data/climate/cru-ts-3.0-1967-2006-asc-tmp
|
452
|
mv $ORGANISMS/CRU_TS_3.0/TMX $LAYERS/data/climate/cru-ts-3.0-1967-2006-asc-tmx
|
453
|
# migrate R script for asc extraction
|
454
|
mv -i $ORGANISMS/CRU_TS_3.0/R/cru_3.0_data_extract.r $LAYERS/code/climate/
|
455
|
# rename then migrate readmes
|
456
|
rename 's/(Read_Me)/clim-cru-ts-3.0-\1/' $ORGANISMS/CRU_TS_3.0/Read_Me_*.txt
|
457
|
mv $ORGANISMS/CRU_TS_3.0/*Read_Me_*.txt $LAYERS/documentation/climate/
|
458
|
# now remove empty directory structure
|
459
|
find $ORGANISMS/CRU_TS_3.0 -depth -type d -exec rmdir {} \;
|
460
|
|
461
|
#
|
462
|
# GSOD
|
463
|
#
|
464
|
|
465
|
# for now, just move the whole thing as-is
|
466
|
mv $ORGANISMS/gsod $LAYERS/data/climate/gsod
|
467
|
|
468
|
#
|
469
|
# GHCN
|
470
|
#
|
471
|
|
472
|
# for now, just move the whole thing as-is
|
473
|
mv $ORGANISMS/ghcn $LAYERS/data/climate/ghcn
|
474
|
|
475
|
#
|
476
|
# MODIS LST
|
477
|
#
|
478
|
|
479
|
# migrate MOD11A1 V4 daily 1km L3 LST (March 1-7, 2000)
|
480
|
mv $ORGANISMS/MODIS\ LST/MOD11A1.004 $LAYERS/data/climate/MOD11A1.004-daily-1km-L3-LST/
|
481
|
# migrate MOD11A2 V4 8-day 1km L3 LST (March 5, 2000)
|
482
|
mkdir $LAYERS/data/climate/MOD11A2.004-8day-1km-L3-LST
|
483
|
mv $ORGANISMS/MODIS\ LST/2000.03.05 $LAYERS/data/climate/MOD11A2.004-8day-1km-L3-LST/
|
484
|
# also remove identical copies of the MOD11A2 data (confirmed by diffing)
|
485
|
rm $ORGANISMS/Modis_2000.03.05/MOD11A2.A2000065.*.hdf
|
486
|
rm $ORGANISMS/Modis_2000.03.05/MOD11A2.A2000065.*.hdf.xml
|
487
|
rmdir $ORGANISMS/Modis_2000.03.05
|
488
|
# remove now-empty directory
|
489
|
rmdir $ORGANISMS/MODIS\ LST
|
490
|
|
491
|
#
|
492
|
# MODIS LST -- Oregon
|
493
|
#
|
494
|
|
495
|
# migrate original MODIS OR hdfs (2001-2010?)
|
496
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-orig
|
497
|
mv $ORGANISMS/MODIS_LST_Oregon/MOD11A1.*.hdf \
|
498
|
$LAYERS/data/climate/MOD11A1.004-OR-orig/
|
499
|
mv $ORGANISMS/MODIS_LST_Oregon/MOD11A1.*.hdf.xml \
|
500
|
$LAYERS/data/climate/MOD11A1.004-OR-orig/
|
501
|
# migrate original MODIS OR hdfs (2000, not used)
|
502
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-orig-2000
|
503
|
mv $ORGANISMS/MODIS_LST_Oregon/2000\ _WithheldFromAVG/MOD11A1.A2000*.hdf \
|
504
|
$LAYERS/data/climate/MOD11A1.004-OR-orig-2000/
|
505
|
mv $ORGANISMS/MODIS_LST_Oregon/2000\ _WithheldFromAVG/MOD11A1.A2000*.hdf.xml \
|
506
|
$LAYERS/data/climate/MOD11A1.004-OR-orig-2000/
|
507
|
# migrate ClearDayCov OR img extracts (2001-2010?)
|
508
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-img
|
509
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/MOD11A1.*.img \
|
510
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img/
|
511
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/MOD11A1.*.img.aux.xml \
|
512
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img/
|
513
|
# migrate ClearDayCov OR img extracts (2000, not used)
|
514
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-img-2000
|
515
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/2000_WithheldFromAVG/MOD11A1.A2000*.005_ClearDay.img \
|
516
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-2000/
|
517
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/2000_WithheldFromAVG/MOD11A1.A2000*.005_ClearDay.img.aux.xml \
|
518
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-2000/
|
519
|
|
520
|
# migrate renamed ClearDayCov OR img extracts (2001-2010?)
|
521
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed
|
522
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/*.img \
|
523
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed/
|
524
|
# migrate renamed ClearDayCov OR img extracts (2000, not used)
|
525
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed-2000
|
526
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/2000_WithheldFromAVG/MOD11A1.A.2000.*.img \
|
527
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed-2000/
|
528
|
|
529
|
# migrate renamed ClearDayCov OR img extracts with corrected pixels
|
530
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed-fixed
|
531
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/BadPixelsCorrected_Tiles/*.img \
|
532
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed-fixed/
|
533
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/BadPixelsCorrected_Tiles/*.img.aux.xml \
|
534
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-img-renamed-fixed/
|
535
|
|
536
|
# migrate ClearDayCov OR daily avg tiles
|
537
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img
|
538
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Tiles/day*.img \
|
539
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img/
|
540
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Tiles/day*.img.aux.xml \
|
541
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img/
|
542
|
# migrate ClearDayCov OR daily avg mosaic imgs
|
543
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img
|
544
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.img \
|
545
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img
|
546
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.img.aux.xml \
|
547
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img
|
548
|
# migrate ClearDayCov OR daily avg mosaic bils
|
549
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-bil
|
550
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.prj \
|
551
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-bil/
|
552
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.bil \
|
553
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-bil/
|
554
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.bil.aux.xml \
|
555
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-bil/
|
556
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day*_Mosaic_DailyAvg_Scaled.hdr \
|
557
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-bil/
|
558
|
|
559
|
# migrate ClearDayCov OR monthly avg tiles
|
560
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-tiles-img
|
561
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Tiles/*_AVG_Scaled.img \
|
562
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-tiles-img/
|
563
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Tiles/*_AVG_Scaled.img.aux.xml \
|
564
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-tiles-img/
|
565
|
# migrate ClearDayCov OR monthly avg mosaic imgs
|
566
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-img
|
567
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.img \
|
568
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-img/
|
569
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.img.aux.xml \
|
570
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-img/
|
571
|
# migrate ClearDayCov OR monthly avg mosaic bils
|
572
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-bil
|
573
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.prj \
|
574
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-bil/
|
575
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.bil \
|
576
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-bil/
|
577
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.bil.aux.xml \
|
578
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-bil/
|
579
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/*Mosaic_MonthlyAvg_Scaled.hdr \
|
580
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-monthlyavg-mosaics-bil/
|
581
|
|
582
|
# migrate *old* (wrong?) ClearDayCov OR daily avg tiles
|
583
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img-OLD
|
584
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_DailyAverage_Tiles_Old/Day_*_Average_Scaled_*.img \
|
585
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img-OLD/
|
586
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_DailyAverage_Tiles_Old/Day_*_Average_Scaled_*.img.aux.xml \
|
587
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img-OLD/
|
588
|
# migrate *old* (wrong?) ClearDayCov OR daily avg mosaics
|
589
|
mkdir $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img-OLD
|
590
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_DailyAverage_Mosaic_Old/Day_*_ClearDay_Average.img \
|
591
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img-OLD/
|
592
|
mv $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_DailyAverage_Mosaic_Old/Day_*_ClearDay_Average.img.aux.xml \
|
593
|
$LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-mosaics-img-OLD/
|
594
|
|
595
|
# remove identical copies of (old) ClearDayCov daily avgs for tile h08v04
|
596
|
# *Note*: I first confirmed that these are duplicate copies:
|
597
|
# for i in {1..366};
|
598
|
# do
|
599
|
# diff -q $ORGANISMS/MODIS_LST_Oregon/DailyAvg1_old/Day_"$i"_Average_Scaled.img \
|
600
|
# $LAYERS/data/climate/MOD11A1.004-OR-clearday-dailyavg-tiles-img-OLD/Day_"$i"_Average_Scaled_h08v04.img
|
601
|
# done
|
602
|
rm $ORGANISMS/MODIS_LST_Oregon/DailyAvg1_old/Day_{1..366}_Average_Scaled.img
|
603
|
rm $ORGANISMS/MODIS_LST_Oregon/DailyAvg1_old/Day_{1..366}_Average_Scaled.img.aux.xml
|
604
|
# remove now-empty directory
|
605
|
rmdir $ORGANISMS/MODIS_LST_Oregon/DailyAvg1_old
|
606
|
|
607
|
# remove misc bil statistics (stx) files)
|
608
|
rm $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day11_Mosaic_DailyAvg_Scaled.stx
|
609
|
rm $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/Day1_Mosaic_DailyAvg_Scaled.stx
|
610
|
rm $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/AprMosaic_MonthlyAvg_Scaled.stx
|
611
|
|
612
|
# remove pyc file
|
613
|
rm $ORGANISMS/MODIS_LST_Oregon/GDAL_Extract_ClearDay_from_HDF_Files.pyc
|
614
|
|
615
|
# move and (if needed) rename documentation files
|
616
|
mv -i $ORGANISMS/MODIS_LST_Oregon/1\ ReadMe\ First.txt \
|
617
|
$LAYERS/documentation/climate/clim-MOD11A1.004-OR-orig-readme.txt
|
618
|
mv -i $ORGANISMS/MODIS_LST_Oregon/MODIS_Oregon_ProcessingInfo.doc \
|
619
|
$LAYERS/documentation/climate/
|
620
|
mv -i $ORGANISMS/MODIS_LST_Oregon/2000\ _WithheldFromAVG/ReadMe \
|
621
|
$LAYERS/documentation/climate/clim-MOD11A1.004-OR-orig-2000-readme.txt
|
622
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/1\ ReadMe\ First.txt \
|
623
|
$LAYERS/documentation/climate/clim-MOD11A1.004-OR-clearday-readme.txt
|
624
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/BadPixelsCorrected_Tiles/1\ ReadMe\ First \
|
625
|
$LAYERS/documentation/climate/clim-MOD11A1.004-OR-clearday-img-renamed-fixed-readme.txt
|
626
|
|
627
|
# move scripts
|
628
|
mkdir $LAYERS/code/climate/modis-lst-oregon
|
629
|
mv -i $ORGANISMS/MODIS_LST_Oregon/GDAL_Extract_ClearDay_from_HDF_Files.py \
|
630
|
$LAYERS/code/climate/modis-lst-oregon/
|
631
|
mv -i $ORGANISMS/MODIS_LST_Oregon/QCTagCheck \
|
632
|
$LAYERS/code/climate/modis-lst-oregon/QCTagCheck.py
|
633
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ConvertMODIStobil.py \
|
634
|
$LAYERS/code/climate/modis-lst-oregon/
|
635
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Tiles/DayAVGCalcs_h08v04TIles.r \
|
636
|
$LAYERS/code/climate/modis-lst-oregon/
|
637
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Tiles/DayAVGCalcs_h09v04TIles.r \
|
638
|
$LAYERS/code/climate/modis-lst-oregon/
|
639
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_DailyAvgs_Mosaics/LST_Mosaicing_DailyAvgs.r \
|
640
|
$LAYERS/code/climate/modis-lst-oregon/
|
641
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/LST_Mosaicing_MonthlyAvgs.R \
|
642
|
$LAYERS/code/climate/modis-lst-oregon/
|
643
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Mosaics/Conversion_hdf_to_img.py \
|
644
|
$LAYERS/code/climate/modis-lst-oregon/
|
645
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/BadPixelsCorrected_Tiles/h09v04Tiles_BadPixelCorrection.r \
|
646
|
$LAYERS/code/climate/modis-lst-oregon/
|
647
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/ByDate/BadPixelsCorrected_Tiles/h08v04Tiles_BadPixelCorrection.r \
|
648
|
$LAYERS/code/climate/modis-lst-oregon/
|
649
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/ClearDay_Original_IMG_Extracts/Convert\ MODIS\ Day\ of\ Year\ to\ Date\ File\ Name.py \
|
650
|
$LAYERS/code/climate/modis-lst-oregon/
|
651
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Tiles/MonthlyAvgCalcs_h08v04Tiles.r \
|
652
|
$LAYERS/code/climate/modis-lst-oregon/
|
653
|
mv -i $ORGANISMS/MODIS_LST_Oregon/ClearDayGDAL/NewClearDay_MonthlyAvgs_Tiles/MonthlyAvgCalcs_h09v04Tiles.r \
|
654
|
$LAYERS/code/climate/modis-lst-oregon/
|
655
|
|
656
|
# move last few things...
|
657
|
mv -i $ORGANISMS/MODIS_LST_Oregon/hdf.txt \
|
658
|
$LAYERS/commons/cruft/clim-MOD11A1.004-OR-orig-hdf.txt
|
659
|
mv -i $ORGANISMS/MODIS_LST_Oregon/SDS_PctFills.txt \
|
660
|
$LAYERS/commons/cruft/clim-MOD11A1.004-OR-orig-SDS_PctFills.txt
|
661
|
|
662
|
# remove all the now-empty directories...
|
663
|
# tree $ORGANISMS/MODIS_LST_Oregon
|
664
|
# /home/organisms/MODIS_LST_Oregon
|
665
|
# .
|
666
|
# ├── 2000 _WithheldFromAVG
|
667
|
# └── ClearDayGDAL
|
668
|
# ├── ClearDay_DailyAverage_Mosaic_Old
|
669
|
# ├── ClearDay_DailyAverage_Tiles_Old
|
670
|
# ├── ClearDay_Original_IMG_Extracts
|
671
|
# │  ├── 2000_WithheldFromAVG
|
672
|
# │  └── ByDate
|
673
|
# │  ├── 2000_WithheldFromAVG
|
674
|
# │  └── BadPixelsCorrected_Tiles
|
675
|
# ├── NewClearDay_DailyAvgs_Mosaics
|
676
|
# ├── NewClearDay_DailyAvgs_Tiles
|
677
|
# ├── NewClearDay_MonthlyAvgs_Mosaics
|
678
|
# └── NewClearDay_MonthlyAvgs_Tiles
|
679
|
find $ORGANISMS/MODIS_LST_Oregon -depth -type d -exec rmdir {} \;
|
680
|
|
681
|
# last but not least, deal with top level R directory
|
682
|
# ...move some (old? superceded?) scripts
|
683
|
mv -i $ORGANISMS/R/ReClass Clear Day Rasters h08v04.r \
|
684
|
$LAYERS/code/climate/modis-lst-oregon/
|
685
|
mv -i $ORGANISMS/R/Calc Clear Day Daily Avg.r \
|
686
|
$LAYERS/code/climate/modis-lst-oregon/
|
687
|
mv -i $ORGANISMS/R/Mosaic Clear Day Average Grids.r \
|
688
|
$LAYERS/code/climate/modis-lst-oregon/
|
689
|
mv -i $ORGANISMS/R/Calc Clear Day Monthly Avg.r \
|
690
|
$LAYERS/code/climate/modis-lst-oregon/
|
691
|
# don't know how this was created, but it's clearly derived data...
|
692
|
mv -i $ORGANISMS/R/Modis_LSTdaily_climatology $LAYERS/data/clim-modis-lstdaily
|
693
|
# remove now-empty directory
|
694
|
rmdir $ORGANISMS/R
|
695
|
|
696
|
#
|
697
|
# TRMM
|
698
|
#
|
699
|
|
700
|
# this was an *empty* directory! removing...
|
701
|
rmdir $ORGANISMS/TRMM
|
702
|
|
703
|
#
|
704
|
# WorldClim
|
705
|
#
|
706
|
|
707
|
# migrate each one into its own directory
|
708
|
mkdir $LAYERS/data/climate/worldclim-bio-30s-esri-zip
|
709
|
mv $ORGANISMS/WorldClim/bio_30s_esri.zip $LAYERS/data/climate/worldclim-bio-30s-esri-zip/
|
710
|
mkdir $LAYERS/data/climate/worldclim-prec-30s-esri-zip
|
711
|
mv $ORGANISMS/WorldClim/prec_30s_esri.zip $LAYERS/data/climate/worldclim-prec-30s-esri-zip/
|
712
|
mkdir $LAYERS/data/climate/worldclim-tmax-30s-esri-zip
|
713
|
mv $ORGANISMS/WorldClim/tmax_30s_esri.zip $LAYERS/data/climate/worldclim-tmax-30s-esri-zip/
|
714
|
mkdir $LAYERS/data/climate/worldclim-tmean-30s-esri-zip
|
715
|
mv $ORGANISMS/WorldClim/tmean_30s_esri.zip $LAYERS/data/climate/worldclim-tmean-30s-esri-zip/
|
716
|
mkdir $LAYERS/data/climate/worldclim-tmin-30s-esri-zip
|
717
|
mv $ORGANISMS/WorldClim/tmin_30s_esri.zip $LAYERS/data/climate/worldclim-tmin-30s-esri-zip/
|
718
|
# remove now-empty directory
|
719
|
rmdir $ORGANISMS/WorldClim
|
720
|
|
721
|
|
722
|
#============#
|
723
|
# LAND COVER #
|
724
|
#============#
|
725
|
|
726
|
#
|
727
|
# GLCNMO
|
728
|
#
|
729
|
|
730
|
# for now, just move the whole thing as-is
|
731
|
mv $ORGANISMS/GLCNMO $LAYERS/commons/land-cover/
|
732
|
|
733
|
#
|
734
|
# GlobCover
|
735
|
#
|
736
|
# migrate what seems like the original data (?)
|
737
|
mkdir $LAYERS/data/land-cover/GlobCover-v2.2
|
738
|
mv -i $ORGANISMS/GlobCoverv2.2/GLOBCOVER_200412_200606_V2.2_Global_CLA* \
|
739
|
$LAYERS/data/land-cover/GlobCover-v2.2/
|
740
|
# migrate mysterious derivatives of the above
|
741
|
mkdir $LAYERS/data/land-cover/GlobCover-v2.2-arcgis
|
742
|
mv -i $ORGANISMS/GlobCoverv2.2/globcov22_beh $LAYERS/data/land-cover/GlobCover-v2.2-arcgis/
|
743
|
mv -i $ORGANISMS/GlobCoverv2.2/globcoverv22 $LAYERS/data/land-cover/GlobCover-v2.2-arcgis/
|
744
|
# migrate reference info to documentation area
|
745
|
mv -i $ORGANISMS/GlobCoverv2.2/Globcover_* $LAYERS/documentation/land-cover/
|
746
|
# remove now-empty directory
|
747
|
rmdir $ORGANISMS/GlobCoverv2.2
|
748
|
|
749
|
#
|
750
|
# LandCover (whatever that is)
|
751
|
#
|
752
|
|
753
|
# remove gdal-generated metadata file
|
754
|
rm $ORGANISMS/LandCover/Layer10_Clip1.tif.aux.xml
|
755
|
# migrate original OR landcover tiles
|
756
|
mkdir $LAYERS/data/land-cover/lc-OR-tiles
|
757
|
mv $ORGANISMS/LandCover/Layer*_Clip[1-3].tif \
|
758
|
$LAYERS/data/land-cover/lc-OR-tiles/
|
759
|
# migrate OR landcover mosaics
|
760
|
mkdir $LAYERS/data/land-cover/lc-OR-mosaic
|
761
|
mv $ORGANISMS/LandCover/Layer*_Mosaic.tif \
|
762
|
$LAYERS/data/land-cover/lc-OR-mosaic/
|
763
|
# migrate OR clipped/reprojected landcover mosaics
|
764
|
mkdir $LAYERS/data/land-cover/lc-OR-mosaic-clip-proj-sinu
|
765
|
mv $ORGANISMS/LandCover/Layer*_ClippedToMODIS_Sinu.* \
|
766
|
$LAYERS/data/land-cover/lc-OR-mosaic-clip-proj-sinu/
|
767
|
# migrate OR multiband clipped/reprojected landcover mosaic
|
768
|
mkdir $LAYERS/data/land-cover/lc-OR-mosaic-clip-proj-sinu-multiband
|
769
|
mv $ORGANISMS/LandCover/Final_Multiband_SinuGrid.* \
|
770
|
$LAYERS/data/land-cover/lc-OR-mosaic-clip-proj-sinu-multiband/
|
771
|
# migrate documentation
|
772
|
mv $ORGANISMS/LandCover/ReadMe $LAYERS/documentation/land-cover/landcover-ReadMe.txt
|
773
|
mv $ORGANISMS/LandCover/LCT\ calculations.xlsx $LAYERS/documentation/land-cover/
|
774
|
mv $ORGANISMS/LandCover/landcover_method_v3.docx $LAYERS/documentation/land-cover/
|
775
|
# migrate scripts
|
776
|
mv $ORGANISMS/LandCover/CheckForNoDataValues_LandCoverFiles.txt $LAYERS/code/land-cover/
|
777
|
# remove now-empty directory
|
778
|
rmdir $ORGANISMS/LandCover
|
779
|
|
780
|
#
|
781
|
# Tree height
|
782
|
#
|
783
|
|
784
|
# migrate $ORGANISMS/Tree_height/Lefsky2010
|
785
|
mkdir $LAYERS/data/land-cover/treeheight-lefsky2010
|
786
|
mv $ORGANISMS/Tree_height/Lefsky2010/x2_080809_global.img \
|
787
|
$LAYERS/data/land-cover/treeheight-lefsky2010/
|
788
|
mv $ORGANISMS/Tree_height/Lefsky2010/p_080809_global.img* \
|
789
|
$LAYERS/data/land-cover/treeheight-lefsky2010/
|
790
|
# migrate associated publication do documentation area
|
791
|
mv $ORGANISMS/Tree_height/Lefsky2010/Lefsky\ et\ al.\ 2010\ GeoRLett.pdf \
|
792
|
$LAYERS/documentation/land-cover/treeheight-Lefsky2010-GeoRLett.pdf
|
793
|
# remove now-empty directory
|
794
|
rmdir $ORGANISMS/Tree_height/Lefsky2010
|
795
|
|
796
|
# migrate $ORGANISMS/Tree_height/Simard2011
|
797
|
mkdir $LAYERS/data/land-cover/treeheight-simard2011
|
798
|
mv $ORGANISMS/Tree_height/Simard2011/Simard_Pinto_3DGlobalVeg_JGR.tif \
|
799
|
$LAYERS/data/land-cover/treeheight-simard2011/
|
800
|
# remove gdal-generated metadata file
|
801
|
rm $ORGANISMS/Tree_height/Simard2011/Simard_Pinto_3DGlobalVeg_JGR.tif.aux.xml
|
802
|
# migrate clipped/reprojected file (bil)
|
803
|
mkdir $LAYERS/data/land-cover/treeheight-simard2011-OR-clip-proj-sinu-bil
|
804
|
mv $ORGANISMS/Tree_height/Simard2011/GlobalCanopy_ClippedToMODIS_InSinu.* \
|
805
|
$LAYERS/data/land-cover/treeheight-simard2011-OR-clip-proj-sinu-bil/
|
806
|
# migrate documentation
|
807
|
mv $ORGANISMS/Tree_height/Simard2011/SimardEtAl2011_GlobalTreeHeight_WithLIDAR.pdf \
|
808
|
$LAYERS/documentation/land-cover/treeheight-SimardEtAl_GlobalTreeHeight_WithLIDAR.pdf
|
809
|
mv $ORGANISMS/Tree_height/Simard2011/ReadMe \
|
810
|
$LAYERS/documentation/land-cover/treeheight-ReadMe.txt
|
811
|
# remove remaining files as per instructions from Natalie Robinson
|
812
|
rm $ORGANISMS/Tree_height/Simard2011/Test_Clip.tif
|
813
|
rm $ORGANISMS/Tree_height/Simard2011/GDALTranslate_test.*
|
814
|
rm $ORGANISMS/Tree_height/Simard2011/GDALTranslate_DT_int16.*
|
815
|
# remove now-empty directory
|
816
|
rmdir $ORGANISMS/Tree_height/Simard2011
|
817
|
|
818
|
# lastely, remove now-empty Tree_height directory
|
819
|
rmdir $ORGANISMS/Tree_height
|
820
|
|
821
|
|
822
|
#=================#
|
823
|
# Remaining stuff #
|
824
|
#=================#
|
825
|
|
826
|
#
|
827
|
# top level directory
|
828
|
#
|
829
|
|
830
|
# move top level notes
|
831
|
mv $ORGANISMS/Oregon_CaseStudy_FileProcessingInfo $LAYERS/documentation/
|
832
|
mv $ORGANISMS/ReProjection_To_MODIS $LAYERS/documentation/
|
833
|
mv $ORGANISMS/README.txt $LAYERS/documentation/organisms-homedir-readme.txt
|
834
|
mv $ORGANISMS/CHANGES.txt $LAYERS/documentation/organisms-homedir-changes.txt
|
835
|
# move old file extension summary
|
836
|
mv -i $ORGANISMS/file-extension-summary.txt $LAYERS/commons/cruft/
|
837
|
|
838
|
#
|
839
|
# Desktop
|
840
|
#
|
841
|
|
842
|
# move MRT installer to cruft
|
843
|
mv $ORGANISMS/Desktop/MRT_download_Linux $LAYERS/commons/cruft/
|
844
|
# remove orphaned bil metadata file
|
845
|
rm $ORGANISMS/Desktop/ASTER_Test.bil.aux.xml
|
846
|
# remove empty Desktop dir
|
847
|
rmdir $ORGANISMS/Desktop
|
848
|
|
849
|
#
|
850
|
# pyhdf
|
851
|
#
|
852
|
|
853
|
# move pyhdf package to cruft
|
854
|
mv $ORGANISMS/pyhdf $LAYERS/commons/cruft/
|
855
|
|
856
|
#
|
857
|
# GIS/GDD
|
858
|
#
|
859
|
|
860
|
# confirmed that /tmean contains unzipped tmean, except there are additional
|
861
|
# aux files presumably autogenerated by Arc -- I'm find with deleting them
|
862
|
# # ---- bash code ---#
|
863
|
# cd /tmp && unzip $ORGANISMS/GIS/GDD/tmean_30s_esri.zip
|
864
|
# diff -qr /tmp/tmean /home/organisms/GIS/GDD/tmean_30s_esri/tmean/
|
865
|
# done
|
866
|
# # ------------------#
|
867
|
# delete the uncompressed tmean_30s_esri directory
|
868
|
rm -r $ORGANISMS/GIS/GDD/tmean_30s_esri
|
869
|
|
870
|
# confirmed that WorldClim zips are identical to what we already have elsewhere
|
871
|
# # ---- bash code ---#
|
872
|
# for var in {'prec','tmin','tmax','tmean','bio'}
|
873
|
# do
|
874
|
# diff -s $ORGANISMS/GIS/GDD/"$var"_30s_esri.zip \
|
875
|
# $LAYERS/data/climate/worldclim-"$var"-30s-esri-zip/*.zip
|
876
|
# done
|
877
|
# done
|
878
|
# # ------------------#
|
879
|
# delete the duplicate worldclim zips
|
880
|
rm $ORGANISMS/GIS/GDD/prec_30s_esri.zip
|
881
|
rm $ORGANISMS/GIS/GDD/tmin_30s_esri.zip
|
882
|
rm $ORGANISMS/GIS/GDD/tmax_30s_esri.zip
|
883
|
rm $ORGANISMS/GIS/GDD/tmean_30s_esri.zip
|
884
|
rm $ORGANISMS/GIS/GDD/bio_30s_esri.zip
|
885
|
|
886
|
# confirmed that all MODIS files here are identical to (though in fact they are
|
887
|
# only a subset of) what we already have elsewhere
|
888
|
# # ---- bash code ---#
|
889
|
# for dir in `ls $ORGANISMS/GIS/GDD/MOD11A1.004`
|
890
|
# do
|
891
|
# echo checking "$dir"...
|
892
|
# ls $ORGANISMS/GIS/GDD/MOD11A1.004/"$dir" \
|
893
|
# | xargs -I+ \
|
894
|
# diff -q $ORGANISMS/GIS/GDD/MOD11A1.004/"$dir"/+ \
|
895
|
# $LAYERS/data/climate/MOD11A1.004-daily-1km-L3-LST/"$dir"/+
|
896
|
# done
|
897
|
# # ------------------#
|
898
|
# delete the duplicate MODIS data
|
899
|
# note that the last 3 dirs were already empty...
|
900
|
rm $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.01/MOD11A1.A2000*.{hdf,hdf.xml}
|
901
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.01
|
902
|
rm $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.02/MOD11A1.A2000*.{hdf,hdf.xml}
|
903
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.02
|
904
|
rm $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.03/MOD11A1.A2000*.{hdf,hdf.xml}
|
905
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.03
|
906
|
rm $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.04/MOD11A1.A2000*.{hdf,hdf.xml}
|
907
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.04
|
908
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.05
|
909
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.06
|
910
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004/2000.03.07
|
911
|
rmdir $ORGANISMS/GIS/GDD/MOD11A1.004
|
912
|
|
913
|
# migrate remaining text (script?) file
|
914
|
mv $ORGANISMS/GIS/GDD/map\ algebra.txt $LAYERS/code/climate/gdd-worldclim-tmean-map-algebra.txt
|
915
|
# remove empty directory
|
916
|
rmdir $ORGANISMS/GIS/GDD
|
917
|
|
918
|
#
|
919
|
# GIS/terrain
|
920
|
#
|
921
|
|
922
|
# remove empty test directory
|
923
|
rmdir $ORGANISMS/GIS/terrain/test
|
924
|
# for now just migrate everything else to experimental area
|
925
|
mv $ORGANISMS/GIS/terrain $LAYERS/commons/terrain/arcgis
|
926
|
|
927
|
# remove empty directory
|
928
|
rmdir $ORGANISMS/GIS
|
929
|
|
930
|
#
|
931
|
# Oregon
|
932
|
#
|
933
|
|
934
|
# for now just migrate to experimental area
|
935
|
mv $ORGANISMS/Oregon $LAYERS/commons/oregon
|
936
|
|
937
|
#
|
938
|
# steph
|
939
|
#
|
940
|
|
941
|
# delete as per verbal instructions from Stephanie Pau
|
942
|
rm -rf $ORGANISMS/steph
|
943
|
|
944
|
#
|
945
|
# topo
|
946
|
#
|
947
|
|
948
|
# first migrate the whole thing to new commons area
|
949
|
mv $ORGANISMS/topo $LAYERS/commons/
|
950
|
# consolidate first set of dirs
|
951
|
mkdir $LAYERS/commons/topo/v1
|
952
|
mv -i $LAYERS/commons/topo/{experimental,scripts,tiles} \
|
953
|
$LAYERS/commons/topo/v1/
|
954
|
# consolidate second set of dirs
|
955
|
mv -i $LAYERS/commons/topo/experimental_2/topo \
|
956
|
$LAYERS/commons/topo/v2
|
957
|
rmdir $LAYERS/commons/topo/experimental_2
|
958
|
|
959
|
# remove ArcToolbox temporary files
|
960
|
rm $LAYERS/commons/topo/v2/topo/xx00003024.s
|
961
|
rm $LAYERS/commons/topo/v2/experimental/xx00013916.x
|
962
|
rm $LAYERS/commons/topo/v2/experimental/xx00003916.s
|
963
|
rm $LAYERS/commons/topo/v2/experimental/xx00013916.s
|
964
|
|
965
|
# consolidate first set of scripts into git repo
|
966
|
mv -i $LAYERS/commons/topo/v1/experimental/layers.aml \
|
967
|
$REPO/terrain/research/oregon/arcgis/v1/
|
968
|
mv -i $LAYERS/commons/topo/v1/experimental/aggregate.aml \
|
969
|
$REPO/terrain/research/oregon/arcgis/v1/
|
970
|
mv -i $LAYERS/commons/topo/v1/experimental/multiscalesmooth9a_clean.aml \
|
971
|
$REPO/terrain/research/oregon/arcgis/v1/
|
972
|
mv -i $LAYERS/commons/topo/v1/experimental/tilemerge_oregon1.aml \
|
973
|
$REPO/terrain/research/oregon/arcgis/v1/
|
974
|
mv -i $LAYERS/commons/topo/v1/scripts/unpacktiles.aml \
|
975
|
$REPO/terrain/research/oregon/arcgis/v1/
|
976
|
mv -i $LAYERS/commons/topo/v1/scripts/unziptiles.py \
|
977
|
$REPO/terrain/research/oregon/arcgis/v1/
|
978
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/mrvbf6g-a3.aml \
|
979
|
$REPO/terrain/research/oregon/arcgis/v1/
|
980
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/pctl.aml \
|
981
|
$REPO/terrain/research/oregon/arcgis/v1/
|
982
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/chunkproc.aml \
|
983
|
$REPO/terrain/research/oregon/arcgis/v1/
|
984
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/pctl-limits.aml \
|
985
|
$REPO/terrain/research/oregon/arcgis/v1/
|
986
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/gauss3 \
|
987
|
$REPO/terrain/research/oregon/arcgis/v1/
|
988
|
# for now keep this mysterioud Windows binary around...
|
989
|
mv -i $LAYERS/commons/topo/v1/scripts/mrvbf/pctl.exe \
|
990
|
$LAYERS/commons/topo/v1/
|
991
|
# remove now-empty scripts directory
|
992
|
rmdir $LAYERS/commons/topo/v1/scripts/mrvbf
|
993
|
rmdir $LAYERS/commons/topo/v1/scripts
|
994
|
|
995
|
# consolidate second set of scripts into git repo
|
996
|
mv -i $LAYERS/commons/topo/v2/experimental/layers.aml \
|
997
|
$REPO/terrain/research/oregon/arcgis/v2/
|
998
|
mv -i $LAYERS/commons/topo/v2/experimental/aggregate.aml \
|
999
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1000
|
mv -i $LAYERS/commons/topo/v2/experimental/multiscalesmooth9a_clean.aml \
|
1001
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1002
|
mv -i $LAYERS/commons/topo/v2/experimental/tilemerge_oregon1.aml \
|
1003
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1004
|
mv -i $LAYERS/commons/topo/v2/scripts/unpacktiles.aml \
|
1005
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1006
|
mv -i $LAYERS/commons/topo/v2/scripts/unziptiles.py \
|
1007
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1008
|
mv -i $LAYERS/commons/topo/v2/topo/mrvbf6g-a3.aml \
|
1009
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1010
|
mv -i $LAYERS/commons/topo/v2/topo/pctl.aml \
|
1011
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1012
|
mv -i $LAYERS/commons/topo/v2/topo/chunkproc.aml \
|
1013
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1014
|
mv -i $LAYERS/commons/topo/v2/topo/pctl-limits.aml \
|
1015
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1016
|
mv -i $LAYERS/commons/topo/v2/topo/gauss3 \
|
1017
|
$REPO/terrain/research/oregon/arcgis/v2/
|
1018
|
|
1019
|
|
1020
|
#
|
1021
|
# temp_benoit
|
1022
|
#
|
1023
|
|
1024
|
# for now just migrate to experimental area
|
1025
|
mv $ORGANISMS/temp_benoit $LAYERS/commons/
|
1026
|
|
1027
|
|
1028
|
#=======================================================================
|
1029
|
# fix up permissions and ownership
|
1030
|
#=======================================================================
|
1031
|
|
1032
|
chgrp -R layers $LAYERS/data
|
1033
|
find $LAYERS/data -type f -exec chmod 640 {} \;
|
1034
|
find $LAYERS/data -type d -exec chmod g-s {} \;
|
1035
|
find $LAYERS/data -type d -exec chmod 750 {} \;
|
1036
|
|
1037
|
|
1038
|
#=======================================================================
|
1039
|
# now migrate code into git repository clone
|
1040
|
#=======================================================================
|
1041
|
|
1042
|
# nunokawa terrain scripts
|
1043
|
mkdir terrain/research/gtopo30
|
1044
|
mv -i code/terrain/nunokawa-scripts/toProduceData/clipUSGS.r \
|
1045
|
$REPO/terrain/research/gtopo30/
|
1046
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/check.r \
|
1047
|
$REPO/terrain/tests/
|
1048
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/meanElv_OnlyN59.r
|
1049
|
$REPO/terrain/research/north-60/
|
1050
|
rm code/terrain/nunokawa-scripts/toAnalyzeData/meanElv.r
|
1051
|
rm code/terrain/nunokawa-scripts/toAnalyzeData/Deltas.r~
|
1052
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/Deltas.r \
|
1053
|
$REPO/terrain/research/north-60/
|
1054
|
rm code/terrain/nunokawa-scripts/toAnalyzeData/rmse_cor.r~
|
1055
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/rmse_cor.r \
|
1056
|
$REPO/terrain/research/north-60/
|
1057
|
rm code/terrain/nunokawa-scripts/toAnalyzeData/slope.r~
|
1058
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/{aspect,slope}.r
|
1059
|
$REPO/terrain/research/north-60/
|
1060
|
mv -i code/terrain/nunokawa-scripts/toAnalyzeData/negativeTable.r \
|
1061
|
$REPO/terrain/research/north-60/
|
1062
|
mv -i code/terrain/nunokawa-scripts/toProduceData/*.{r,r~} \
|
1063
|
$REPO/terrain/research/north-60/
|
1064
|
|
1065
|
# robinson terrain scripts
|
1066
|
mv -i code/terrain/DEM_ProcessingScripts/Aster_CheckMosaicedTilesExtents.py \
|
1067
|
$REPO/terrain/tests/
|
1068
|
mv -i code/terrain/DEM_ProcessingScripts/CheckPixelValuesAtOverlapZones.txt \
|
1069
|
$REPO/terrain/tests/
|
1070
|
mv -i code/terrain/DEM_ProcessingScripts/Aster\&SRTM_* \
|
1071
|
$REPO/terrain/tests/
|
1072
|
mv -i code/terrain/DEM_ProcessingScripts/Gaussian_Blend.r \
|
1073
|
$REPO/terrain/procedures/
|
1074
|
mv -i terrain/tests/Aster\&SRTM_* \
|
1075
|
$REPO/terrain/procedures/
|
1076
|
mv -i code/terrain/DEM_ProcessingScripts/SRTM_ClipToN59to60.txt \
|
1077
|
$REPO/terrain/procedures/
|
1078
|
mv -i code/terrain/DEM_ProcessingScripts/Mosaicing_AllTiles_East\&WestHemispheres.txt \
|
1079
|
$REPO/terrain/procedures/
|
1080
|
mv -i code/terrain/DEM_ProcessingScripts/AsterMosaicingScripts \
|
1081
|
$REPO/terrain/procedures/
|
1082
|
|
1083
|
# robinson land-cover check
|
1084
|
mv -i code/land-cover/CheckForNoDataValues_LandCoverFiles.txt \
|
1085
|
$REPO/land-cover/tests/
|
1086
|
|
1087
|
# robinson/donoghue Oregon MODIS LST processing code
|
1088
|
mkdir climate/research/oregon
|
1089
|
mkdir climate/research/oregon/modis-lst
|
1090
|
mv -i code/climate/modis-lst-oregon/*.{r,R,py} \
|
1091
|
$REPO/climate/research/oregon/modis-lst/
|
1092
|
|
1093
|
# misc old (authorless) climate code
|
1094
|
mv -i code/climate/cru_3.0_data_extract.r \
|
1095
|
$REPO/climate/procedures/
|
1096
|
mv -i code/climate/gdd-worldclim-tmean-map-algebra.txt \
|
1097
|
$REPO/climate/extra/
|
1098
|
|
1099
|
mv -i $LAYERS/code/terrain/R_files/AsterCheck_demAndnum.r \
|
1100
|
$REPO/terrain/test/
|
1101
|
mv -i $LAYERS/code/terrain/R_files/PctNoLand.r \
|
1102
|
$REPO/terrain/research/gtopo30/
|
1103
|
|
1104
|
# set all file permissions to 644 before committing
|
1105
|
find $REPO -type f -exec ^Cmod 644 {} \;
|
1106
|
|