Changeset 6360 for branches/numpy/anuga/geospatial_data/geospatial_data.py
- Timestamp:
- Feb 18, 2009, 2:44:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/geospatial_data/geospatial_data.py
r6304 r6360 20 20 TitleError, DEFAULT_ZONE, ensure_geo_reference, write_NetCDF_georeference 21 21 from anuga.coordinate_transforms.redfearn import convert_from_latlon_to_utm 22 from anuga.utilities.system_tools import clean_line 22 23 from anuga.utilities.anuga_exceptions import ANUGAError 23 24 from anuga.config import points_file_block_line_size as MAX_READ_LINES … … 1403 1404 points_dictionary['attributelist'], 1404 1405 geo_reference = geo) 1405 1406 1407 ##1408 # @brief Split a string into 'clean' fields.1409 # @param str The string to process.1410 # @param delimiter The delimiter string to split 'line' with.1411 # @return A list of 'cleaned' field strings.1412 # @note Any fields that were initially zero length will be removed.1413 # @note If a field contains '\n' it isn't zero length.1414 def clean_line(str, delimiter):1415 """Split string on given delimiter, remove whitespace from each field."""1416 1417 return [x.strip() for x in str.split(delimiter) if x != '']1418 1406 1419 1407
Note: See TracChangeset
for help on using the changeset viewer.