#!/bin/sh # remove this comand to have the right name of the job #PBS -N CRE_$an-$mois # Lancement qsub -v an=yyyy,mois=mm,typ=day/night Lancement_CRE_orbit.pbs # Pour eviter d'avoir trop de fichier on peut regrouper les flux "output" et "erreur" # en un seul fichier #PBS -j oe # Des informations concernant l'etat du job peuvent etre envoyes par email # "n" pas de email # "a" envoi email si le job est avorte # "b" envoi email lorsque le job debute # "e" envoi email lorsque le job se termine #PBS -m n # Reserve 1 noeud et "ppn" processeurs # check-cluster pour voir ce qui est disponible #PBS -l nodes=1:ppn=8 #PBS -l mem=16g,vmem=16g #PBS -j oe # adresse du email #PBS -M assia.arouf@lmd.ipsl.fr # En fonction de la duree des calculs # -std ==> 6h CPU # -day ==> 24h CPU #-threedays ==> 72 CPU # -week ==> 168h CPU # -infini ==> pas de limite ##PBS -q threedays ##PBS -q day #PBS -q week #PBS -W group_list=cfmip # Pour activer environnement python source activate EnvPy # Pour aller dans le repertoire cd /bdd/CFMIP/CFMIP_OBS_LOCAL/CRE_SFC_Lid/Instant/Src # /bdd/CFMIP-Temp/GOCCP/Instant_CRE/Src # Data Input INDIR='/bdd/CFMIP/CFMIP_OBS_LOCAL/GOCCP_v3/instant_SR_CR_DR/v3.1.2' #Data Output OUTDIR='/bdd/CFMIP/CFMIP_OBS_LOCAL/CRE_SFC_Lid/Instant/Data' # '/bdd/CFMIP-Temp/GOCCP/Instant_CRE/Data' for file in `ls ${INDIR}/${an}/${typ}/instant_SR_CR_DR_${an}-${mois}*CFMIP2*` do python Instant_CREATION_CRE_orbit.py $an $typ $file done