Changeset 7184
- Timestamp:
- Jun 11, 2009, 3:19:14 PM (15 years ago)
- Location:
- branches/numpy_anuga_validation
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy_anuga_validation/automated_validation_tests/UQ_runup_2006/Dam break_240406_0011.lic
r5337 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> -
branches/numpy_anuga_validation/automated_validation_tests/UQ_runup_2006/actual.lic
r5105 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> -
branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/Benchmark_2_Bathymetry.lic
r5025 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> -
branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/Benchmark_2_input.lic
r5025 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> -
branches/numpy_anuga_validation/automated_validation_tests/okushiri_tank_validation/output_ch5-7-9.lic
r5025 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 8 7 <datafile> 9 8 <filename>output_ch5-7-9.txt</filename> 10 <checksum> -1044604103</checksum>9 <checksum>3250363193</checksum> 11 10 <publishable>Yes</publishable> 12 11 <accountable>Ole Nielsen</accountable> -
branches/numpy_anuga_validation/automated_validation_tests/urs_mux_files_validation/boundary_gauges.lic
r5109 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> … … 7 6 <datafile> 8 7 <filename>boundary_gauges.txt</filename> 9 <checksum> -1553233046</checksum>8 <checksum>2741734250</checksum> 10 9 <publishable>Yes</publishable> 11 10 <accountable>Duncan Gray</accountable> -
branches/numpy_anuga_validation/automated_validation_tests/urs_mux_files_validation/gauges.lic
r5109 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> -
branches/numpy_anuga_validation/automated_validation_tests/urs_mux_files_validation/o_test-e-mux.lic
r5505 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> … … 7 6 <datafile> 8 7 <filename>o_test-e-mux</filename> 9 <checksum> -1664514244</checksum>8 <checksum>2630453052</checksum> 10 9 <publishable>Yes</publishable> 11 10 <accountable>Duncan Gray</accountable> -
branches/numpy_anuga_validation/automated_validation_tests/urs_mux_files_validation/o_test-n-mux.lic
r5505 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> -
branches/numpy_anuga_validation/automated_validation_tests/urs_mux_files_validation/o_test-z-mux.lic
r5505 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 3 <ga_license_file> 1 <?xml version='1.0' encoding='iso-8859-1'?> 2 <ga_license_file> 4 3 <metadata> 5 4 <author>Duncan Gray</author> … … 7 6 <datafile> 8 7 <filename>o_test-z-mux</filename> 9 <checksum> -1449856062</checksum>8 <checksum>2845111234</checksum> 10 9 <publishable>Yes</publishable> 11 10 <accountable>Duncan Gray</accountable> -
branches/numpy_anuga_validation/okushiri_2005/Benchmark_2_Bathymetry.lic
r5023 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 8 7 <datafile> 9 8 <filename>Benchmark_2_Bathymetry.txt</filename> 10 <checksum> -1310724450</checksum>9 <checksum>2984242846</checksum> 11 10 <publishable>Yes</publishable> 12 11 <accountable>Ole Nielsen</accountable> -
branches/numpy_anuga_validation/okushiri_2005/Benchmark_2_input.lic
r5023 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> -
branches/numpy_anuga_validation/okushiri_2005/compare_timeseries.py
r4557 r7184 5 5 """ 6 6 7 from Numeric import allclose, argmin, argmax 7 import numpy as num 8 8 from Scientific.IO.NetCDF import NetCDFFile 9 9 … … 55 55 56 56 for i, line in enumerate(lines[1:]): 57 if i == len(input_time): break 57 if i 58 import numpy as num== len(input_time): break 58 59 59 60 fields = line.split() … … 68 69 assert reference_time[0] == 0.0 69 70 assert reference_time[-1] == finaltime 70 assert allclose(reference_time, input_time)71 assert num.allclose(reference_time, input_time) 71 72 72 73 for key in gauge_names: … … 144 145 145 146 # Locations of extrema 146 i0 = argmax(observed_timeseries)147 i1 = argmax(model)147 i0 = num.argmax(observed_timeseries) 148 i1 = num.argmax(model) 148 149 res = abs(reference_time[i1] - reference_time[i0]) 149 150 print 'Timelag between maxima = %.18e' %res 150 151 151 152 152 i0 = argmin(observed_timeseries)153 i1 = argmin(model)153 i0 = num.argmin(observed_timeseries) 154 i1 = num.argmin(model) 154 155 res = abs(reference_time[i1] - reference_time[i0]) 155 156 print 'Timelag between minima = %.18e' %res -
branches/numpy_anuga_validation/okushiri_2005/create_okushiri.py
r3915 r7184 1 1 """Create mesh and time boundary for the Okushiri island validation 2 2 """ 3 4 5 from Numeric import array, zeros, Float, allclose6 3 7 4 from anuga.pmesh.mesh import * … … 9 6 from anuga.coordinate_transforms.geo_reference import Geo_reference 10 7 from anuga.geospatial_data import Geospatial_data 8 9 from Scientific.IO.NetCDF import NetCDFFile 11 10 12 11 import project … … 51 50 """ 52 51 53 from Scientific.IO.NetCDF import NetCDFFile54 from Numeric import array55 56 57 52 print 'Creating', filename 58 53 … … 69 64 70 65 N = len(lines) 71 T = zeros(N, Float) #Time72 Q = zeros(N, Float) #Values66 T = num.zeros(N, num.float) #Time 67 Q = num.zeros(N, num.float) #Values 73 68 74 69 for i, line in enumerate(lines): … … 86 81 fid.starttime = 0.0 87 82 fid.createDimension('number_of_timesteps', len(T)) 88 fid.createVariable('time', Float, ('number_of_timesteps',))83 fid.createVariable('time', netcdf_float, ('number_of_timesteps',)) 89 84 fid.variables['time'][:] = T 90 85 91 fid.createVariable('stage', Float, ('number_of_timesteps',))86 fid.createVariable('stage', netcdf_float, ('number_of_timesteps',)) 92 87 fid.variables['stage'][:] = Q[:] 93 88 94 fid.createVariable('xmomentum', Float, ('number_of_timesteps',))89 fid.createVariable('xmomentum', netcdf_float, ('number_of_timesteps',)) 95 90 fid.variables['xmomentum'][:] = 0.0 96 91 97 fid.createVariable('ymomentum', Float, ('number_of_timesteps',))92 fid.createVariable('ymomentum', netcdf_float, ('number_of_timesteps',)) 98 93 fid.variables['ymomentum'][:] = 0.0 99 94 -
branches/numpy_anuga_validation/okushiri_2005/create_okushiri_original.py
r3913 r7184 2 2 """ 3 3 4 from Numeric import array, zeros, Float, allclose 4 import numpy as num 5 from Scientific.IO.NetCDF import NetCDFFile 5 6 6 7 from anuga.pmesh.mesh import * 7 8 from anuga.coordinate_transforms.geo_reference import Geo_reference 9 from anuga.config import netcdf_float 8 10 9 11 import project … … 19 21 20 22 print 'Preparing time boundary from %s' %textversion 21 from Numeric import array22 23 23 24 fid = open(textversion) … … 32 33 33 34 N = len(lines) 34 T = zeros(N, Float) #Time35 Q = zeros(N, Float) #Values35 T = num.zeros(N, num.float) #Time 36 Q = num.zeros(N, num.float) #Values 36 37 37 38 for i, line in enumerate(lines): … … 43 44 44 45 #Create tms file 45 from Scientific.IO.NetCDF import NetCDFFile46 47 46 print 'Writing to', filename 48 47 fid = NetCDFFile(filename, 'w') … … 52 51 fid.starttime = 0.0 53 52 fid.createDimension('number_of_timesteps', len(T)) 54 fid.createVariable('time', Float, ('number_of_timesteps',))53 fid.createVariable('time', netcdf_float, ('number_of_timesteps',)) 55 54 fid.variables['time'][:] = T 56 55 57 fid.createVariable('stage', Float, ('number_of_timesteps',))56 fid.createVariable('stage', netcdf_float, ('number_of_timesteps',)) 58 57 fid.variables['stage'][:] = Q[:] 59 58 60 fid.createVariable('xmomentum', Float, ('number_of_timesteps',))59 fid.createVariable('xmomentum', netcdf_float, ('number_of_timesteps',)) 61 60 fid.variables['xmomentum'][:] = 0.0 62 61 63 fid.createVariable('ymomentum', Float, ('number_of_timesteps',))62 fid.createVariable('ymomentum', netcdf_float, ('number_of_timesteps',)) 64 63 fid.variables['ymomentum'][:] = 0.0 65 64 … … 226 225 m.generateMesh('pzq28.0za1000000a') 227 226 228 import project229 227 m.export_mesh_file(project.mesh_filename) 230 228 -
branches/numpy_anuga_validation/okushiri_2005/output_ch5-7-9.lic
r5020 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 19 18 <datafile> 20 19 <filename>output_ch5-7-9.txt</filename> 21 <checksum> -1044604103</checksum>20 <checksum>3250363193</checksum> 22 21 <publishable>Yes</publishable> 23 22 <accountable>Ole Nielsen</accountable> -
branches/numpy_anuga_validation/okushiri_2005/problem02.lic
r5023 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 8 7 <datafile> 9 8 <filename>problem02.doc</filename> 10 <checksum> -1811884659</checksum>9 <checksum>2483082637</checksum> 11 10 <publishable>Yes</publishable> 12 11 <accountable>Ole Nielsen</accountable> -
branches/numpy_anuga_validation/okushiri_2005/test_caching_of_set_quantity.py
r7039 r7184 16 16 from anuga.fit_interpolate.fit import _fit_to_mesh 17 17 import project 18 import Numericas num18 import numpy as num 19 19 import time 20 20 -
branches/numpy_anuga_validation/okushiri_2005/timings.lic
r5023 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 8 7 <datafile> 9 8 <filename>timings.txt</filename> 10 <checksum> -1935951304</checksum>9 <checksum>2359015992</checksum> 11 10 <publishable>Yes</publishable> 12 11 <accountable>Ole Nielsen</accountable> -
branches/numpy_anuga_validation/performance_tests/okushiri/Benchmark_2.lic
r5026 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> -
branches/numpy_anuga_validation/performance_tests/okushiri/Benchmark_2_Bathymetry.lic
r5026 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> -
branches/numpy_anuga_validation/performance_tests/okushiri/Benchmark_2_input.lic
r5026 r7184 1 <?xml version="1.0" encoding="iso-8859-1"?> 2 1 <?xml version='1.0' encoding='iso-8859-1'?> 3 2 <ga_license_file> 4 3 <metadata> … … 8 7 <datafile> 9 8 <filename>Benchmark_2_input.tms</filename> 10 <checksum> -725631838</checksum>9 <checksum>3569335458</checksum> 11 10 <publishable>Yes</publishable> 12 11 <accountable>Ole Nielsen</accountable>
Note: See TracChangeset
for help on using the changeset viewer.