Re: [GRASS-user] g.rename problem with Python

2016-11-07 Thread Glynn Clements
'\n' or '\r\n'). Use e.g. for line in gl: renamed = line.rstrip().replace('.','_') ... to remove any trailing whitespace (including newlines) from each line. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list g

Re: [GRASS-user] using label in r.mapcalc query?

2016-10-15 Thread Glynn Clements
ategory corresponding to the label, then use that in the r.mapcalc expression. The @ modifier reads the category label and converts it to a float. This is basically a hack which had some utility in the GRASS 4.x era, before GRASS supported floating-point maps. -- Glynn Clements <gl...@gclements.plus.co

Re: [GRASS-user] Question on memory allocation and use

2016-10-01 Thread Glynn Clements
use more than 4 GiB of memory regardless of how much RAM or swap is available. The amount available to malloc() etc will be somewhat lower due to reservations for the kernel, stack, etc. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-u

Re: [GRASS-user] "GLdouble" syntax error when compiling GRASS 7.0.4

2016-07-22 Thread Glynn Clements
it segment rowio temporal ifneq ($(USE_OPENGL),) MODULES += ogsf nviz endif -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] v.label utf8 possible?

2016-06-27 Thread Glynn Clements
I range). I wouldn't expect it to work with anything which generates PostScript. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] why is v.build.all (and many others) a windows batch file and not an executable?

2016-05-05 Thread Glynn Clements
a similar rule to do the same for a shell script; the only question is whether this should be done automatically and whether the wrappers should go into the bin directory or some other directory (it depends upon whether they will interfere with contexts other than shell scripts). --

Re: [GRASS-user] How to define the png image dimensions when using d.mon?

2016-03-26 Thread Glynn Clements
eant to be "replayed" as part of an interactive workflow. Anything which tries to behave like a typical program should manage the relevant environment variables directly. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing

Re: [GRASS-user] r.external.out store data in memory

2016-03-15 Thread Glynn Clements
ad from disk if the file is still in memory. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] How to define the png image dimensions when using d.mon?

2016-03-11 Thread Glynn Clements
d.mon is designed for interactive use. If you're writing a script, don't use it. Set GRASS_RENDER_IMMEDIATE=png (or =cairo) and use the environment variables. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list gras

Re: [GRASS-user] Do filters available in GRASS takes care of cell padding?

2015-12-04 Thread Glynn Clements
value of the centre cell minus the average of the surrounding non-null cells. The average value is still meaningful if the filter window overlaps null cells or the edges. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing lis

Re: [GRASS-user] Do filters available in GRASS takes care of cell padding?

2015-12-04 Thread Glynn Clements
he non-null cells according to their own weights, rather than assigning it all to an arbitrarily-chosen cell (which is the effect of adding a border by extrusion or reflection). > 4.) Which one of the above GRASS commands would be best suited to perform > window operation (high pass filteri

Re: [GRASS-user] Do filters available in GRASS takes care of cell padding?

2015-11-30 Thread Glynn Clements
adjusted, i.e. the result will be sum(weight * value)/sum(weight) where both sums are evaluated over the non-null inputs. r.resamp.stats behaves similarly (i.e. it either propagates nulls or computes the aggregate over the non-null cells). r.neighbors always calculates the aggregate over the non-null cells

Re: [GRASS-user] location/mapset naming restrictions

2015-11-30 Thread Glynn Clements
al (which is why your example above generates an error), as those take precedence over names. A quoted name can contain any character other than the quote character itself. Note that quoted names aren't always maps (or mapsets or locations); they can also be used for varia

Re: [GRASS-user] grass.script.raster.mapcalc and multiple computations

2015-11-01 Thread Glynn Clements
pcalc(expr, out=out, first=first, second=second, frac=percent/100.0) > When I give an expression as a multiline string, I get an error like this > one: > > Invalid map > > Parse error > > ERROR: parse error > > ERROR: An error occurred while running r.mapcalc There sh

Re: [GRASS-user] map algebra logical operators on DCELL rasters not admitted? maybe docs should outline it

2015-10-22 Thread Glynn Clements
n any of the others. Choosing one of them would just mean that r.mapcalc was probably using the "wrong" one, and doing so silently. The current behaviour forces the user to be explicit. -- Glynn Clements <gl...@gclements.plus.com> ___

Re: [GRASS-user] map algebra logical operators on DCELL rasters not admitted? maybe docs should outline it

2015-10-21 Thread Glynn Clements
uates to an integer where each bit in the result is set (one) if the corresponding bit is set in both operands, and unset (zero) otherwise. E.g. (23 & 34) is 00010111 (23) & 00100010 (34) ---- = 0010 ( 2) Perh

Re: [GRASS-user] map algebra logical operators on DCELL rasters not admitted? maybe docs should outline it

2015-10-21 Thread Glynn Clements
r.mapcalc "test = if(elevation > 100.0, 1)" > > where elevation is FCELL. I would expect those to work. What won't work is using bitwise operators (& and |) or logical operators (&& and ||, &&& and |||) on floats. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Parallel processes

2015-10-19 Thread Glynn Clements
need to confirm that you aren't saturating I/O bandwidth or thrashing memory or CPU caches. Try running the same sequence of tasks with varying numbers of parallel jobs to determine the optimal value. Needless to say, this will vary according to the nature of the task (e.g. I/O-bound versus CPU-bo

Re: [GRASS-user] map algebra logical operators on DCELL rasters not admitted? maybe docs should outline it

2015-10-19 Thread Glynn Clements
the error message refers) corresponds to the bitwise-and operator "&". The if() function accepts either integer or floating-point values for its arguments. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Splitting a location across several disks

