Changeset 1031


Ignore:
Timestamp:
Mar 8, 2005, 11:16:10 AM (20 years ago)
Author:
duncan
Message:

Trying to avoid loading in a list instead of a value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/ga/storm_surge/pyvolution/coordinate_transforms/geo_reference.py

    r1030 r1031  
    11"""
    22"""
     3
     4import types
    35
    46class Geo_reference:
     
    3739
    3840    def read_NetCDF(self, infile):
    39         self.xllcorner = infile.xllcorner
    40         self.yllcorner = infile.yllcorner
    41         self.zone = infile.zone
    42      
     41        self.xllcorner = infile.xllcorner[0]
     42        self.yllcorner = infile.yllcorner[0]
     43        self.zone = infile.zone[0]
     44       
     45        assert (type(self.xllcorner) == types.FloatType)
     46        assert (type(self.yllcorner) == types.FloatType)
     47        assert (type(self.zone) == types.IntType)
     48       
    4349        #false_easting = infile.false_easting[0]
    4450        #false_northing = infile.false_northing[0]
Note: See TracChangeset for help on using the changeset viewer.