Changeset 3035 for development/stochastic_study/plot_spread.py
- Timestamp:
- May 31, 2006, 5:03:59 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
development/stochastic_study/plot_spread.py
r3011 r3035 15 15 # Initialise 16 16 # 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 20 study = 'cyclone1' #~4000 realisations, blocks of 100, parallel, stddev= 0.0006 21 #study = 'cyclone3' #~120 realisations, blocks of 10, parallel, stddev= 0.0013 20 22 21 23 time, data, filenames = read_realisations(study, 22 24 #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) 25 30 number_of_realisations = data.shape[1] 31 number_of_timesteps = data.shape[0] 26 32 print 'Read %d realisations' %number_of_realisations 33 27 34 28 35 # Plot … … 34 41 35 42 36 for j in range( 20):43 for j in range(1): 37 44 #print j, filenames[j] 38 45 plot(time, data[:,j], 'k-') … … 45 52 %(study, shortname, j, number_of_realisations-1)) 46 53 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 57 raw_input('Stats') 50 58 51 59 … … 53 61 hold(False) 54 62 # Plot spread of stage values for each timestep 55 for i in range( 300,320): #project.number_of_timesteps):63 for i in range(0,project.number_of_timesteps): 56 64 # Plot histogram# 57 65 … … 62 70 title('Study %s: spread at timestep %d of %d (t=%.2f)'\ 63 71 %(study, i, project.number_of_timesteps-1, time[i])) 64 72 raw_input('Next') 65 73 74 show() 75 import sys; sys.exit() 66 76 67 77 hold(False)
Note: See TracChangeset
for help on using the changeset viewer.