2015-10-07 Thread Glynn Clements
es withing the mapset, which requires that they are on the same physical partition (rename() only manipulates directory entries, it won't move the file's data blocks). -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Migrating to a different database engines in Grass 7.0.1RC2

2015-09-27 Thread Glynn Clements
ASS7/dblogin (Windows). Connection information (driver, database, table, key) is stored for each map, in the file ///vector//dbln. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] trimming color table

2015-09-18 Thread Glynn Clements
r.colors map rules=- where "command" is a grep/sed/etc command which filters the rules. -- Glynn Clements <gl...@gclements.plus.com> ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-08-02 Thread Glynn Clements
() at the top-level. Consequently, any issues with the wxPython installation will cause the script to fail even when run only with e.g. the --help or --html-description options. As for why the wxPython check fails, I would assume that it's something specific to your particular installation. -- Glynn

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-30 Thread Glynn Clements
environment variables in ~/.bash_profile or ~/.bashrc or various other places, but those are only read when starting a new shell (~/.bash_profile is only read when starting a login shell); changing those file won't affect any existing shell sessions. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] GRASS-7svn: Specify wxPython Version

2015-07-27 Thread Glynn Clements
to the constraint that the version must be at least 2.8.10.1. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] aspect map with azimuth values

2015-07-08 Thread Glynn Clements
. r.mapcalc azimuth_aspect = if(aspect = 90, (90 - aspect), (450 - aspect)) Or: r.mapcalc azimuth_aspect = (450 - aspect) % 360 -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-user] Problem with TRMM data and r.in.bin

2015-05-07 Thread Glynn Clements
= prod_id=3B42RT_dailyaction=ASCII+Output I wouldn't be surprised if the data is being converted to ASCII, in which case r.in.bin would be entirely the wrong tool to import it. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass

Re: [GRASS-user] r.external across Windows and Linux

2015-04-21 Thread Glynn Clements
? Yes. We should at least support paths relative to the mapset, and may need additional options, e.g. the ability to use environment variables in paths). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http

Re: [GRASS-user] r.external across Windows and Linux

2015-04-18 Thread Glynn Clements
r.external.out has received, particlarly on Windows. If you can report specific details of any issues you've encountered, they will be looked into. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http

Re: [GRASS-user] d.vect: How to achieve transparency ?

2015-03-14 Thread Glynn Clements
support blending. The GUI implements layer transparency by rendering each layer to a separate image then specifying the opacity for each layer when the images for the individual layers are composited using g.pnmcomp. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] finding distance to raster features in a given direction

2015-03-03 Thread Glynn Clements
land cell is also the nearest upwind sea cell for at least one of its upwind neighbors (essentially, the is upwind of relationship is transitive). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http

Re: [GRASS-user] can not install addons with g.extension

2015-02-20 Thread Glynn Clements
argument (which will already have been converted) to stdout. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] exit from grass after setting GRASS env variable

