/[escript]/trunk/downunder/py_src/datasources.py
ViewVC logotype

Diff of /trunk/downunder/py_src/datasources.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3987 by caltinay, Sun Sep 23 23:01:10 2012 UTC revision 3988 by caltinay, Mon Sep 24 01:08:19 2012 UTC
# Line 51  def LatLonToUTM(lon, lat, wkt_string=Non Line 51  def LatLonToUTM(lon, lat, wkt_string=Non
51          import pyproj          import pyproj
52      except:      except:
53          print("Warning, pyproj not available. Domain extents will be wrong")          print("Warning, pyproj not available. Domain extents will be wrong")
54          return lon,lat          return lon*1000., lat*1000.
55    
56      # determine UTM zone from the input data      # determine UTM zone from the input data
57      zone=int(np.median((np.floor((np.array(lon) + 180)/6) + 1) % 60))      zone=int(np.median((np.floor((np.array(lon) + 180)/6) + 1) % 60))

Legend:
Removed from v.3987  
changed lines
  Added in v.3988

  ViewVC Help
Powered by ViewVC 1.1.26