|
@@ -13,8 +13,7 @@
|
|
|
* for details.
|
|
|
*
|
|
|
*****************************************************************************/
|
|
|
-
|
|
|
-
|
|
|
+
|
|
|
#include <stdio.h>
|
|
|
#include <stdlib.h>
|
|
|
#include <string.h>
|
|
@@ -50,8 +49,9 @@ int main(int argc, char *argv[])
|
|
|
void *inrast_doy, *inrast_sunzangle;
|
|
|
DCELL * outrast;
|
|
|
CELL val1,val2; /*For color range*/
|
|
|
- /************************************/
|
|
|
+
|
|
|
G_gisinit(argv[0]);
|
|
|
+
|
|
|
module = G_define_module();
|
|
|
G_add_keyword(_("imagery"));
|
|
|
G_add_keyword(_("energy balance"));
|
|
@@ -62,53 +62,44 @@ int main(int argc, char *argv[])
|
|
|
|
|
|
/* Define the different options */
|
|
|
input1 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input1->key = _("albedo");
|
|
|
- input1->description = _("Name of the Albedo map [0.0;1.0]");
|
|
|
- input1->answer = _("albedo");
|
|
|
+ input1->key = "albedo";
|
|
|
+ input1->description = _("Name of albedo raster map [0.0;1.0]");
|
|
|
|
|
|
input2 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input2->key = _("ndvi");
|
|
|
- input2->description = _("Name of the NDVI map [-1.0;+1.0]");
|
|
|
- input2->answer = _("ndvi");
|
|
|
+ input2->key = "ndvi";
|
|
|
+ input2->description = _("Name of NDVI raster map [-1.0;+1.0]");
|
|
|
|
|
|
input3 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input3->key = _("temperature");
|
|
|
+ input3->key = "temperature";
|
|
|
input3->description =
|
|
|
- _("Name of the surface temperature map [K]");
|
|
|
- input3->answer = _("tempk");
|
|
|
+ _("Name of surface temperature raster map [K]");
|
|
|
|
|
|
input4 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input4->key = _("localutctime");
|
|
|
+ input4->key = "localutctime";
|
|
|
input4->description =
|
|
|
- _("Name of the map of local UTC time of satellite overpass [hh.hhh]");
|
|
|
- input4->answer = _("time");
|
|
|
+ _("Name of time of satellite overpass raster map [local time in UTC]");
|
|
|
|
|
|
input5 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input5->key = _("temperaturedifference2m");
|
|
|
+ input5->key = "temperaturedifference2m";
|
|
|
input5->description =
|
|
|
_("Name of the difference map of temperature from surface skin to about 2 m height [K]");
|
|
|
- input5->answer = _("dtair");
|
|
|
|
|
|
input6 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input6->key = _("emissivity");
|
|
|
+ input6->key = "emissivity";
|
|
|
input6->description = _("Name of the emissivity map [-]");
|
|
|
- input6->answer = _("emissivity");
|
|
|
|
|
|
input7 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input7->key = _("transmissivitysingleway");
|
|
|
+ input7->key = "transmissivitysingleway";
|
|
|
input7->description =
|
|
|
_("Name of the single-way atmospheric transmissivitymap [-]");
|
|
|
- input7->answer = _("tsw");
|
|
|
|
|
|
input8 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input8->key = _("dayofyear");
|
|
|
+ input8->key = "dayofyear";
|
|
|
input8->description = _("Name of the Day Of Year (DOY) map [-]");
|
|
|
- input8->answer = _("doy");
|
|
|
|
|
|
input9 = G_define_standard_option(G_OPT_R_INPUT);
|
|
|
- input9->key = _("sunzenithangle");
|
|
|
+ input9->key = "sunzenithangle";
|
|
|
input9->description = _("Name of the sun zenith angle map [degrees]");
|
|
|
- input9->answer = _("sunzangle");
|
|
|
|
|
|
output1 = G_define_standard_option(G_OPT_R_OUTPUT);
|
|
|
output1->description = _("Name of the output net radiation layer");
|