2015-02-20 Thread Glynn Clements
, but any changes to the child's environment won't affect the parent's. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] can not install addons with g.extension

2015-02-17 Thread Glynn Clements
). But the rules file doesn't appear to install those. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] can not install addons with g.extension

2015-02-13 Thread Glynn Clements
are installed without the .py suffix. But g.html2man.py retains the suffix on all platforms; from Grass.make: HTML2MAN = VERSION_NUMBER=$(GRASS_VERSION_NUMBER) $(GISBASE)/tools/g.html2man.py -- Glynn Clements gl...@gclements.plus.com ___ grass-user

Re: [GRASS-user] temporary files of grass.script.array

2015-02-03 Thread Glynn Clements
to be deleted when the array object was destroyed. However, this relied upon the ._close() method, which is no longer used. r64426 (trunk) should fix this. Apart from that, you can manually delete the temporary file for an array object with e.g. grass.script.try_remove(x1.filename). -- Glynn Clements gl

Re: [GRASS-user] output values of r.composite

2015-01-30 Thread Glynn Clements
. Which is why the default is 32 levels rather than 256. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] d.out.file / d.save - Shell-script use issues

2014-11-14 Thread Glynn Clements
. They are designed to work with wxGUI (including wx monitors). Could you choose a different prefix for these commands, and leave d.* for display commands? -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] A question before I embark on a programming exercise

2014-11-14 Thread Glynn Clements
Moritz Lennert wrote: r.mapcalc down_id = if(dir=1, id[1,1], if(dir=2, id[0,1], if(dir=3, id[-1,1] etc r.mapcalc follows C expression syntax; =is assignment, == is the equality test. -- Glynn Clements gl...@gclements.plus.com ___ grass-user

Re: [GRASS-user] d.out.file / d.save - Shell-script use issues

2014-11-12 Thread Glynn Clements
commands on a PNG/PS/cairo monitor. The functionality on which d.save relies isn't specific to a particular driver. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-user] mounting a read-only PERMANENT from remote server

2014-10-31 Thread Glynn Clements
. http://en.wikipedia.org/wiki/NTFS_reparse_point http://en.wikipedia.org/wiki/NTFS_symbolic_link -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Returning values to Python

2014-10-30 Thread Glynn Clements
grass.script.raster_what(), it returns a list of dictionaries. AFAICT, PyGRASS requires you to add stdout_=PIPE, then you can get the output as a string from module.outputs[stdout].value. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing

Re: [GRASS-user] r.neighbors treating NULL values

2014-10-08 Thread Glynn Clements
r.mapcalc result = if(map.count == $area, map.sum, null()) -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Gauss filter in r.neighbors

2014-10-08 Thread Glynn Clements
in G7 the output type depends on the chosen function. That means, if you use r.neighbours method=average in G64 with a CELL map, the output is also CELL. If you need it to work with 6.x, convert the input to FCELL/DCELL first (with e.g. r.mapcalc output = float(input)). -- Glynn Clements gl

Re: [GRASS-user] r.neighbors selecting a random value from the window

2014-10-04 Thread Glynn Clements
Milton Ribeiro wrote: Given a moving window (maybe with r.neihbors), I need to select a random value which occurs within the window. Is there any function for this in grass? No. You could either modify r.neighbors, or use e.g. grass.script.array (example script attached). -- Glynn

Re: [GRASS-user] Gauss filter in r.neighbors

2014-10-02 Thread Glynn Clements
method=sum size=33 gauss=10 $ r.info -r bar min=0.221413499330273 max=0.812157275619236 -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-user] 64 bit Python in GRASS 6.4.2

2014-09-26 Thread Glynn Clements
the architecture for which GRASS was built. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.patch number of input limitation?

2014-09-24 Thread Glynn Clements
(_SC_OPEN_MAX) (at least for Unix) and warn the user if the limit is likely to be exceeded. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] help with r.series

2014-09-04 Thread Glynn Clements
('.'): if not file.startswith('FILE20'): continue output = 'output' + file[4:] grass.run_command('r.series', file=file, output=output, method='average') -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] r3.mapcalc / r.mapcalc: Logical Operators , || behave differently

2014-08-20 Thread Glynn Clements
to function or() Parse error Where's my mistake ? I suspect that either BAZ3 or BAR3 is a floating-point volume. The arguments to logical operators must be integers. Also, I don't see how you can get a reference to or() from an expression involving only . -- Glynn Clements gl

