Ignore:
Timestamp:
Feb 18, 2009, 2:44:41 PM (14 years ago)
Author:
rwilson
Message:

Ongoing conversion changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/numpy/anuga/geospatial_data/geospatial_data.py

    r6304 r6360  
    2020     TitleError, DEFAULT_ZONE, ensure_geo_reference, write_NetCDF_georeference
    2121from anuga.coordinate_transforms.redfearn import convert_from_latlon_to_utm
     22from anuga.utilities.system_tools import clean_line
    2223from anuga.utilities.anuga_exceptions import ANUGAError
    2324from anuga.config import points_file_block_line_size as MAX_READ_LINES
     
    14031404                           points_dictionary['attributelist'],
    14041405                           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 != '']
    14181406
    14191407
Note: See TracChangeset for help on using the changeset viewer.