File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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}
You can’t perform that action at this time.
0 commit comments