Skip to content

Commit 587cf65

Browse files
authored
Merge pull request #206 from terraref/jdmaloney-patch-1
Create terra_dataset_counts.sh
2 parents 2e1ce68 + 00e7b93 commit 587cf65

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

scripts/terra_dataset_counts.sh

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
#!/bin/bash
2+
3+
output_file="/gpfs/largeblockFS/projects/arpae/terraref/users/dlebauer/dataset_count_report.txt"
4+
5+
echo $(date) > ${output_file}
6+
7+
## UA-MAC Level 1 ##
8+
mac_lev1=(envlog_netcdf fullfield ir_geotiff laser3d_heightmap laser3d_ply2las rgb_geotiff scanner3DTop vnir_netcdf)
9+
10+
for s in ${mac_lev1[@]}
11+
do
12+
dates=$(ls /gpfs/largeblockFS/projects/arpae/terraref/sites/ua-mac/Level_1/${s}/)
13+
for d in ${dates[@]}
14+
do
15+
count=$(find /gpfs/largeblockFS/projects/arpae/terraref/sites/ua-mac/Level_1/${s}/${d}/ -type d | wc -l)
16+
echo "${s},${d},${count}" >> ${output_file}
17+
done
18+
done
19+
20+
## UA-MAC RAW ##
21+
22+
mac_raw=(EnvironmentLogger SWIR VNIR flirIrCamera irrigation lightning scanner3DTop stereoTop weather)
23+
24+
for s in ${mac_raw[@]}
25+
do
26+
dates=$(ls /gpfs/largeblockFS/projects/arpae/terraref/sites/ua-mac/raw_data/${s}/)
27+
for d in ${dates[@]}
28+
do
29+
count=$(find /gpfs/largeblockFS/projects/arpae/terraref/sites/ua-mac/raw_data/${s}/${d}/ -type d | wc -l)
30+
echo "${s},${d},${count}" >> ${output_file}
31+
done
32+
done
33+
chown 47852 ${output_file}

0 commit comments

Comments
 (0)