Ignore:
Timestamp:
Jun 9, 2010, 12:28:24 PM (12 years ago)
Author:
hudson
Message:

New filename conventions for file conversion. Filenames must always be passed in with the correct extension.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/file_conversion/esri2sww.py

    r7758 r7814  
    11
    2 ##
    3 # @brief Convert CSIRO ESRI file to an SWW boundary file.
    4 # @param bath_dir
    5 # @param elevation_dir
    6 # @param ucur_dir
    7 # @param vcur_dir
    8 # @param sww_file
    9 # @param minlat
    10 # @param maxlat
    11 # @param minlon
    12 # @param maxlon
    13 # @param zscale
    14 # @param mean_stage
    15 # @param fail_on_NaN
    16 # @param elevation_NaN_filler
    17 # @param bath_prefix
    18 # @param elevation_prefix
    19 # @param verbose
    20 # @note Also convert latitude and longitude to UTM. All coordinates are
    21 #       assumed to be given in the GDA94 datum.
     2
    223def esri2sww(bath_dir,
    234                  elevation_dir,
     
    6041    from anuga.coordinate_transforms.redfearn import redfearn
    6142
     43    if sww_file[-4:] != '.sww':
     44        raise IOError('Output file %s should be of type .sww.' % sww_file)
     45
    6246    # So if we want to change the precision it's done here
    6347    precision = netcdf_float
Note: See TracChangeset for help on using the changeset viewer.