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

2013-11-12 Thread António Rocha
Dear Glynn, When you said: GRASS won't allow you to select a mapset as the current mapset unless you are the owner of the mapset directory. How can I change the owner of a mapset directory? Regards, Antonio On 12-11-2013 14:46, Glynn Clements wrote: António Rocha wrote: I have a Location

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

2013-11-11 Thread António Rocha
Dear all, I have a Location and Mapset in a folder in Linux Server that was created by me and I runned some scripts and created some maps etc. I have a colleague that is trying enter in the mapset and it gets Permission Denied. How can I allow her to access the mapset without any problems?

[GRASS-user] Exporting a map into JPEG or PNG- get black image

2013-11-05 Thread António Rocha
Dear all, I have a Raster layer with colors and values 1 till 8 and null values. I want to export as JPEG using r.out.gdal but I get a totally black image. Any tips on how to solve this? Regards, Antonio ___ grass-user mailing list

[GRASS-user] List rasters with valid data inside a defined computational region

2013-10-25 Thread António Rocha
Dear all, I would like to know if there is any direct method (of a suggestion of an indirect method) to list raster layers with valid pixels (not null) in a defined computational region? Thank you Regards, Antonio Rocha ___ grass-user mailing list

Re: [GRASS-user] List rasters with valid data inside a defined computational region

2013-10-25 Thread António Rocha
Hello Nikos I would rephrase and say list of raster maps with at least a single not-NULL cell inside a computational region. Regards, Antonio On 25-10-2013 11:26, Nikos Alexandris wrote: On Friday 25 of October 2013 10:07:27 António Rocha wrote: I would like to know if there is any direct

[GRASS-user] Usage of r.random with Land cover maps

2013-10-09 Thread António Rocha
dear all, I have a land cover map (values from 1 till 15) and I want to extract randomly 100 pixels from each class. I tried to use the cover option but it only produced an additional column with values from the cover map. My question is: how can I extract exactly 100 pixels from each class

[GRASS-user] access denied to MAPSET in linux

2013-08-07 Thread António Rocha
Dear all, I'm tryging to access a Location/mapset located in a folder (where I have write/execute/read permission) but the mapset and location were not created by me. When I run grass I get permission denied. How can I get access or how can the original user of the mapset can give access

[GRASS-user] Get output from r.stats in Python script

2013-07-29 Thread António Rocha
Dear all I'm doing some Python scripts and I want to retrieve r.stats output information in a variable. How can I do this? variable= grass.run_command(r.series, .. ) Thanks Antonio ___ grass-user mailing list grass-user@lists.osgeo.org

Re: [GRASS-user] Produce very-high quality images to include in brochures and flyers

2012-12-03 Thread António Rocha
Hi Markus Thanks, Does that work on Windows? Regards, A.Rocha On 03-12-2012 14:57, Markus Neteler wrote: On Fri, Nov 30, 2012 at 4:22 PM, António Rocha antonio.ro...@deimos.com.pt wrote: Hi I have a few satellite images and products and I want to generate very high quality screenshots/images

[GRASS-user] Produce very-high quality images to include in brochures and flyers

2012-11-30 Thread António Rocha
Hi I have a few satellite images and products and I want to generate very high quality screenshots/images based on them to place on brochures/etc. Any tips on how to do this because if I use r.out.gdal its images quality is not good. Thanks Antonio

[GRASS-user] Road and river extraction using GRASS

2012-10-17 Thread António Rocha
Greetings, Is there any GRASS module that can be used to river and road extraction from satellite images? Some feature extraction algorithm Thank you Regards, Antonio Rocha ___ grass-user mailing list grass-user@lists.osgeo.org

[GRASS-user] Error while saving display on Map Display- wxpython tool

2012-09-18 Thread António Rocha
this? Thanks Antonio -- António Rocha Earth Observation Applications and Services Av. D. João II, Lt 1.17.01 - 10º, Ed. Torre Zen 1998-023 Lisboa, Portugal Ph: +351 21 893 30 23 Fax: +351 21 896 90 99 http://www.deimos.pt ___ grass-user mailing list grass

Re: [GRASS-user] Using r.out.kml and scripts in Windows Binary- error

2012-09-13 Thread António Rocha
Hello Martin I tried from the command line in the GUI. Ok next time I will give a try with that extension. Thanks On 13-09-2012 10:40, Martin Landa wrote: Hi, 2012/9/13 António Rocha antonio.ro...@deimos.com.pt: I tried to install r.out.kml with g.extension but I got this error: which: svn

