forked from mgangl/tds-mur-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.sh
55 lines (35 loc) · 4.5 KB
/
test.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/sh
die () {
echo >&2 "$@"
exit 1
}
[ "$#" -eq 1 ] || die "summary/log file argument required, $# provided"
summary=$1
if test -f "timing.$summary.txt"; then
die "Summary/Log file already exists. please choose a new name or delete the existing file"
fi
echo "1x1x1" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-01T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "1x1x2" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-02T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "1x1x5" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-05T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "1x1x10" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-09T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "1x1x20" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-20T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "1x1x30" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-49&south=49&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-30T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x1" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-01T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x2" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-02T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x5" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-05T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x10" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-09T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x20" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-20T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
echo "5x5x30" >> timing.$summary.txt
/usr/bin/time --output=timing.$summary.txt -a -p wget --no-verbose 'http://52.34.105.100/thredds/ncss/grid/scan-aggregation/mur-2019-01.nc?var=analysed_sst&north=50&west=-50&east=-45&south=45&horizStride=1&time_start=2021-01-01T00:00:00Z&time_end=2021-01-30T00:00:00Z&timeStride=1&vertCoord=&accept=netcdf4-classic'
aws s3 cp timing.$summary.txt s3://podaac-mur-access-study/results/timing.$summary.txt