[GRASS-SVN] r43739 - grass-addons/imagery/i.landsat.toar
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Sep 30 03:52:43 EDT 2010
Author: hamish
Date: 2010-09-30 07:52:43 +0000 (Thu, 30 Sep 2010)
New Revision: 43739
Modified:
grass-addons/imagery/i.landsat.toar/main.c
Log:
need sensor type even if .met file provided
Modified: grass-addons/imagery/i.landsat.toar/main.c
===================================================================
--- grass-addons/imagery/i.landsat.toar/main.c 2010-09-30 07:39:12 UTC (rev 43738)
+++ grass-addons/imagery/i.landsat.toar/main.c 2010-09-30 07:52:43 UTC (rev 43739)
@@ -208,12 +208,10 @@
sat_zenith = atof(satz->answer);
rayleigh = atof(atmo->answer);
- if (met == NULL) {
- if (sensor->answer)
- sensor_id = atoi(sensor->answer);
- else
- G_fatal_error(_("Must select type of satellite"));
- }
+ if (sensor->answer)
+ sensor_id = atoi(sensor->answer);
+ else
+ G_fatal_error(_("Must select type of satellite"));
/* Data from MET file: only Landsat-7 ETM+ and Landsat-5 TM */
if (met != NULL) {
More information about the grass-commit
mailing list