[GRASS-user] Using r.out.kml and scripts in Windows Binary- error

2012-09-12 Thread António Rocha
Greetings I have used in Linux the r.out.kml script. Now, I hava installed Grass GIS (WinGRASS-6.4.2-2-Setup.exe) in Windows and I have placed my r.out.kml file in scripts folder and created a r.out.kml.bat file (with the path to the file) in bin folder. When I write r.out.kml in command

[GRASS-user] Possibility of defining a Map display windows size when launching?

2011-11-30 Thread António Rocha
Greetings Is it possible to predefine a map Display windows size when launching? If yes, where is it defined? Thanks Best regards Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6670 (2029) __ The message was checked by ESET NOD32

Re: [GRASS-user] Problems while running d.out.file

2011-11-28 Thread António Rocha
Hi Sorry to get back to this question again but I was not able to solve this. Ok 1- I have plotted my raster 2- I have added a command layer with this d.barscale bcolor=none at=0,90 3- If I use the Save display to graphic file functionality it works just fine. But If i try to set a smaller Width

[GRASS-user] Generate a box that matches the exact processing region

2011-11-23 Thread António Rocha
Greetings I would like to know how can I generate a polygon for the exact computational region (a square). Is this possible? IF so, how can I do that. Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6654 (2023) __ The message

Re: [GRASS-user] Problems while running Export to PNG file

2011-11-21 Thread António Rocha
Hi (I have eddited the email subject) but when you export the map composition the overlays don't get the memo that they should be propor- tionately place themselves not simply as a fixed offset from the bottom-left corner. (? I'm not exactly sure how the overlay positioning works, but assume

Re: [GRASS-user] Problems while running d.out.file

2011-11-18 Thread António Rocha
Hi Hamish THe problem is with the shrink. You are right it's tiny but in the case of the scale bar it is not shrinked. I mean it keeps the original size. Example: This is the original http://s1183.photobucket.com/albums/x462/toyzerocha/?action=viewcurrent=original.png This is half of the size

[GRASS-user] Problems while running d.out.file

2011-11-16 Thread António Rocha
Greetings I'm trying to run d.out.file to produce a PNG file with a defined size (and others) but I get the following error: ERROR: You must select a display monitor. SInce I'm running from WxPython interface how can I do that? THanks Antonio __ Information from ESET NOD32 Antivirus,

Re: [GRASS-user] Problems while running d.out.file

2011-11-16 Thread António Rocha
-November/062577.html). Michael Barton suggested me to use this function. I really need to produce output maps with a specific size and with image+scale bar. and when I set HxW I loose Scalebar in my output image. Antonio Martin Landa wrote: Hi, 2011/11/16 António Rocha antonio.ro

[GRASS-user] Running a Python script in GRASS6.4.1-RC2

2011-11-04 Thread António Rocha
Greetings I have built a python script and it runs just fine in Windows GRASS. when I try to compile it in Linux it places the script file in script folder but when I try to run It I get the following error in Command Outputwindow: Traceback (most recent call last): File

[GRASS-user] Define statistical bins in GRASS

2011-10-27 Thread António Rocha
Greetings I have a raster image that I want to analyze its frequency inside defined bins. How can I define bins size and bins-limits in GRASS? THanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6578 (20111027) __ The message was

[GRASS-user] Running Python Script in GRASS6.4 in Linux

2011-10-21 Thread António Rocha
description for command '%s'. AttributeError : OSError instance has no attribute 'value' What is missing? THanks Antonio -- António Rocha Aerospace Defence Portugal DEIMOS Engenharia, SA Av. D. Joao II, Lt 1.17.01 - 10º, Ed. Torre Zen 1998-023 Lisboa, Portugal Ph: +351 21 893 3010 Fax: +351 21 896

[GRASS-user] Using r.reclass.area with an NDVI map

2011-10-20 Thread António Rocha
Greetings I have an NDVI map but it's not continuous: i mean, I have a few patches with values and areas in my raster map without values. I want to apply r.reclass.area in order to eliminate patches with less than 2ha. My question is: shall I convert NDVI pixels to 1 (creating a mask of valid

[GRASS-user] Error in r.regression.line manual- R output

