浏览代码

Milena Nowotarska: i18n cleanup; HTML cleanup

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47713 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 13 年之前
父节点
当前提交
1e0959837e
共有 2 个文件被更改,包括 28 次插入13 次删除
  1. 12 12
      raster3d/r3.in.ascii/main.c
  2. 16 1
      raster3d/r3.in.ascii/r3.in.ascii.html

+ 12 - 12
raster3d/r3.in.ascii/main.c

@@ -36,7 +36,7 @@ static void setParams(); /*Fill the paramType structure */
 
 /*Puts the userdefined parameters into easier handable variables */
 static void getParams(char **input, char **output, int *convertNull,
-                      char *nullValu);
+                      char *nullValue);
 
 /*reads a g3d ascii-file headerfile-string */
 static void readHeaderString(FILE * fp, char *valueString, double *value);
@@ -84,7 +84,7 @@ static void setParams()
     param.input->required = YES;
     param.input->key_desc = "name";
     param.input->gisprompt = "old_file,file,input";
-    param.input->description = _("Ascii raster map to be imported");
+    param.input->description = _("ASCII raster map to be imported");
 
     param.output = G_define_standard_option(G_OPT_R3_OUTPUT);
 
@@ -94,8 +94,8 @@ static void setParams()
     param.nv->required = NO;
     param.nv->multiple = NO;
     param.nv->answer = "*";
-    param.nv->description =
-        _("String representing NULL value data cell or 'none' if no null value present");
+    param.nv->description =  /* TODO: '*' or 'none' in the msg ?? */
+	_("String representing NULL value data cell (use 'none' if no such value)");
 }
 
 /*---------------------------------------------------------------------------*/
@@ -124,7 +124,7 @@ void readHeaderString(FILE * fp, char *valueString, double *value)
     G_snprintf(format, 100, "%s %%lf", valueString);
     G_getl2(line_buff, 1024, fp);
     if (sscanf(line_buff, format, value) != 1) {
-        G_debug(0, "bad value for [%s]", valueString);
+        G_debug(3, "bad value for [%s]", valueString);
         fatalError("readHeaderString: header value invalid");
     }
 }
@@ -185,7 +185,7 @@ FILE *openAscii(char *asciiFile, RASTER3D_Region * region)
                 G_message("Found south -> north, top -> bottom order (sntb)");
             }
         } else {
-            G_fatal_error(_("Unsupported grass version %s"), buff);
+            G_fatal_error(_("Unsupported GRASS version %s"), buff);
         }
     } else {
         /* Rewind the stream if no grass version info found */
@@ -232,7 +232,7 @@ asciiToG3d(FILE * fp, RASTER3D_Region * region, int convertNull, char *nullValue
               region->depths);
 
     G_debug(3,
-            "asciiToG3d: writing the 3d raster map, with rows %i cols %i depths %i",
+            "asciiToG3d: writing the 3D raster map, with rows %i cols %i depths %i",
             region->rows, region->cols, region->depths);
 
     for (z = 0; z < region->depths; z++) {
@@ -262,7 +262,7 @@ asciiToG3d(FILE * fp, RASTER3D_Region * region, int convertNull, char *nullValue
                 if (fscanf(fp, "%s", buff) != 1) {
                     if (feof(fp))
                         G_warning(_("End of file reached while still loading data."));
-                    G_debug(0,
+                    G_debug(3,
                             "missing data at col=%d row=%d depth=%d last_value=[%.4f]",
                             x + 1, y + 1, z + 1, value);
                     fatalError("asciiToG3d: read failed");
@@ -341,7 +341,7 @@ int main(int argc, char *argv[])
                                  &usePrecisionDefault, &precision,
                                  &useDimensionDefault, &tileX, &tileY,
                                  &tileZ))
-        fatalError("main: error getting standard parameters");
+        fatalError("Error getting standard parameters");
 
     Rast3d_init_defaults();
 
@@ -354,13 +354,13 @@ int main(int argc, char *argv[])
                            tileZ);
 
     if (map == NULL)
-        fatalError(_("Error opening 3d raster map"));
+        fatalError(_("Unable to open 3D raster map"));
 
     /*Create the new RASTER3D Map */
     asciiToG3d(fp, &region, convertNull, nullValue);
 
     if (!Rast3d_close(map))
-        fatalError(_("Error closing new 3d raster map"));
+        fatalError(_("Unable to close 3D raster map"));
 
     /* write input name to map history */
     Rast3d_read_history(output, G_mapset(), &history);
@@ -369,7 +369,7 @@ int main(int argc, char *argv[])
 
     map = NULL;
     if (fclose(fp))
-        fatalError(_("Error closing ascii file"));
+        fatalError(_("Unable to close ASCII file"));
 
     return EXIT_SUCCESS;
 }

+ 16 - 1
raster3d/r3.in.ascii/r3.in.ascii.html

@@ -3,6 +3,20 @@
 <em>r3.in.ascii</em> allows a user to create a (binary) GRASS 3D raster map
 layer from a 3D ASCII raster input file with (optional) TITLE.
 
+<p>
+Note that for compression the <em>none</em> option only specifies 
+that neither LZW nor RLE is used for compression. It 
+does not turn off the compression all together. 3D raster maps do
+not support non-compressed files.
+
+<p>
+The <em>tiledimension</em> parameter defines the dimension of the tiles 
+used in the output file. The format is: XxYxZ
+
+<p>
+The <em>nv</em> parameter specifies which value to convert to NULL-value.
+If the specified value is <em>none</em>, no conversion is performed.
+Default is <em>none</em>.
 
 <center>
 <img src="g3d_volume_layout.png" border=0><BR>
@@ -14,6 +28,7 @@ layer from a 3D ASCII raster input file with (optional) TITLE.
 </center>
 
 <h2>NOTES</h2>
+
 The format for the ASCII file is:
 <pre>
 version: <i>"grass7"</i>
@@ -46,7 +61,7 @@ This header is followed by the cell values in <em>floating point</em> format
 organized in rows with constant <em>col</em> and <em>level</em> coordinate.
 The rows are organized by constant <em>level</em> coordinate. Individual cell
 values are separated by <em>space</em> or <em>CR</em>.
-<P>
+<p>
 
 <h2>EXAMPLES</h2>