Re: [GRASS-user] r.resamp.stats: how to count valid input pixels

2014-08-14 Thread Glynn Clements
unwanted/unreliable aggregation results. But it doesn't. Any suggestions? Create a validity map with e.g. r.mapcalc valid = !isnull(input) then use r.resamp.stats method=average on that. -- Glynn Clements gl...@gclements.plus.com ___ grass

Re: [GRASS-user] turning grass.commands quiet

2014-07-02 Thread Glynn Clements
. bash: export GRASS_VERBOSE=0 Alternatively: export GRASS_MESSAGE_FORMAT=silent will suppress all output, including warnings and errors (these will still be written to a logfile specified by $GIS_ERROR_LOG or to ~/GIS_ERROR_LOG if that file exists). -- Glynn Clements gl

Re: [GRASS-user] About r.neighbors weight usage

2014-06-02 Thread Glynn Clements
get a null result if the total number of values is zero. For a weighted sum, the total number of values is the sum of the weights, which in this case is zero. I'd suggest that r.mfilter may be more appropriate for implementing discrete convolution (FIR) filters. -- Glynn Clements gl

Re: [GRASS-user] execGRASS(r.diversity): [Error 3] Cannot find path specified \\.grass7\\r.li

2014-05-21 Thread Glynn Clements
grass_config_dir = os.path.join(os.getenv('HOME'), grass_config_dirname) -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS-7svn: Build Errors [RESOLVED]

2014-05-12 Thread Glynn Clements
using a stale configuration (one which either doesn't account for any changes to the configure script or its templates, or doesn't match your current system configuration). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass

Re: [GRASS-user] looping r.mapcalc in a shell script

2014-04-03 Thread Glynn Clements
which can sequentially produce the required outputs. I will be grateful if anyone can help me with creating a loop using bash/shell script. while read ndvi 3 ; do read viqa 4 r.mapcalc Mask$ndvi = $ndvi * $viqa done 3 NDVIFILES 4 VIQALIST -- Glynn

Re: [GRASS-user] projection issue

2014-03-26 Thread Glynn Clements
upon a sphere, as is the case for the Google Earth projection. Without that parameter, whatever ellipsoid was used for the cartographic transformation would also be used for the datum transformation. -- Glynn Clements gl...@gclements.plus.com ___ grass

Re: [GRASS-user] Optimized compiling of GRASS 7 for hydrological analysis on CentOS

2014-03-18 Thread Glynn Clements
the compilation of other modules (even without make's -k switch). In the worst case, you just some noise in the build output. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo

Re: [GRASS-user] r.resamp.rst - ERROR: Input window changed while maps are open for read.

2014-03-18 Thread Glynn Clements
, the tempfile code in the RST library is limited to 2 GiB (ticket #1786). In 7.x, the RST library isn't working because it hasn't been updated for the new raster window handling (r40772 etc) (ticket #1718). -- Glynn Clements gl...@gclements.plus.com ___ grass

Re: [GRASS-user] GRASS7 r.mapcalc not working

2014-03-15 Thread Glynn Clements
generated random raster maps named mask1 and mask2). Is this via wxGUI or the shell? -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] GRASS7 r.mapcalc not working

2014-03-13 Thread Glynn Clements
sets (or an empty mapset). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] FYI - Output from compiling most recent release 7.0

2014-02-08 Thread Glynn Clements
the value of TIFFLIB or TIFFLIBPATH in include/Make/Platform.make (or supplying the modified value via the make command line). Alternatively, setting LD_LIBRARY_PATH may work. But ideally you should see if there's an official TIFF package for your distribution and install that. -- Glynn Clements gl

Re: [GRASS-user] FYI - Output from compiling most recent release 7.0

2014-02-08 Thread Glynn Clements
. r57238 was supposed to have fixed this; I don't know why it hasn't. The -Wunused-variable warnings are probably harmless. Likewise for -Wpointer-sign. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http

Re: [GRASS-user] composite raster maps

2013-11-26 Thread Glynn Clements
significantly slower. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] About Matrix Weights

2013-11-15 Thread Glynn Clements
. When weights are used, the calculation for method=average is: sum(w[i]*x[i]) / sum(w[i]) In the case where all weights are zero, this will end up with both the numerator and denominator to zero, which produces a null result. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Permission denied to access a mapset in Linux