2011-10-03 Thread António Rocha
Greetings In r.regression.line R is being defined as residuals. Well, after doing some calculation in other tools I realized that R corresponds to Pearson Correlation (also known as R). Can anyone else confirm me this? THanks Antonio __ Information from ESET NOD32 Antivirus, version

[GRASS-user] Linear regression between 2 rasters (old and new)

2011-09-30 Thread António Rocha
I I have been using r.series to calculate a linear regression slope for an old and new raster map using r.series. But now I need to also obtain the error. It seems not to be possible to use r.series. Is this true? if yes, what alternative do I have? THanks Antonio __ Information

[GRASS-user] Where GRASS_DOC_BASE variable is stored?

2011-09-21 Thread António Rocha
Greetings I would like to know where GRASS_DOC_BASE is stored and/or how is builted? THanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6482 (20110921) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Re: [GRASS-user] Re: Using non-ASCII characters in Legend display

2011-09-12 Thread António Rocha
Hello Moritz Thanks. ISO-8859-1 works. Just one question: I'm trying to find where this parameter was stored and I'm not able tyo find. How can I know where these preferences are stored? (I'm using Windows) Thanks Antonio Moritz Lennert wrote: On 09/09/11 09:58, António Rocha wrote: Hi

Re: [GRASS-user] Re: Using non-ASCII characters in Legend display

2011-09-09 Thread António Rocha
Hi Martin I know where to set the font and the encoding. What I was asking is a combination of Font and Encoding that allows me to Display those characters in the legend and in Map Display window? Thanks Antonio Martin Landa wrote: 2011/9/5 António Rocha antonio.ro...@deimos.com.pt: Does

[GRASS-user] Re: Using non-ASCII characters in Legend display

2011-09-05 Thread António Rocha
Hi (back on this again!) Does anyone knows a GRASS_FONT and GRASS_ENCODING configuration tyhat allows to display non-ascii characters in Map Display Windows legend (e.g. ááéã) Thanks Antonio António Rocha wrote: Greetings I'm not being able to display non-ascii characters in Legend (e.g

Re: [GRASS-user] Where are the configuration and preferences saved?

2011-08-12 Thread António Rocha
Hi Well in Windows I'm not being able to figure out where that information is stored Michael Barton wrote: For Mac and Linux at least, they are saved in ~/.grass6 and ~/.grass7 directories. These are hidden in the Mac finder (unless you use something like Invisibility Toggler.app) but

[GRASS-user] Where are the configuration and preferences saved?

2011-08-11 Thread António Rocha
Greetings I Would like to know in which GRASS file are saved all configuration and definitions? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6369 (20110811) __ The message was checked by ESET NOD32 Antivirus.

[GRASS-user] Using i.rectify and data type

2011-07-21 Thread António Rocha
Greetings I have one question regarding i.rectify's data type output: If I have my input is a CELL map, will my output will be also CELL? I mean, does it keep my data type? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6313 (20110721)

Re: [GRASS-user] Using i.rectify and data type

2011-07-21 Thread António Rocha
Hello Markus Are you sure? Because I have tried i.rectify (1st order, 2nd order and 3rd Order) with a CELL image and my output was also CELL. Markus Metz wrote: 2011/7/21 António Rocha antonio.ro...@deimos.com.pt: Greetings I have one question regarding i.rectify's data type output: If I

[GRASS-user] Re: Wxpython module's interface- multiple entries

2011-07-07 Thread António Rocha
Greetings Clearly it needs to be fixed. never the less, I have been able to delete 1 or two entries. By selecting all entries and deleting 1 by selecting the faction of text. but it's not very user friendly Michael Barton wrote: Yes. This has been around for some time. Looks like it may need

[GRASS-user] GRASS version on yum of CEntOS

2011-06-28 Thread António Rocha
Greetings I have just installed GRASS in a CentOS machine, using yum repository but the version is GRASS6.4.0-2. How old is this version? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6246 (20110628) __ The message was checked

[GRASS-user] Grass-Windows - Error using tcltk's messages

2011-06-08 Thread António Rocha
Hi I have exacly the same problem. Is this some limitation on building these installers? Or it may be some error that both of us did Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6188 (20110607) __ The message was checked by ESET NOD32

[GRASS-user] Pan-sharpening with GRASS

2011-06-01 Thread António Rocha
Greetings I would like to know if there is any method or function to perform pan-sharpening (image fusion) in GRASS? THanks Best regards, Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6171 (20110601) __ The message was checked by ESET

[GRASS-user] Limits on size of command line

2011-05-30 Thread António Rocha
Greetings I would like to know if there is any limit on command line size? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6164 (20110530) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com

Re: [GRASS-user] using not so common characters in Python Script

2011-05-19 Thread António Rocha
Olá Ricardo :) Thanks for the feedback. Just one last question: is there any known limitation for using this encoding in Grass Python Scripts? ( # -*- coding: utf-8 -*- Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 6133 (20110518)

[GRASS-user] using not so common characters in Python Script

2011-05-18 Thread António Rocha
Greetings I would like to include some sentences with characters like á ã àó in my grass.message strings. It seems it's not possible Because I get this grass.fatal(_('á')) I get: File C:/local/scripts/x.teste, line 41 SyntaxError: Non-ASCII character '\xe1' in file

[GRASS-user] Re:Translation of buttons

2011-05-17 Thread António Rocha
Greetings I just saw this message (bellow) in GRASS-translation mailing list and I decided to duplicate this topic here: Besides the buttons that I mentioned yesterday, I nottest that also when I open a script (e.g. i.tasscap) Only the run button is translated. Close, Stop, Copy and help

[GRASS-user] Error using grass.Popen

2011-03-31 Thread António Rocha
Greetings I'm using grass.Popen like this: externalProcess = grass.Popen(cmd, stdout=grass.PIPE, stderr=grass.PIPE, cwd=tempfile) It seems that I'm getting some error while running this function but the only thing that is printed in my command Output window is:

Re: [GRASS-user] Error while removing file

2011-03-16 Thread António Rocha
, deleting, opening external configuration files bla bla and now I'm getting this sort of errors when I try to overwrite over existing data or when I try to delete some files. What might be happening? Thanks Antonio Glynn Clements wrote: António Rocha wrote: Ok it has removed but when I try

Re: [GRASS-user] Error while removing file

2011-03-16 Thread António Rocha
LULC_new_clump10@National misc: couldn't be removed So it wasn't removed. My question is: 1- Why it's repeating the Mapset information (new_clump10@area@area) That is odd right? Maybe that is what is messing with the system Thanks Antonio Glynn Clements wrote: António Rocha wrote: Ok it has removed

Re: [GRASS-user] Error while removing file

2011-03-16 Thread António Rocha
@area]. Remove forced. Removing raster new_clump11@area misc: couldn't be removed António Rocha wrote: Hi again :) Ok the main problem is that I'm using r.statistics with base=new_clump10 and cover= myscript.tmpV1 If I try to remove new_clump I get: g.remove -f rast=new_clump10@area [new_clump10

Re: [GRASS-user] Error while removing file

2011-03-15 Thread António Rocha
Ok it has removed but when I try to write over that file I get errors like Permission DENIED. WHat can I do to fix this? Glynn Clements wrote: António Rocha wrote: I'm trying to remove a file named new_clump@Area and I get this error: [new_clump@Area] is a base map for [myscript.tmpV@Area

[GRASS-user] Error while removing file

2011-03-14 Thread António Rocha
Greetings I'm trying to remove a file named new_clump@Area and I get this error: [new_clump@Area] is a base map for [myscript.tmpV@Area]. Remove forced. misc: couldn't be removed I'm already using -f flag from g.remove function. myscript.tmpV was a file that I generated from this new_clump. But,

[GRASS-user] Running an external executable file from a Python Script

2011-03-10 Thread António Rocha
Greetings all, I have a python script from where I need to run an external binary (in Windows). This external binary (not developed by me) uses an input_parameter file to configure binary and get other parameters. The problem is that this binary requires that in my active folder I have my

[GRASS-user] Using output from r.statistics

2011-03-02 Thread António Rocha
Greetings I have used r.statistics to calculate the sum of a cover map based on a base map. When I use the Query tool I get these: 598666.544966|9159452.159237||3996|7108 The first two corresponds to Geographic Location the third Base map clump ID and the last one it corresponds to the value

Re: [GRASS-user] using r.resamp.stats- When I reach a tie

2011-02-28 Thread António Rocha
Hi Glynn. Thanks for your answer. Is there any other alternative, to resample data, that uses another approach to solve tie events? THanks Antonio Glynn Clements wrote: António Rocha wrote: I'm planning on using r.resamp.stats in order to resample a grid to a coarser resolution. Since

[GRASS-user] using r.resamp.stats- When I reach a tie

2011-02-25 Thread António Rocha
Greetings I'm planning on using r.resamp.stats in order to resample a grid to a coarser resolution. Since I'm using this function with classes I will use mode method (more frequentclass to fall into a destination cell is the chosen). My question is: when I have a tie between two classes, how

[GRASS-user] i.gensig- Error because I'm obtaining negative values in covariance diagonal

2011-02-15 Thread António Rocha
Greetings I'm using i.gensig and I'm having some problmes while generating signature files. Why? bcause my covariance calculus is placing negative values in the diagonal which is impossible. Has anyone detected any problem with i.gensig? Thanks Antonio __ Information from ESET

[GRASS-user] List files and count

2011-01-10 Thread António Rocha
Greetings I need to find, in a certain mapset, a list of files with a name that match a certain string and count them. How can I do this? I'm implementing this in a Py Script Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 5774

Re: [GRASS-user] Generalization or interpolation using the majority

2010-12-21 Thread António Rocha
Hi Markus It seems that it does exacly what I want. I just have one question: I need to first set the region spatial resolution to 200 before I run r.resamp.stats right? THanks Antonio Markus Metz wrote: 2010/12/21 António Rocha antonio.ro...@deimos.com.pt: Greetings I have a raster

[GRASS-user] WinGRASS: Error when importing GRIB files

2010-11-29 Thread António Rocha
Hi I'm using WinGRASS (6.4.1) in Osgeo4w and I'm having a problem in the import of GRIB files. I'm using r.in.gdal, as I have used in Linux, and I'm obtaining the following error: ERROR 4: `C:\Data\GISDataBase\GRIB_codes\new03.grib' not recognised as a supported file format. What might be

[GRASS-user] i.gensig comment- Signature 1 not positive definite

2010-11-25 Thread António Rocha
Greetings For a few training areas I'm obtaining the following comment (which means that my signature files are created but empty): Signature 1 not positive definite What does this means? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database

[GRASS-user] Re: [GRASS-dev] ERROR: G_realloc: during r.to.vect call

2010-11-19 Thread António Rocha
: 444000 Res: 30 | | Range of data:min = 0 max = 3 | So it matches. What might be causing this error? Antonio Markus Neteler wrote: 2010/11/18 António Rocha antonio.ro...@deimos.com.pt: Greetings I'm running GRASS

[GRASS-user] Using i.gensig- How to keep original values

2010-11-17 Thread António Rocha
Greetings I have a training raster map with values such as 3; 5; 7 ; 12 and, when I run i.gensig those values are not included in the signature file. Which means that, if I run i.maxlik, I need to do some reclassification. Is it possible to run i.gensig and keep class values in the signature?

[GRASS-user] Re: v.colors it seems to be working but...

2010-11-17 Thread António Rocha
Luisa I believe it is pretty simple now . When in d.vect check -a flag (Get colors from map table column) I believe it works just fine (that final part.. about applying v.colors I had the same problems) Antonio __ Information from ESET NOD32 Antivirus, version of virus signature

[GRASS-user] Check if a raster exists in a new region

2010-11-16 Thread António Rocha
Greetings I've created a raster based on region (let's call it A). Now, I have changed my region (B for example) and I need to check (in a Py Script) if my raster has any valid value in this new region. How can I do that? Thanks Antonio __ Information from ESET NOD32 Antivirus,

Re: [GRASS-user] Error launching IE from GRASS for manuals

2010-11-09 Thread António Rocha
Helmut is absolutely right. Not only the WinBinaries but also my own WinGRASS installers are all ok when it comes to HTML Browser. only my OSGEO4W is not being able to launch IE. I've fixed ticket 980 in all cases in the nsis-installer, so the available standalone WinGrass-installer

[GRASS-user] Error launching IE from GRASS for manuals

2010-11-08 Thread António Rocha
Greetings I have a wiNGRASS installation, based on OSGEO4W GRASS compilation, but I'm having a difficulty on launching manuals. When i run g.manual wxGUI I get this error: Starting browser C:\Program Files\Internet Explorer\iexplore.exe for module wxGUI...

[GRASS-user] Error with r.mapcalc

2010-10-26 Thread António Rocha
I have a Python script with the following: # Conversion to at-sensor brightness temperature grass.mapcalc($raster_file= $K2/log(($K1/$L)+1), raster_file=raster_file, K2=K2, K1=K1,L= tempL) grass.mapcalc($raster_file= if($raster_file 0, null(), $raster_file),

[GRASS-user] Re: self compile grass- msys

2010-10-06 Thread António Rocha
Hi there I have sent a similar message to this http://lists.osgeo.org/pipermail/grass-user/2010-September/057903.html but to the wingrass mailing list. Since there is no follow up on this subject in this mailing list I wanted to know if anyone found any answer to this? Because I'm having the

[GRASS-user] [DWE]- Landsat Cloud detection with GRASS

2010-09-28 Thread António Rocha
Greetings I'm trying to find if GRASS includes some-sort of way to detect/eliminatd cloud cover and shadows from LANDSAT Images. The only thing I found was this: http://svn.osgeo.org/grass/grass-addons/imagery/i.landsat.acca/description.html But: 1- has anyone tried/used this? Is this useful

[GRASS-user] temporary files in a Python Script with mapcalc

2010-09-23 Thread António Rocha
Greetings I'm doing some image processing python script with requires the calculation of many intermediate rasters. for example: x=a+b+c alpha=x-(b^gama) y=c*alpha+b One possibility is integrating all of it in one expression but I'm afraid of having some minor error in expression so I prefer

[GRASS-user] Compiling WINGRASS with OSGEO4w

2010-09-16 Thread António Rocha
Greetings I have successfully compiled svn6.4.0 versions with OSGEO4W compilation tutorial/wiki. Now, I have also successfully compiled svn6.4.1 version with OSGEO4W following the same steps but, when I select the GRASS -wxpython icon on my Desktop, instead of initiating GRASS6.4.1 is calls

[GRASS-user] Merging two vectors

2010-09-16 Thread António Rocha
Hi I have 2 vectors (each one is a square) that are not over-imposed and I need to merge them in a single file/vector. How can i do that? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 5454 (20100916) __ The message was checked

[GRASS-user] Georrectification- Display an RGB instead of just one band

2010-08-17 Thread António Rocha
Hi, I'm using Georrectification module (WxGUI) and I have one question: Before the launch of Georrectification panel, Select image/map to display for GCP creation is it possible to display an RGB composite instead of a single Grayscale image? Thanks Antonio R __ Information from

[GRASS-user] Python script- drop-down menu list of multiple groups

2010-08-16 Thread António Rocha
Greetings I'm implementing a Python Script and I need to know one thing related with Modules Interfaces: can I have a drop-down menu list of multiple groups? Instead of just selecting one group (e.g. i.maxlik) select more than one (multiple)? Thanks Best regards Antonio __

[GRASS-user] Using r.univar.zonal- calculate most frequent value

2010-08-06 Thread António Rocha
Hi there, I have tested r.univar.zonal (pretty useful!!) but now I have one question: - Is it possible to calculate the most frequent value inside a zone? (I don't think so If not, is there any other way to calculate this in GRASS? Thanks Antonio __ Information from ESET NOD32

[GRASS-user] Retrieve pixel position

2010-08-03 Thread António Rocha
Greetings I have retriecve a Pixel coordinates but instead of lat lon I want row/col. As far as I can see, r.what only retrieves Lat/lon not row/col. How can I do this? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database 5337 (20100803)

[GRASS-user] Re: v.to.rast for a vectorial without Values

2010-07-28 Thread António Rocha
Hello Luisa Regarding Hamish suggestion I would say to do this: 1- Define boundaries (without centroids) in Tcl/Tk digitizer 2- v.centroids 3- v.t.rast with attributes as cat. Regarding point 1, I don't know if you should add centroids. Maybe, v.centroids won't work. __

[GRASS-user] osgeo4w winGRASSinstallation: error with PROJ4

2010-07-26 Thread António Rocha
Greetings I've installed GRASS weekly snapshots in Windows (osgeo4w) by using CompileOnWindows Wiki. Today I tried to install latest snapshot (24_07_2010) and I got this error: checking External PROJ.4 version... 470 checking for location of External PROJ.4 library... checking for pj_get_def

[GRASS-user] Supervised Remote Sensing

2010-07-21 Thread António Rocha
Hello Etienne DELAY YOu have skipped the part where the signatures are produced. Take a look at: http://grass.osgeo.org/gdp/html_grass64/imageryintro.html in Image classification Hope it helps Antonio __ Information from ESET NOD32 Antivirus, version of virus signature database

[GRASS-user] Error while installing winGRASS in Osgeo4w

2010-07-21 Thread António Rocha
Greetings I have successfully installed winGRASS following this instructions: http://trac.osgeo.org/grass/wiki/CompileOnWindows I had a few problems with my current grass installation so I decided to Download grass-6.4.svn_src_snapshot_2010_07_18 version (from here:

[GRASS-user] Compiling a Python-Script in Windows

2010-07-14 Thread António Rocha
Greetings I have developed a Python script for GRASS in Linux, that calls a external module, and now I have tried to compile it in Windows using this command: make -C callexternalmeanshift.py MODULE_TOPDIR=/c/osgeo4w/apps/grass/grass-6.4.0svn but I get this error: Traceback (most recent

[GRASS-user] object-oriented segmentation

2010-07-13 Thread António Rocha
Greetings I believe few persons have already sent a message similar to this one but here goes: I'm looking for a object-opriented segmentator in GRASS: has anyone ever programmed or addpated some module/processing chain in order to get a object-oriented segmentator? Thanks Antonio

Re: [GRASS-user] Error while using r.in.gdal for USGS landsat7 images

2010-07-08 Thread António Rocha
r.info displays normal information such as Extent, resolution etc... So it seems all ok Hamish wrote: António wrote: I'm using r.in.gdal to import Landsat7 images downloaded from USGS website. These landsat images are distributed in UTM-WGS84 for the specific zone. in this case I'm working

Re: [GRASS-user] Error while using r.in.gdal for USGS landsat7 images

2010-07-08 Thread António Rocha
Hello Markus I have just tested that and it seems to be the best solution. But in this case I didn't know that it was all set to north. Markus Neteler wrote: 2010/7/7 António Rocha antonio.ro...@deimos.com.pt: Hi there, I'm using r.in.gdal to import Landsat7 images downloaded from USGS

[GRASS-user] Error while using r.in.gdal for USGS landsat7 images

2010-07-07 Thread António Rocha
Hi there, I'm using r.in.gdal to import Landsat7 images downloaded from USGS website. These landsat images are distributed in UTM-WGS84 for the specific zone. in this case I'm working with images from Brazil (WGS84 UTM ZONE 24S). So first I created an Location based on EPSG:32724. Here goes

Re: [GRASS-user] Retrieve pixel resolution using Python, Script

2010-06-29 Thread António Rocha
Thanks Eloi but this only gives me the number of pixels (number of lines and columns) not the pixel resolution. Is there a retrieve this information in a Python script (e.g. using python GDAL)? Thanks Antonio __ Information from ESET NOD32 Antivirus, version of virus signature

Re: [GRASS-user] Retrieve pixel resolution using Python Script

2010-06-28 Thread António Rocha
Hello Mark I know that I can retrieve that information with gdalinfo. But I need to have it on a variable and get/use it in a Python Script. Mark Seibel wrote: If you use gdalinfo on an image, it will output the Pixel Size. Hope that helps. Mark 2010/6/28 António Rocha antonio.ro

[GRASS-user] Re: Compiling winGRASS with OSGEO4w- #2

2010-06-15 Thread António Rocha
Hi Luisa and Hamish and the rest While I was reading your log file I realized two things: 1- You only have a problem with libgrass_display.dll 2- GRASS cannot find -lgrass_raster This is the creation of libgrass_display.dll: gcc -shared -o

[GRASS-user] Compiling winGRASS with OSGEO4w- #3

2010-06-15 Thread António Rocha
Greetings Since Luisa and few others are posting regarding this topic I decided to perform this compilation of GRASS on MS-WINDOWs and I followed the exact steps but made a few updates in Libraries. MsysCORE- 1.0.14-1 bin-utils 2.20.51-1 mingw-make 3.81-20090910 (newer version) mingw-utils

[GRASS-user] Re: Compiling winGRASS with OSGEO4w- #2

2010-06-15 Thread António Rocha
Greetings In my previous email I used GRASS6.4.0RC6 to compile with OSGEO4w now, following Luisa email, I tried with latest snapshot and I got errors in the following modules: Errors in: /osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2010_06_12/lib/db/sqlp

[GRASS-user] Re: Compiling GRAS on Windows- Log and error

2010-06-14 Thread António Rocha
Hi Luisa I'm no expert in OSGEO4W but I believe you should 1- shut down Msys and reboot the PC 2- Try again I believe that you might have 1 problem: You don't have an include folder. I don't know how can you add it to your GRASS installation by using OSGEO4W. But that is not one of the steps

[GRASS-user] Re: Compiling GRAS on Windows- Log and error

2010-06-14 Thread António Rocha
Luisa, I believe Glynn and Martin can help you out on this but, I believe you will have to change grass/include/make (Platform.make ) in order to be adequate with your installation. Is this right Glynn? If so, shouldn't this be added to that Wiki? (if it makes sense, I volunteer for that)

[GRASS-user] Re: Import GRIB files to GRASS

2010-06-11 Thread António Rocha
Hi all Well, since I'm only evaluating (for now) how to import GRIB's into GRASS, I wanted to test the r.region solution. Can anyone describe me what to do regarding that suggestion? Hamish, about the patch, I'm using GDAL1.7 so I cannot apply your patch. I'm going to reply on this in GDAL

Re: [GRASS-user] Import GRIB files to GRASS

2010-06-09 Thread António Rocha
Hello Hamish. Yest, I used a NOAA's tool to verify it and it's misplaced. I will take a look at those tickets that you mention. About this: /There is a cell-registration bug in GDAL: (grid vs cell-center convention) cells are all offset to the east and south by half a cell. You can fix

Re: [GRASS-user] Import GRIB files to GRASS

2010-06-08 Thread António Rocha
Hi Thomas and GRASS-people THanks for your scripts Thomas I have one question regarding Hamish's link. /There is a cell-registration bug in GDAL: (grid vs cell-center convention) cells are all offset to the east and south by half a cell. You can fix this by hand with the r.region

Re: [GRASS-user] Select random cells from map

2010-06-07 Thread António Rocha
Thanks Hamish I thought that random cells are retrieved from valid map cells. Or not? Antonio Hamish wrote: António wrote: I need to randomly select non-null cells from a given map. I tried r.random.cells but I cannot define a maximum number random cells and some selected random cells

Re: [GRASS-user] Select random cells from map

2010-06-01 Thread António Rocha
Hi. I missed that r.random :) It seems to do what I need. I just need to understand a bit more what is the COVER parameter Thanks nikos Nikos Alexandris wrote: António Rocha: Hi there I need to randomly select non-null cells from a given map. I tried r.random.cells but I cannot define

[GRASS-user] Using a polygon as a Mask

2010-05-27 Thread António Rocha
Greetings I have polygon that I want to use to define an for which I want to calculate some indicators (almost as a mask). Is it possible to use it directly in mapcalculator or do I have to convert it to RASTER and only then I can use it in mapcalculator as a mask? Thanks Best regards,

Re: [GRASS-user] Using a polygon as a Mask

2010-05-27 Thread António Rocha
Christian Schwartze wrote: There is no way to use a vector geometry in mapcalculator (or mapcalc) directly, hence, you have to convert it to raster before. Christian. -- From: António Rocha antonio.ro...@deimos.com.pt Sent: Thursday, May 27, 2010 2:08

Re: [GRASS-user] Landsat Stack import and export

2010-05-10 Thread António Rocha
, now, it seems that it's not growing. Is it doing some file-check or something? Thanks Antonio Markus Metz wrote: 2010/5/7 Markus Neteler nete...@osgeo.org: 2010/5/7 António Rocha antonio.ro...@deimos.com.pt: Greetings I've a Landsat image with 6 bands in Tif format. I need to import

[GRASS-user] v.out.ogr and region

2010-05-10 Thread António Rocha
Greetings I'm exporting data from GRASS to Gtif and Shapefiles. While r.out.gdal obays my Region definition v.out.org no. It exports all extent not the specified region. Wasn't it suppose to export only for defined region? Thanks __ Information from ESET NOD32 Antivirus, version of

[GRASS-user] Landsat Stack import and export

2010-05-07 Thread António Rocha
Greetings I've a Landsat image with 6 bands in Tif format. I need to import into grass, do some processing and export the same band in a Stack. The import is easy using r.in.gdal but my difficulty is to export 6 bands in one single file. Is it possible using GRASS? Thanks Best regards, Antonio

  1   2   >