Changeset 1658
- Timestamp:
- Jul 29, 2005, 3:36:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/util.py
r1654 r1658 154 154 #Choose format 155 155 #FIXME: Maybe these can be merged later on 156 #FIXME: We shoulp probably not waste enrgy on ASCII files - 157 #the different formats are a pain. E.g. the time field. 158 # 156 159 if line[:3] == 'CDF': 157 return File_function_NetCDF(filename, domain, quantities, interpolation_points, verbose = verbose) 160 return File_function_NetCDF(filename, domain, quantities, 161 interpolation_points, verbose = verbose) 158 162 else: 159 return File_function_ASCII(filename, domain, quantities, interpolation_points) 163 return File_function_ASCII(filename, domain, quantities, 164 interpolation_points) 160 165 161 166 … … 167 172 x, y may be either scalars or vectors 168 173 169 #FIXME: More about format, interpolation 174 #FIXME: More about format, interpolation and order of quantities 170 175 171 176 The quantities returned by the callable objects are specified by … … 196 201 #(both in UTM coordinates) 197 202 #If not - modify those from file to match domain 203 #Take this code from e.g. dem2pts in data_manager.py 204 198 205 199 206 import time, calendar … … 514 521 assert mode in [2,4], msg 515 522 523 #time.strptime(fields[0], time_format) 516 524 try: 517 525 starttime = calendar.timegm(time.strptime(fields[0], time_format))
Note: See TracChangeset
for help on using the changeset viewer.