[GRASS-SVN] r38773 - grass/trunk/raster/r.sun

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Aug 17 09:30:55 EDT 2009


Author: hamish
Date: 2009-08-17 09:30:55 -0400 (Mon, 17 Aug 2009)
New Revision: 38773

Modified:
   grass/trunk/raster/r.sun/main.c
Log:
longin without latin is valid if civiltime is used

Modified: grass/trunk/raster/r.sun/main.c
===================================================================
--- grass/trunk/raster/r.sun/main.c	2009-08-17 13:20:58 UTC (rev 38772)
+++ grass/trunk/raster/r.sun/main.c	2009-08-17 13:30:55 UTC (rev 38773)
@@ -744,7 +744,9 @@
     if ((latin != NULL || longin != NULL) && (G_projection() == PROJECTION_LL))
 	G_warning(_("latin and longin raster maps have no effect when in a Lat/Lon location"));
 	/* true about longin= when civiltime is used? */
-    if ((latin == NULL && longin != NULL) || (latin != NULL && longin == NULL))
+	/* civiltime needs longin= but not latin= for non-LL projections -
+	     better would be it just use pj_proj() if it needs those?? */
+    if (latin != NULL && longin == NULL)
 	G_fatal_error(_("Both latin and longin raster maps must be given, or neither"));
 
 /**********end of parser - ******************************/



More information about the grass-commit mailing list