Changeset 5745 for anuga_core/source/anuga/shallow_water/data_manager.py
- Timestamp:
- Sep 8, 2008, 3:55:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r5736 r5745 5207 5207 number_of_longitudes = longitudes.shape[0] # Number longitudes 5208 5208 5209 5210 # The permutation vector of contains original indices 5211 # as given in ordering file or None in which case points 5212 # are assigned the trivial indices enumerating them from 5213 # 0 to number_of_points-1 5214 if permutation is None: 5215 permutation = arange(number_of_points, typecode=Int) 5216 5217 5209 5218 # NetCDF file definition 5210 5219 outfile = NetCDFFile(stsname, 'w') … … 5254 5263 5255 5264 elevation = resize(elevation,outfile.variables['elevation'][:].shape) 5265 outfile.variables['permutation'][:] = permutation 5256 5266 outfile.variables['x'][:] = x - geo_ref.get_xllcorner() 5257 5267 outfile.variables['y'][:] = y - geo_ref.get_yllcorner() … … 5768 5778 5769 5779 # Variable definitions 5780 outfile.createVariable('permutation', Int, ('number_of_points',)) 5770 5781 outfile.createVariable('x', sts_precision, ('number_of_points',)) 5771 5782 outfile.createVariable('y', sts_precision, ('number_of_points',))
Note: See TracChangeset
for help on using the changeset viewer.