[cig-commits] r7917 - short/3D/PyLith/trunk/playpen/euler

willic3 at geodynamics.org willic3 at geodynamics.org
Thu Aug 30 13:45:06 PDT 2007


Author: willic3
Date: 2007-08-30 13:45:05 -0700 (Thu, 30 Aug 2007)
New Revision: 7917

Modified:
   short/3D/PyLith/trunk/playpen/euler/euler.py
Log:
Added documentation and changed imports for pyre.units.


Modified: short/3D/PyLith/trunk/playpen/euler/euler.py
===================================================================
--- short/3D/PyLith/trunk/playpen/euler/euler.py	2007-08-30 20:35:05 UTC (rev 7916)
+++ short/3D/PyLith/trunk/playpen/euler/euler.py	2007-08-30 20:45:05 UTC (rev 7917)
@@ -45,14 +45,21 @@
     ## @li \b euler_rot Rotation value for Euler pole (CCW positive).
     ## @li \b dip_slip Allow dip-slip to accomodate non-strike-slip movement.
     ## @li \b dip_cutoff Cutoff dip below which dip-slip movement is allowed.
+    ## @li \b x_min Minimum x-value for which to apply rotation.
+    ## @li \b x_max Maximum x-value for which to apply rotation.
+    ## @li \b y_min Minimum y-value for which to apply rotation.
+    ## @li \b y_max Maximum y-value for which to apply rotation.
+    ## @li \b z_min Minimum z-value for which to apply rotation.
+    ## @li \b z_max Maximum z-value for which to apply rotation.
+    ## @li \b default_values Values to use for out-of-range coordinates.
     ##
     ## \b Facilities
     ## @li \b src_coordsys Coordinate system to convert from.
     ## @li \b dest_coordsys Coordinate system to convert to.
 
     import pyre.inventory
-    from pyre.units.angle import deg
-    from pyre.units.length import m
+    import pyre.units.angle
+    import pyre.units.length
 
     from spatialdata.geocoords.CSGeoProj import CSGeoProj
     srcCoordSys = pyre.inventory.facility("src_coordsys",
@@ -320,7 +327,7 @@
     Computes velocities in local Cartesian system from rotation about an
     Euler pole.
     """
-    from pyre.units.angle import deg
+    import pyre.units.angle
     lonDeg = pointsLL[0]*deg
     latDeg = pointsLL[1]*deg
     lonPoint = lonDeg.value



More information about the cig-commits mailing list