Skip to content
Snippets Groups Projects
Commit 61072d7e authored by Peters, Wouter's avatar Peters, Wouter
Browse files

das.py needed minor changes to run through the qsub system

parent 84978384
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,8 @@ clean:
/bin/rm -f */*/jb.[0-9]*.jb
/bin/rm -f */*/jb.[0-9]*.log
/bin/rm -f */*/*.pyc
/bin/rm -f *.o*
/bin/rm -f *.po*
......@@ -384,12 +384,9 @@ def ToDatetime(datestring,fmt=None):
""" convert a date string to a datetime object """
import datetime
print datestring
if fmt == 'TM5':
datestring = '%04s-%02s-%02s %02s:%02s:00'%(datestring[0:4],datestring[4:6],datestring[6:8],datestring[8:10],datestring[10:12])
print datestring
try:
return datetime.datetime.strptime(datestring,'%Y-%m-%d %H:%M:%S')
except:
......
......@@ -8,6 +8,21 @@ Revision History:
File created on 29 Sep 2009.
"""
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# qsub (ijet)
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~
#$ -N das.py
#$ -A co2
#$ -cwd
#$ -pe serial 1
#$ -r y
#$ -l h_rt=00:10:00
#$ -S /bin/sh
#$ -j y
#$ -v PYTHONPATH
#$ -v NETCDF
#$ -v LD_LIBRARY_PATH
header = '\n\n *************************************** '
footer = ' *************************************** \n '
......@@ -141,15 +156,18 @@ if __name__ == "__main__":
import logging
import shutil
# Append current working dir to path
sys.path.append(os.getcwd())
# Import methods and classes contained in this package
from da.tools.initexit import CycleControl
from da.tools.general import CleanUpCycle
from da.tools.general import ValidateOptsArgs
from da.tools.general import ParseOptions
from da.tools.general import StartLogger
# Append current working dir to path
sys.path.append(os.getcwd())
# Start a logger for all that happens from here on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment