Ignore:
Timestamp:
May 31, 2006, 5:03:59 PM (18 years ago)
Author:
ole
Message:

Working with Suresh at ACFR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • development/stochastic_study/plot_spread.py

    r3011 r3035  
    1515# Initialise
    1616# Read in all realisations-timeseries
    17 study = 'cyclone1'
    18 study = 'cyclone3'
    19 #study = 'nautilus3'
     17
     18#study = 'nautilus1' #~70 realisations, blocks of 100, sequential, stddev= 0.0006
     19#study = 'nautilus3' #~100 realisations, blocks of 10, sequential, stddev= 0.0013
     20study = 'cyclone1' #~4000 realisations, blocks of 100, parallel, stddev= 0.0006
     21#study = 'cyclone3' #~120 realisations, blocks of 10, parallel, stddev= 0.0013
    2022
    2123time, data, filenames = read_realisations(study,
    2224                                          #max_realisations = 200,
    23                                           gauge_number=2,
    24                                           use_cache=False)
     25                                          gauge_number=0,
     26                                          sorting='randomised',
     27                                          #sorting='numerical',
     28                                          verbose=True,
     29                                          use_cache=True)
    2530number_of_realisations = data.shape[1]
     31number_of_timesteps = data.shape[0]
    2632print 'Read %d realisations' %number_of_realisations
     33
    2734
    2835# Plot
     
    3441
    3542
    36 for j in range(20):
     43for j in range(1):
    3744    #print j, filenames[j]
    3845    plot(time, data[:,j], 'k-')
     
    4552          %(study, shortname, j, number_of_realisations-1))
    4653   
    47     #title('Study %s: timeseries for %s (realisation %d of %d)'\
    48     #      %(study, filenames[j], j, number_of_realisations-1))   
    49     raw_input('Next')
     54    #raw_input('Next')
     55
     56
     57raw_input('Stats')   
    5058 
    5159
     
    5361hold(False)
    5462# Plot spread of stage values for each timestep
    55 for i in range(300,320): #project.number_of_timesteps):
     63for i in range(0,project.number_of_timesteps):
    5664    # Plot histogram#
    5765
     
    6270    title('Study %s: spread at timestep %d of %d (t=%.2f)'\
    6371          %(study, i, project.number_of_timesteps-1, time[i]))       
    64     raw_input('Next')
     72raw_input('Next')
    6573
     74show()
     75import sys; sys.exit()
    6676
    6777hold(False)
Note: See TracChangeset for help on using the changeset viewer.