Changeset 2968


Ignore:
Timestamp:
May 25, 2006, 11:57:08 AM (18 years ago)
Author:
ole
Message:

Work

Location:
development/stochastic_study
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • development/stochastic_study/create_realisations.py

    r2966 r2968  
    4545    print 'Creating sample #%d' %n
    4646    # nth realisation of bathymetry
    47     z = elevation + normal(project.mean,
    48                            project.std_dev,
    49                            N)
     47
     48    if n == 0:
     49        z = elevation # Keep the first realisation as original
     50    else:   
     51        z = elevation + normal(project.mean,
     52                               project.std_dev,
     53                               N)
    5054
    5155    #Concatenate into array with each realisation a column
  • development/stochastic_study/extract_timeseries.py

    r2610 r2968  
    6262
    6363#Read model output
    64 filename = project.basename + '.sww'
     64filename = project.basename + '0.sww'
    6565
    6666f = cache(file_function, filename,
Note: See TracChangeset for help on using the changeset viewer.