- Timestamp:
- Mar 27, 2013, 8:04:00 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/shallow_water/test_data_manager.py
r8690 r8780 18 18 from struct import pack, unpack 19 19 20 from Scientific.IO.NetCDFimport NetCDFFile20 from anuga.file.netcdf import NetCDFFile 21 21 22 22 … … 142 142 fid.variables[long_name].point_spacing='uneven' 143 143 fid.variables[long_name].units='degrees_east' 144 fid.variables[long_name] .assignValue(longitudes)144 fid.variables[long_name][:] = longitudes 145 145 146 146 fid.createDimension(lat_name,ny) … … 148 148 fid.variables[lat_name].point_spacing='uneven' 149 149 fid.variables[lat_name].units='degrees_north' 150 fid.variables[lat_name] .assignValue(latitudes)150 fid.variables[lat_name][:] = latitudes 151 151 152 152 fid.createDimension('TIME',six) … … 154 154 fid.variables['TIME'].point_spacing='uneven' 155 155 fid.variables['TIME'].units='seconds' 156 fid.variables['TIME'] .assignValue([0.0, 0.1, 0.6, 1.1, 1.6, 2.1])156 fid.variables['TIME'][:] = [0.0, 0.1, 0.6, 1.1, 1.6, 2.1] 157 157 158 158 … … 163 163 fid.variables[name].missing_value=-1.e+034 164 164 165 fid.variables[name] .assignValue([[[0.3400644, 0, -46.63519, -6.50198],165 fid.variables[name][:] = [[[0.3400644, 0, -46.63519, -6.50198], 166 166 [-0.1214216, 0, 0, 0], 167 167 [0, 0, 0, 0], … … 186 186 [-0.1209405, 0.0009771062, 0.02527271, 2.617787e-005], 187 187 [0.0004811212, 0.0009622425, 0.0009599366, 8.152277e-007], 188 [0, 0.0004811212, 0.0004811212, 0]]] )188 [0, 0.0004811212, 0.0004811212, 0]]] 189 189 190 190 … … 495 495 496 496 import time, os 497 from Scientific.IO.NetCDF import NetCDFFile498 497 499 498 self.domain.set_name('datatest' + str(id(self))) … … 549 548 550 549 import time, os, config 551 from Scientific.IO.NetCDF import NetCDFFile552 550 553 551 self.domain.set_name('synctest') … … 596 594 597 595 import time, os 598 from Scientific.IO.NetCDF import NetCDFFile599 596 600 597 self.domain.set_name('datatest' + str(id(self)))
Note: See TracChangeset
for help on using the changeset viewer.