[GRASS-SVN] r47713 - grass/trunk/raster3d/r3.in.ascii
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 17 14:38:59 EDT 2011
Author: neteler
Date: 2011-08-17 11:38:59 -0700 (Wed, 17 Aug 2011)
New Revision: 47713
Modified:
grass/trunk/raster3d/r3.in.ascii/main.c
grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html
Log:
Milena Nowotarska: i18n cleanup; HTML cleanup
Modified: grass/trunk/raster3d/r3.in.ascii/main.c
===================================================================
--- grass/trunk/raster3d/r3.in.ascii/main.c 2011-08-17 18:32:26 UTC (rev 47712)
+++ grass/trunk/raster3d/r3.in.ascii/main.c 2011-08-17 18:38:59 UTC (rev 47713)
@@ -36,7 +36,7 @@
/*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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
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 @@
&usePrecisionDefault, &precision,
&useDimensionDefault, &tileX, &tileY,
&tileZ))
- fatalError("main: error getting standard parameters");
+ fatalError("Error getting standard parameters");
Rast3d_init_defaults();
@@ -354,13 +354,13 @@
tileZ);
if (map == NULL)
- fatalError(_("Error opening 3d raster map"));
+ fatalError(_("Unable to open 3D raster map"));
/*Create the new RASTER3D Map */
asciiToG3d(fp, ®ion, 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 @@
map = NULL;
if (fclose(fp))
- fatalError(_("Error closing ascii file"));
+ fatalError(_("Unable to close ASCII file"));
return EXIT_SUCCESS;
}
Modified: grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html
===================================================================
--- grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html 2011-08-17 18:32:26 UTC (rev 47712)
+++ grass/trunk/raster3d/r3.in.ascii/r3.in.ascii.html 2011-08-17 18:38:59 UTC (rev 47713)
@@ -3,7 +3,21 @@
<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>
<table border=0 width=700>
@@ -14,6 +28,7 @@
</center>
<h2>NOTES</h2>
+
The format for the ASCII file is:
<pre>
version: <i>"grass7"</i>
@@ -46,7 +61,7 @@
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>
More information about the grass-commit
mailing list