2013-11-12 Thread Glynn Clements
to access maps from a particular mapset, you can add the mapset to the search path with g.mapset, or reference maps using fully-qualified names (map@mapset format). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user

Re: [GRASS-user] Trying to reclassify raster using non-linear functions in GRASS

2013-11-08 Thread Glynn Clements
,\ elev_x800sqnd = elev_x800sqn / 50,\ elev_x800exp = exp(elev_x800sqnd),\ elev_x800gaus = elev_x800exp * 0.000798) elev_x800gi = (elev_x800gaus * -11330) + 10.044 EOF -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] g7 svn58117 r.random ERROR: There aren't [n] non-NULL cells in the current region

2013-10-28 Thread Glynn Clements
: (null) Cell Count: -75090892 Null Cells: 2130552315 A negative cell count? hmmm Try r58118. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass

Re: [GRASS-user] How GRASS loads raster images into memory?

2013-08-17 Thread Glynn Clements
if the expression uses a neighbourhood modifier with a vertical component, otherwise it just uses row-by-row access. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass

Re: [GRASS-user] access denied to MAPSET in linux

2013-08-07 Thread Glynn Clements
. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Filtering high outliers in Landsat reflectance imagery?

2013-08-04 Thread Glynn Clements
affects floating-point GDAL output (and primarily affects double-precision GDAL output). For FCELL, zeros will be mapped to null; for DCELL, any value where the bottom 32 bits are zero (which includes all small integers) will be mapped to null. This should be fixed by r57414. -- Glynn Clements gl

Re: [GRASS-user] Filtering high outliers in Landsat reflectance imagery?

2013-08-03 Thread Glynn Clements
Eric Goddard wrote: OK, I discovered what was different between my work and home machines. The mapcalc if statement doesn't evaluate properly if using r.external.out. If r.external isn't used, it evaluates correctly. Bug? What parameters are you using for r.external.out? -- Glynn Clements

Re: [GRASS-user] Possible to switch off permissions check of mapsets?

2013-07-31 Thread Glynn Clements
string will suppress the check. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] grass7- problems caompiling

2013-07-19 Thread Glynn Clements
permission on the source tree. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.mapcalc and the neighborhood modifier

2013-07-16 Thread Glynn Clements
with if statements. Otherwise, you might want to look into using one of the Python APIs (I think we have four now: grass.script, grass.script.array, grass.lib and grass.pygrass). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list

Re: [GRASS-user] handling raster resolution with r.reclass

2013-07-02 Thread Glynn Clements
listing the mapping between categories. However, with few exceptions, GRASS modules which read raster maps automatically resample them to the current region. See the g.region manual page for details on displaying and changing the current region. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Python script

2013-07-02 Thread Glynn Clements
'] The inputs must be map names, not filenames. Have you actually created the maps? You cannot use an image file as a map without first either importing it (with e.g. r.in.gdal) or linking it (with r.external). -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Suggestion for creating a script to create a map of agricultural capacity

2013-05-29 Thread Glynn Clements
on a 0.5 boundary are rounded toward positive infinity, toward negative infinity, or away from zero respectively. The last one mimics the behaviour of C99's round() function. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user

Re: [GRASS-user] Suggestion for creating a script to create a map of agricultural capacity

2013-05-28 Thread Glynn Clements
11 thru 15 = 4 16 thru 45 = 5 46 thru 70 = 6 * = 7 EOF -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] SOLVED: How to implement 2D lookup table?

2013-05-23 Thread Glynn Clements
potential combination. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Glynn Clements
location=example Yes. Is there a command to delete a location? No; just remove the directory. If the database is shared by multiple users, creating or deleting locations may require root privilege. -- Glynn Clements gl...@gclements.plus.com ___ grass

Re: [GRASS-user] make error in grass7_trunk/man

2013-05-13 Thread Glynn Clements
repository. FWIW, r38061 was made almost 4 years ago (2009-06-24). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Set raster value for specific cell

2013-05-13 Thread Glynn Clements
is on the boundary between cells: eval `g.region -g` r.mapcalc newmap = if(row()-1 == int(($n-10.0)/$nsres) col()-1 == int((52.0-$w)/$ewres), 1, oldmap) This calculates the integer row/column indices for the desired cell then compares the current row/column to these. -- Glynn Clements gl

