#!/bin/bash
#SBATCH --qos prace
#SBATCH --constraint=highmem
#SBATCH -n 2
#SBATCH -J ncks
#SBATCH -o out_ncks_%J.out
#SBATCH -e err_ncks_%J.err
#SBATCH -t 01:59:00


#OPTS="-d x,7330,7780 -d y,2240,2750" ; box='black_sea'
OPTS="-d x,7330,8354 -d y,2240,3400" ; box='black_sea'

ncks -O -F ${OPTS} votemper_GLORYS2V4-eNATL60_2010_eNATL60.nc -o T_${box}.tmp &
ncks -O -F ${OPTS} vosaline_GLORYS2V4-eNATL60_2010_eNATL60.nc -o S_${box}.tmp &

wait
wait
