Commit e2271bb5226f307e81da254efefcaa256d5e3b38

Authored by Elena.Budnik
1 parent c58abd8b
Exists in master

work

Showing 4 changed files with 14 additions and 14 deletions   Show diff stats
Bin.py/log 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +2016-06-24 00:00:00
  2 +2016-01-20 00:00:00
  3 +New mission start : 2016-01-20T00:00:00
  4 +New mission stop : 2016-06-24T00:00:00
  5 +Database has to be updated
  6 +1 file will be producted
  7 +XML Start : 2016-01-01T00:00:00
  8 +XML Stop : 2016-06-24T00:00:00
  9 +You can work 4.5 hours in this session.
... ...
Bin.py/run.py
... ... @@ -14,11 +14,10 @@ def main():
14 14 J2000REF = 946679400 # 2000-01-01T00:00:00 -30min
15 15  
16 16 # CHECK ARGS
17   - checkArgs(4, 'Usage : python run.py (target) (plasma src) (Solar Wind XML config file)')
  17 + checkArgs(3, 'Usage : python run.py (target) (Solar Wind XML config file)')
18 18  
19 19 prefix = sys.argv[1]
20   - src = sys.argv[2]
21   - xmlFile = sys.argv[3]
  20 + xmlFile = sys.argv[2]
22 21  
23 22 start_time = myTime.time()
24 23  
... ... @@ -30,6 +29,7 @@ def main():
30 29  
31 30 # GET INFOS FROM XML CONFIG FILE
32 31 start,stop,plasmaVi,srcVi,srcR,srcLon,tgtVi,tgtR,tgtLon = getXMLConfig(xmlFile)
  32 + src = plasmaVi.split('_')[0]
33 33  
34 34 # CREATE A DIRECTORY FOR THE NEW QUERY
35 35 MYDIR = SW2DATA+'/'+src+'/'+prefix+'_'+datetime.now().strftime('%Y%m%d')
... ...
env.sh
1 1 #!/bin/bash
2 2  
3   -# SOFT ROOT
  3 +# SOFT ROOT
4 4 export SW2ROOT=/home/budnik/SolarWind
5 5  
6 6 export DDUSER=budnik
... ...
runRequest
... ... @@ -9,15 +9,6 @@ SwStop=$5
9 9  
10 10 . $(dirname $BASH_SOURCE)/env.sh
11 11  
12   - case $src_vi in
13   - omni_hour_all)
14   - src=omni
15   - ;;
16   - ace_swepam_real)
17   - src=ace
18   - ;;
19   - esac
20   -
21 12 # delete results of previous calculations
22 13 rm -rf $SW2NC/$tgt* $SW2DATA/$src/$tgt*
23 14  
... ... @@ -31,6 +22,6 @@ SwStop=$5
31 22 # run newly created Request
32 23 for request in $REQ/$tgt*.xml
33 24 do
34   - python run.py $tgt $src $request & echo $!
  25 + python run.py $tgt $request & echo $!
35 26 done
36 27  
37 28 \ No newline at end of file
... ...