Changeset 7276 for misc/tools/write_large_files
- Timestamp:
- Jun 30, 2009, 2:07:41 PM (15 years ago)
- Location:
- misc/tools/write_large_files
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
misc/tools/write_large_files/rw_big_file.py
r6739 r7276 7 7 import getopt 8 8 import time 9 import Numeric9 import numpy as num 10 10 import Scientific.IO.NetCDF as nc 11 11 … … 59 59 def read_file(filename, variable_size, num_variables): 60 60 # create a data array slice 61 slice_array_mask = Numeric.ones((XDIM,), 'd')61 slice_array_mask = num.ones((XDIM,), 'd') 62 62 63 63 # if timing file read, get start time … … 102 102 103 103 var_array = fid.variables[varname][index,:] 104 if var_array != slice_array:104 if num.any(var_array != slice_array): 105 105 result = False 106 106 if Verbose: … … 148 148 149 149 # create a data array slice 150 slice_array_mask = Numeric.ones((XDIM,), 'd')150 slice_array_mask = num.ones((XDIM,), 'd') 151 151 152 152 # if timing file write, remember start time -
misc/tools/write_large_files/rwi4_big_file.py
r6906 r7276 19 19 import getopt 20 20 import time 21 import Numeric21 import numpy as num 22 22 import Scientific.IO.NetCDF as nc 23 23 … … 63 63 def read_file(filename, variable_size, num_variables): 64 64 # create a data array slice 65 slice_array_mask = Numeric.ones((XDIM,), 'd')65 slice_array_mask = num.ones((XDIM,), 'd') 66 66 67 67 # if timing file read, get start time … … 134 134 135 135 # create a data array slice 136 slice_array_mask = Numeric.ones((XDIM,), 'd')136 slice_array_mask = num.ones((XDIM,), 'd') 137 137 138 138 # if timing file write, remember start time -
misc/tools/write_large_files/rwi_big_file.py
r6906 r7276 19 19 import getopt 20 20 import time 21 import Numeric21 import numpy as num 22 22 import Scientific.IO.NetCDF as nc 23 23 … … 63 63 def read_file(filename, variable_size, num_variables): 64 64 # create a data array slice 65 slice_array_mask = Numeric.ones((XDIM,), 'd')65 slice_array_mask = num.ones((XDIM,), 'd') 66 66 67 67 # if timing file read, get start time … … 137 137 138 138 # create a data array slice 139 slice_array_mask = Numeric.ones((XDIM,), 'd')139 slice_array_mask = num.ones((XDIM,), 'd') 140 140 141 141 # if timing file write, remember start time -
misc/tools/write_large_files/rwil_big_file.py
r6906 r7276 19 19 import getopt 20 20 import time 21 import Numeric21 import numpy as num 22 22 import Scientific.IO.NetCDF as nc 23 23 … … 63 63 def read_file(filename, variable_size, num_variables): 64 64 # create a data array slice 65 slice_array_mask = Numeric.ones((XDIM,), 'd')65 slice_array_mask = num.ones((XDIM,), 'd') 66 66 67 67 # if timing file read, get start time … … 134 134 135 135 # create a data array slice 136 slice_array_mask = Numeric.ones((XDIM,), 'd')136 slice_array_mask = num.ones((XDIM,), 'd') 137 137 138 138 # if timing file write, remember start time -
misc/tools/write_large_files/write_big_file.py
r6739 r7276 7 7 import getopt 8 8 import time 9 import Numeric9 import numpy as num 10 10 import Scientific.IO.NetCDF as nc 11 11 … … 54 54 55 55 # create a data array slice 56 slice_array = Numeric.ones((XDIM,), 'i')56 slice_array = num.ones((XDIM,), 'i') 57 57 58 58 # if timing file write, remember start time
Note: See TracChangeset
for help on using the changeset viewer.