Changeset 8143 for trunk/anuga_core/source/anuga/file/urs.py
- Timestamp:
- Mar 10, 2011, 9:10:48 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/file/urs.py
r8124 r8143 22 22 """ 23 23 24 ##25 # @brief Initialize this instance of Urs_points.26 # @param urs_file Path to the underlying data file.27 24 def __init__(self, urs_file): 28 25 self.iterated = False … … 59 56 # check this array 60 57 61 ##62 # @brief Allow iteration over quantity data wrt time.63 58 def __iter__(self): 64 59 """ … … 78 73 return self 79 74 80 ##81 # @brief82 75 def next(self): 83 76 if self.time_step_count == self.iter_time_step: … … 93 86 return hz_p 94 87 95 ##96 # @brief Close the mux file.97 88 def close(self): 98 89 self.mux_file.close() … … 110 101 #LONG_AMOUNT = 3600 111 102 112 113 ##114 # @brief115 # @param file_name116 # @param boundary_polygon117 # @param zone118 # @param ll_lat119 # @param ll_long120 # @param grid_spacing121 # @param lat_amount122 # @param long_amount123 # @param isSouthernHemisphere124 # @param export_csv125 # @param use_cache126 # @param verbose True if this function is to be verbose.127 # @return128 103 129 104 def save_boundary_as_urs(file_name, boundary_polygon, zone, … … 181 156 182 157 183 ##184 # @brief185 # @param boundary_polygon186 # @param zone187 # @param ll_lat188 # @param ll_long189 # @param grid_spacing190 # @param lat_amount191 # @param long_amount192 # @param isSouthHemisphere193 # @param use_cache194 # @param verbose195 158 def calculate_boundary_points(boundary_polygon, zone, ll_lat, 196 159 ll_long, grid_spacing, … … 221 184 222 185 223 ##224 # @brief225 # @param boundary_polygon An iterable of points that describe a polygon.226 # @param zone227 # @param ll_lat Lower left latitude, in decimal degrees228 # @param ll_long Lower left longitude, in decimal degrees229 # @param grid_spacing Grid spacing in decimal degrees.230 # @param lat_amount231 # @param long_amount232 # @param isSouthHemisphere233 186 def _calculate_boundary_points(boundary_polygon, 234 187 zone, ll_lat, … … 277 230 278 231 279 ##280 # @brief Get the points that are needed to interpolate any point a a segment.281 # @param seg Two points in the UTM.282 # @param ll_lat Lower left latitude, in decimal degrees283 # @param ll_long Lower left longitude, in decimal degrees284 # @param grid_spacing285 # @param lat_amount286 # @param long_amount287 # @param zone288 # @param isSouthHemisphere289 # @return A list of points.290 232 def points_needed(seg, ll_lat, ll_long, grid_spacing, 291 233 lat_amount, long_amount, zone, … … 346 288 347 289 348 ##349 # @brief350 # @param lat351 # @param long352 # @param seg Two points in UTM.353 # @param max_distance354 290 def keep_point(lat, long, seg, max_distance): 355 291 """
Note: See TracChangeset
for help on using the changeset viewer.