Changeset 5115
- Timestamp:
- Mar 4, 2008, 4:20:10 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/data_manager.py
r5104 r5115 1958 1958 1959 1959 # Turn NetCDF objects into Numeric arrays 1960 quantity_dict = {} 1961 for name in fid.variables.keys(): 1962 quantity_dict[name] = fid.variables[name][:] 1963 1964 1965 # Convert quantity expression to quantities found in sww file 1966 q = apply_expression_to_dictionary(quantity, quantity_dict) 1960 try: 1961 q = fid.variables[quantity][:] 1962 except: 1963 quantity_dict = {} 1964 for name in fid.variables.keys(): 1965 quantity_dict[name] = fid.variables[name][:] 1966 #Convert quantity expression to quantities found in sww file 1967 q = apply_expression_to_dictionary(quantity, quantity_dict) 1967 1968 1968 1969 if len(q.shape) == 2: … … 1985 1986 assert q.shape[0] == number_of_points 1986 1987 1987 1988 1988 if verbose: 1989 1989 print 'Processed values for %s are in [%f, %f]' %(quantity, min(q), max(q)) … … 2018 2018 ncols = int((xmax-xmin)/cellsize)+1 2019 2019 nrows = int((ymax-ymin)/cellsize)+1 2020 2020 2021 2021 2022 … … 4169 4170 4170 4171 #if os.access(files_in[0]+'.mux', os.F_OK) == 0 : 4171 print "dfdfds"4172 4172 for i, file_name in enumerate(files_in): 4173 4173 if os.access(file_name, os.F_OK) == 0: … … 4178 4178 files_in[i] += '.mux' 4179 4179 print "file_name", file_name 4180 print "files_in", files_in4181 4180 hashed_elevation = None 4182 4181 for file_in, file_out, quantity in map(None, files_in,
Note: See TracChangeset
for help on using the changeset viewer.