Re: [GRASS-user] make error in grass7_trunk/man

2013-05-13 Thread Glynn Clements
of replacing: module-keywords = _(raster, fuzzy logic); with: G_add_keyword(_(raster)); G_add_keyword(_(fuzzy logic)); -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org

Re: [GRASS-user] ERROR: Bytes do not match file size with r.in.bin (but file size is correct!!)

2013-05-10 Thread Glynn Clements
-- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Unix and Grass commands in Windows

2013-04-21 Thread Glynn Clements
only be used if you particularly want a Unix environment but only have a Windows system. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] [GRASS-dev] Using r.quantile result with r.recode

2013-04-18 Thread Glynn Clements
of rules, but nothing uses it. Apart from the lack of clarity regarding boundary values, the existing method is inefficient if the number of rules is large; a binary search tree (or similar) would be better. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Using r.quantile result with r.recode

2013-04-17 Thread Glynn Clements
? For real data, most of the boundary values won't be actual values from the input data, but values derived from interpolating two adjacent values. In that situation, it doesn't matter how r.recode handles boundary values. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Using r.quantile result with r.recode

2013-04-16 Thread Glynn Clements
to 2. This behaviour stems from Rast_fpreclass_get_cell_value() in lib/raster/fpreclass.c, and isn't configurable (i.e. there's no way that r.recode's behaviour could be modified without modifying the fpreclass functions). -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] Using r.quantile result with r.recode

2013-04-15 Thread Glynn Clements
. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Python placeholder (%d) in stdin statement of db.execute

2013-04-11 Thread Glynn Clements
Johannes Radinger wrote: Thank you Hamish, including the option input=- in the python line (for GRASS7) solved the problem. Why read the command from stdin rather than using sql=...? E.g.: grass.write_command(db.execute, sql = UPDATE my points SET prob=100) -- Glynn Clements gl

Re: [GRASS-user] GRASS-Python Script: Check if output already exists, overwrite

2013-04-11 Thread Glynn Clements
with --overwrite. So how to get this info? The grass.script.overwrite() function returns True if overwrite is enabled. Also, os.environ['GRASS_OVERWRITE'] will have been set to '1' by grass.script.parser() so that the overwrite status propagates down to any commands executed by the script. -- Glynn Clements

Re: [GRASS-user] Transform Reclass Map into a real Raster Map (Modeler)

2013-04-10 Thread Glynn Clements
expressions into mapcalulator with *-e flag*, but i don't know how exactly do it. 2nd.-I don't know if there's another way to reach what i want. r.resample input=reclass_map output=raster_map -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] [GRASS-dev] minimal wxPython version

2013-03-21 Thread Glynn Clements
kapo coulibaly wrote: How about sticking with shell? Using the shell frequently results in scripts which don't work reliably on Unix or at all on Windows. It's also a horrible language for anything beyond the simplest tasks. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] minimal wxPython version

2013-03-21 Thread Glynn Clements
). Requiring 2.6 would allow us to start work on forward compatibility with Python 3.x. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.resamp.rst error : Not enough disk space--cannot write files

2013-03-10 Thread Glynn Clements
/pipermail/grass-dev/2005-April/018152.html) but I dont understand ^^ They speak about a ulimit -f function, but where should I write it ? It doesn't work in GRASS. I am on windows, maybe is that the problem. ulimit is Unix-specific. -- Glynn Clements gl...@gclements.plus.com

Re: [GRASS-user] error building recent grass-svn versions

2013-03-06 Thread Glynn Clements
the few users who actually need that flag, there might be someone willing to put in the effort to figure out which version corresponds to which API. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http

Re: [GRASS-user] error building recent grass-svn versions

2013-03-05 Thread Glynn Clements
2.61.100libavfilter/version.h -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] error building recent grass-svn versions

2013-03-04 Thread Glynn Clements
video files, don't use --with-ffmpeg. Otherwise, you'll need a more recent version of the libraries. -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Run a GRASS module from a custom module (C language)

2013-02-26 Thread Glynn Clements
to the command, as you need to quote or escape characters which are significant to the shell (of which there are many). -- Glynn Clements gl...@gclements.plus.com ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman

  1   2   3   4   5   6   7   8   9   10   >