[GRASS-SVN] r47733 -
grass/branches/releasebranch_6_4/raster3d/r3.out.v5d
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Aug 17 18:22:37 EDT 2011
Author: neteler
Date: 2011-08-17 15:22:37 -0700 (Wed, 17 Aug 2011)
New Revision: 47733
Modified:
grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/description.html
grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/main.c
Log:
Milena Nowotarska: i18n cleanup; HTML cleanup
Modified: grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/description.html
===================================================================
--- grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/description.html 2011-08-17 22:14:57 UTC (rev 47732)
+++ grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/description.html 2011-08-17 22:22:37 UTC (rev 47733)
@@ -1,17 +1,22 @@
<H2>DESCRIPTION</H2>
-Exports <i>G3D</i> grids to <i>v5d</i> format. <i>map</i> is a valid G3D
-grid in the current mapset. <i>output</i> is the name of a v5d file which
-will be written in the current working directory. <a href="http://www.ssec.wisc.edu/~billh/vis5d.html">VIS5D</a>
-is a system for interactive visualization of large 5D gridded data sets
-such as those produced by numerical weather models. One can make isosurfaces,
-contour line slices, colored slices, volume renderings, etc of data in
-a 3D grid, then rotate and animate the images in real time. There's also
-a feature for wind trajectory tracing, a way to make text anotations for
-publications, support for interactive data analysis, etc.
+Exports 3D raster maps to V5D format. The <em>map</em> parameter is a valid
+3D raster map in the current mapset search path. The <em>output</em> parameter is the name
+of a V5D file which will be written in the current working directory.
+<p>
+<a href="http://www.ssec.wisc.edu/~billh/vis5d.html">Vis5D</a> is a system
+for interactive visualization of large 5D gridded data sets such as those
+produced by numerical weather models. The user can make isosurfaces, contour
+line slices, colored slices, volume renderings, etc. of data in a 3D raster map,
+then rotate and animate the images in real time. There's also a feature
+for wind trajectory tracing, a way to make text anotations for publications,
+support for interactive data analysis, etc.
+
<h2>SEE ALSO</h2>
-<i><a href="r3.in.v5d.html">r3.in.v5d</a></i>
+<i><a href="r3.in.v5d.html">r3.in.v5d</a>,
+<a href="r3.out.vtk.html">r3.out.vtk</a>
+</i>
<h2>AUTHOR</h2>
Jaro Hofierka, GeoModel s.r.o., Slovakia
Modified: grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/main.c
===================================================================
--- grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/main.c 2011-08-17 22:14:57 UTC (rev 47732)
+++ grass/branches/releasebranch_6_4/raster3d/r3.out.v5d/main.c 2011-08-17 22:22:37 UTC (rev 47733)
@@ -51,7 +51,7 @@
if (map != NULL) {
/* should unopen map here! */
if (!G3d_closeCell(map))
- fatalError("Error closing 3d raster map");
+ fatalError("Unable to close 3D raster map");
}
G3d_fatalError(errorMsg);
@@ -69,14 +69,14 @@
param.input->gisprompt = "old,grid3,3d-raster";
param.input->multiple = NO;
param.input->description =
- _("3d raster map to be converted to Vis5d (v5d) file");
+ _("3D raster map to be converted to Vis5D (V5D) file");
param.output = G_define_option();
param.output->key = "output";
param.output->type = TYPE_STRING;
param.output->gisprompt = "new_file,file,output";
param.output->required = YES;
- param.output->description = _("Name for v5d output file");
+ param.output->description = _("Name for V5D output file");
/* param.null_val = G_define_option();
param.null_val->key = "null";
@@ -146,10 +146,10 @@
/* see v5d.h */
if (cols > MAXCOLUMNS)
- G_fatal_error(_("Viz5D allows %d cols, you have %d cols"), MAXCOLUMNS,
+ G_fatal_error(_("Vis5D allows %d columns, %d columns found"), MAXCOLUMNS,
cols);
if (rows > MAXROWS)
- G_fatal_error(_("Viz5D allows %d rows, you have %d rows"), MAXROWS,
+ G_fatal_error(_("Vis5D allows %d rows, %d rows found"), MAXROWS,
rows);
Nl[0] = depths;
@@ -198,9 +198,6 @@
/****************/
g = (float *)G_malloc(rows * cols * Nl[0] * sizeof(float));
- if (!g)
- G_fatal_error(_("Out of memory"));
-
d1p = &d1;
f1p = (float *)&d1;
cnt = 0;
@@ -259,12 +256,12 @@
if (!v5dCreate(fileout, NumTimes, NumVars, rows, cols, Nl, VarName,
TimeStamp, DateStamp, CompressMode, Projection,
ProjArgs, Vertical, VertArgs))
- G_fatal_error(_("Error: couldn't create %s"), fileout);
+ G_fatal_error(_("Unable to create V5D file <%s>"), fileout);
/* Write the v5d file */
if (!v5dWrite(1, 1, g))
- G_fatal_error(_("Error while writing grid. Disk full?"));
+ G_fatal_error(_("Error writing V5D file"));
/* Close the v5d file */
v5dClose();
@@ -288,7 +285,7 @@
module = G_define_module();
module->keywords = _("raster3d, voxel, export");
module->description =
- _("Export of GRASS 3D raster map to 3-dimensional Vis5D file.");
+ _("Exports GRASS 3D raster map to 3-dimensional Vis5D file.");
/* Get parameters from user */
setParams();
@@ -307,12 +304,12 @@
trueCoords = coords->answer;
if (NULL == G_find_grid3(input, ""))
- G3d_fatalError(_("Requested 3d raster map not found"));
+ G3d_fatalError(_("3D raster map <%s> not found"), input);
map = G3d_openCellOld(input, G_find_grid3(input, ""), G3D_DEFAULT_WINDOW,
G3D_TILE_SAME_AS_FILE, G3D_NO_CACHE);
if (map == NULL)
- G3d_fatalError(_("Error opening 3d raster map"));
+ G3d_fatalError(_("Unable to open 3D raster map <%s>"), input);
/* Use default region */
/* G3d_getRegionStructMap(map, ®ion); */
@@ -326,7 +323,7 @@
/* Close files and exit */
if (!G3d_closeCell(map))
- fatalError(_("Error closing 3d raster map"));
+ fatalError(_("Unable to close 3D raster map"));
map = NULL;
return (0);
More information about the grass-commit
mailing list