Changeset 6720


Ignore:
Timestamp:
Apr 3, 2009, 4:05:06 PM (15 years ago)
Author:
ole
Message:

Added option to loop models over events

Location:
anuga_work/production/australia_ph2/ceduna
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/production/australia_ph2/ceduna/project.py

    r6672 r6720  
    2929##zone = 53               # specify zone of model
    3030central_meridian = 133.0 # nonstandard projection
    31 event_number = 27347    # the event number or the mux file name
     31
     32import sys
     33if len(sys.argv) > 1:
     34    event_number = int(sys.argv[1])
     35else:   
     36    event_number = 27347    # the event number or the mux file name
     37
     38
    3239# ceduna: 27347 (Java), 64448 (sandwich), 58331 (Puysegur)
    3340# other possible sources:
     
    4451wave = 'Bf'             # Bf (sts wave) Tb (index wave)
    4552
    46 setup = 'final'         # This can be one of three values
     53setup = 'trial'         # This can be one of three values
    4754                        #    trial - coarsest mesh, fast
    4855                        #    basic - coarse mesh
     
    221228event_sts = join(event_folder, scenario_name)
    222229
     230
     231
    223232# The absolute pathname for the output folder names
    224233# Used for build_elevation.py
     
    243252boundary_csv = join(event_folder, 'sts_gauge_' + str(index) + '.csv')
    244253
     254
Note: See TracChangeset for help on using the changeset viewer.