#!/bin/ksh
#PBS -lselect=1:ncpus=1
#PBS -N EXP
#PBS -j oe
#PBS -q pesq.q
#PBS -A CPTEC


## Entre com as datas. Ex.: 0100, 0200, ....
rodada=3200

##### PROGRAMA PARA DESCOMPACTAR OS DADOS DO BAM #############
##### BAM_TQ0666_GPOS_2018010100.tgz #########

dirin=/scratchout/grupos/apgmet/home/joao.araujo/BAM/BAM_TQ0666_GPOS_201801${rodada}.tgz
dirout=/scratchout/grupos/apgmet/home/joao.araujo/BAM/DESCOMPACTADO/${rodada}/

mkdir -p ${dirout}
echo ${rodada}

cd ${dirout}
echo ${dirout}

tar -vzxf ${dirin}

exit



