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