Skip to content

Commit e790938

Browse files
committed
example hadam4 extraction
1 parent 6007067 commit e790938

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

examples/extract_local_hadam4.sh

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Script to extract data from BATCH to a directory on the server where the data is stored
2+
# Example paths are given for the GPFS filesystem on cpdn-ppc01 (data for upload2 in Oxford)
3+
# Author: Sihan Li
4+
# Modified: 08/09/2017
5+
#
6+
7+
# Set up paths
8+
EXTRACT_SCRIPTS_DIR=..
9+
EXTRACT_DATA_DIR=/gws/nopw/j04/docile/scratch/ssparrow/
10+
11+
# Current URL for uploads includes project and batch number
12+
BATCH=d196
13+
PROJECT=docile
14+
DATA_DIR=/gws/nopw/j04/docile/project_results/$PROJECT
15+
BATCH_DATA_DIR=$DATA_DIR/batch_${BATCH}/successful/
16+
# Specify a certain year to extract, if extract all years, set to 0
17+
YEAR=2011
18+
19+
20+
# Start and end zip to extract data from:
21+
START_ZIP=3
22+
END_ZIP=5
23+
24+
# Extract data from the batch directory ['ga.pd',5216,[],'all',-0.0001,1,24,'mean','z0'],\
25+
/home/users/ssparrow01/miniconda2/envs/pyenv/bin/python $EXTRACT_SCRIPTS_DIR/wah_extract_local_hadam4.py -i $BATCH_DATA_DIR \
26+
-f "\
27+
['ga.pc',15201,[],'all',-200,200,6,'mean','pressure_0'],\
28+
" -o $EXTRACT_DATA_DIR/batch_${BATCH} -y $YEAR -s $START_ZIP -e $END_ZIP

0 commit comments

Comments
 (0)