Changeset 2256


Ignore:
Timestamp:
Jan 19, 2006, 3:56:59 PM (19 years ago)
Author:
ole
Message:

Comments

Location:
inundation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • inundation/coordinate_transforms/geo_reference.py

    r2253 r2256  
    3030        """
    3131        input:
    32         NetCDFObject - a handle to the netCDF file
     32        NetCDFObject - a handle to the netCDF file to be written to
    3333        ASCIIFile - a handle to the text file
    3434        read_title - the title of the georeference text, if it was read in.
  • inundation/pyvolution/data_manager.py

    r2112 r2256  
    10171017
    10181018
    1019 def write_ptsfile(ptsname, points, attribute, attribute_name = None):
     1019
     1020######Obsoleted by export_points in load_mesh
     1021def write_ptsfile(ptsname, points, attribute, attribute_name = None,
     1022                  zone=None, xllcorner=None, yllcorner=None):
    10201023    """Write points and associated attribute to pts (NetCDF) format
    10211024    """
     
    10411044    #Georeferencing
    10421045    from coordinate_transforms.geo_reference import Geo_reference
    1043     Geo_reference().write_NetCDF(outfile)
     1046    if zone is None:
     1047        assert xllcorner is None, 'xllcorner must be None'
     1048        assert yllcorner is None, 'yllcorner must be None'       
     1049        Geo_reference().write_NetCDF(outfile)
     1050    else:
     1051        Geo_reference(zone, xllcorner, yllcorner).write_NetCDF(outfile)       
     1052       
    10441053
    10451054
Note: See TracChangeset for help on using the changeset viewer.