Changeset 4000 for anuga_core/source/anuga/extras
- Timestamp:
- Nov 16, 2006, 10:47:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/extras/thinbathy.py
r3677 r4000 15 15 16 16 fid = NetCDFFile(input_file, 'r') 17 print fid.variables 17 18 19 # for first event 18 20 latitudes = fid.variables['LAT'][::lat_thin] 19 21 longitudes = fid.variables['LON'][::lon_thin] … … 21 23 22 24 outfile = NetCDFFile(output_file, 'w') 23 outfile.createDimension('LON', fid.dimensions['LON']/lon_thin) # + 1) 24 outfile.createDimension('LAT', fid.dimensions['LAT']/lat_thin) # + 1) 25 outfile.createDimension('LON', fid.dimensions['LON']/lon_thin) 26 outfile.createDimension('LAT', fid.dimensions['LAT']/lat_thin) 27 28 ## # for second event 29 ## latitudes = fid.variables['LAT601_690'][::lat_thin] 30 ## longitudes = fid.variables['LON645_705'][::lon_thin] 31 ## elevations = fid.variables['ELEVATION'][::lat_thin,::lon_thin] 32 ## 33 ## outfile = NetCDFFile(output_file, 'w') 34 ## outfile.createDimension('LON', fid.dimensions['LON645_705']/lon_thin + 1) 35 ## outfile.createDimension('LAT', fid.dimensions['LAT601_690']/lat_thin + 1) 25 36 26 37 import Numeric
Note: See TracChangeset
for help on using the changeset viewer.