Re: [GRASS-user] r.soils.texture question

2020-06-25 Thread Gianluca Massei
yes, of course!
GM

Il giorno gio 25 giu 2020 alle ore 09:51 Laura Poggio <
laura.pog...@gmail.com> ha scritto:

> Hi Gianluca,
> thanks for the explanation. It was very useful. Thanks to your
> explanations I managed to modify the DAT file to reproduce the USDA-NRCS
> texture triangle
> <https://www.nrcs.usda.gov/Internet/FSE_MEDIA/nrcs142p2_050619.jpg>. We
> are doing some final checks. After that, if you are interested, I can share
> the DAT file.
>
> Thanks a lot!
> Laura
>
> On Fri, 12 Jun 2020 at 22:27, Gianluca Massei <
> agr.gianluca.mas...@gmail.com> wrote:
>
>> *.dat files are derived from  TALCPP (
>> https://www.tandfonline.com/doi/abs/10.1081/CSS-120017410). The values
>> describe polygons coordinates for different class inside the texture
>> triangle. In r.soils.texture is implemented an algorithm to check if a
>> single point is inside or outside a texture polygon. If the point is
>> inside it is labeled with the correspondent texture code and used to build
>> a texture map.
>> By
>>
>> Il giorno ven 12 giu 2020 alle ore 08:10 Laura Poggio <
>> laura.pog...@gmail.com> ha scritto:
>>
>>> Dear all,
>>> I am looking at the DAT file
>>> <https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.soils.texture/scheme/USDA.dat>
>>> for USDA soil texture classification for the r.soil.texture addon.
>>> I have a couple of questions.
>>>
>>> 1) the class silt-loam appears twice (number 8 and 12). Is this
>>> intentional and needed for the calculations?
>>>
>>> 2) Could you please explain the structure of the DAT file? As example
>>> 1
>>> 6
>>> 0 0 20 45 45 0
>>> 100 60 40 40 55 100
>>>
>>> First line: I think is the class value as written in the pixel.
>>> Second line: not sure
>>> Following two lines: I think they are somehow the limits of sand, silt
>>> and clay. However I can not really understand in which order.
>>>
>>> Thank you very much in advance
>>> Laura
>>>
>>> ___
>>> grass-user mailing list
>>> grass-user@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/grass-user
>>
>>
>>
>> --
>> Dott. Gianluca Massei, PhD
>>
>

-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.soils.texture question

2020-06-12 Thread Gianluca Massei
*.dat files are derived from  TALCPP (
https://www.tandfonline.com/doi/abs/10.1081/CSS-120017410). The values
describe polygons coordinates for different class inside the texture
triangle. In r.soils.texture is implemented an algorithm to check if a
single point is inside or outside a texture polygon. If the point is
inside it is labeled with the correspondent texture code and used to build
a texture map.
By

Il giorno ven 12 giu 2020 alle ore 08:10 Laura Poggio <
laura.pog...@gmail.com> ha scritto:

> Dear all,
> I am looking at the DAT file
> <https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.soils.texture/scheme/USDA.dat>
> for USDA soil texture classification for the r.soil.texture addon.
> I have a couple of questions.
>
> 1) the class silt-loam appears twice (number 8 and 12). Is this
> intentional and needed for the calculations?
>
> 2) Could you please explain the structure of the DAT file? As example
> 1
> 6
> 0 0 20 45 45 0
> 100 60 40 40 55 100
>
> First line: I think is the class value as written in the pixel.
> Second line: not sure
> Following two lines: I think they are somehow the limits of sand, silt and
> clay. However I can not really understand in which order.
>
> Thank you very much in advance
> Laura
>
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user



-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Fwd: r.modis.download error

2017-02-15 Thread Gianluca Massei
Thank You forse The help And forse tour jobs

Il 15/feb/2017 20:15, "Markus Neteler" <nete...@osgeo.org> ha scritto:

On Wed, Jan 18, 2017 at 9:09 PM, Markus Neteler <nete...@osgeo.org> wrote:
> On Sat, Dec 31, 2016 at 2:54 PM, Gianluca Massei
>> I'm tryng to use r.modis.download but I can't get the data I need.
>> According with the module man page and pyModis docs, I've made a
setting.txt
>> file with username and password for access in
>> https://urs.earthdata.nasa.gov, and i run this command:
>> r.modis.download -d --verbose
>> settings=C:\Users\gianluca\Documents\ModelliGIS\MODIS\
MODIS_GRASS\SETTING.txt
>> product=ndvi_aqua_sixteen_250 tiles=h18v04 startday=2015-01-01
>> endday=2015-12-31
>>  after several minutes, I get the error message reported in atteched file
>> "output_command.txt"
>>
>> I'm using GRASS 7.2.0RC2 (64bit) in windows 10 and in linux ubuntu 16.04
LTS
>> Could anybody help me, I can't undertand what I'm wrong.
>
> Nothing wrong - r.modis is still lacking some updates which have
> already been done in the pymodis "master" code.
> Luca plans to resync r.modis.* during the upcoming community sprint:
>
> https://grasswiki.osgeo.org/wiki/GRASS_Community_Sprint_Genova_2017

This has now happened:
- you need to install the pymodis library
- then you can (re)install r.modis with g.extension.

Importantly, you need to use the new NASA authentication which is now
supported.

See:
- Overview: https://grass.osgeo.org/grass72/manuals/addons/r.modishtml
- Download: https://grass.osgeo.org/grass72/manuals/addons/r.
modis.download.html
- Import: https://grass.osgeo.org/grass72/manuals/addons/r.modis.import.html

We continue to improve the manual pages in these days.

Markus

--
Markus Neteler
http://www.mundialis.de - free data with free software
http://grass.osgeo.org
http://courses.neteler.org/blog
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Fwd: r.modis.download error

2017-01-18 Thread Gianluca Massei
Ok, thank you.
GM

2017-01-18 21:09 GMT+01:00 Markus Neteler <nete...@osgeo.org>:

> On Sat, Dec 31, 2016 at 2:54 PM, Gianluca Massei
> <agr.gianluca.mas...@gmail.com> wrote:
> >
> > I'm tryng to use r.modis.download but I can't get the data I need.
> > According with the module man page and pyModis docs, I've made a
> setting.txt
> > file with username and password for access in
> > https://urs.earthdata.nasa.gov, and i run this command:
> > r.modis.download -d --verbose
> > settings=C:\Users\gianluca\Documents\ModelliGIS\MODIS\
> MODIS_GRASS\SETTING.txt
> > product=ndvi_aqua_sixteen_250 tiles=h18v04 startday=2015-01-01
> > endday=2015-12-31
> >  after several minutes, I get the error message reported in atteched file
> > "output_command.txt"
> >
> > I'm using GRASS 7.2.0RC2 (64bit) in windows 10 and in linux ubuntu 16.04
> LTS
> > Could anybody help me, I can't undertand what I'm wrong.
>
> Nothing wrong - r.modis is still lacking some updates which have
> already been done in the pymodis "master" code.
> Luca plans to resync r.modis.* during the upcoming community sprint:
>
> https://grasswiki.osgeo.org/wiki/GRASS_Community_Sprint_Genova_2017
>
> Markus
>
> --
> Markus Neteler
> http://www.mundialis.de - free data with free software
> http://grass.osgeo.org
> http://courses.neteler.org/blog
>



-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Migrate mcda addons to grass7

2015-06-15 Thread Gianluca Massei
Dear Laura,
you can use the standard documentation about  new API in grass7 (
http://grass.osgeo.org/programming7/), furthermore,   I'm available for
help you or for a collaborative job with you.
Thanks
Gianluca

2015-06-15 16:42 GMT+02:00 Laura Poggio laura.pog...@gmail.com:

 Dear list,
 I would be interested in migrating mcda addons, electre (
 http://grass.osgeo.org/grass64/manuals/addons/r.mcda.electre.html) and
 regime (http://grass.osgeo.org/grass64/manuals/addons/r.mcda.regime.html)
 to grass7.
 Is there any guidance on how to do this? I think I remember a post about
 this a while ago but I could not find it.

 Thanks a lot

 Laura

 ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user




-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] error in g.extension

2012-11-17 Thread Gianluca Massei
I'm sorry I've sent the message too many  times in the list!   %-(

 Are you the owner of the mapset?

Yes, I'm owner of the mapset. With ls -l -a I've this:
drwxrwxrwx   6 gianluca gianluca  4096 nov  6 21:58 UmbriaRoma40
I've used g.extension from command line.
I've the same problem in grass 6.4

Thanks for the help


2012/11/17 Markus Neteler nete...@osgeo.org

 On Fri, Nov 16, 2012 at 10:53 PM, Gianluca Massei
 agr.gianluca.mas...@gmail.com wrote:
  Hi,
  I'm trying  to install some  extension in grass 7 (compiled from svn
  grass_trunk code in ubuntu 12.10) but I get this message for all my
 tests:
  ERROR: MAPSET PERMANENT - permission denied

 Are you the owner of the mapset?

  make: *** [v.surf.icw.tmp.html] Errore 1
  rm v.surf.icw.tmp.html
  ERROR: Compilation failed, sorry. Please check above error messages.
 
  I can't understand why the permission is denied in MAPSET PERMANENT:
 I've
  set all files and folders with chmod 777 * and my
  $GRASS_ADDON_BASE=/home/gianluca/.grass7/addons.

 Do you use the wxGUI integrated extension manager or g.extension (as
 the subject states)?

 Markus




-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] error in g.extension

2012-11-17 Thread Gianluca Massei
If you only want to use this addon, then you just need to download the
 addon and run the command  sudo make
 MODULE_TOPDIR=/usr/local/grass-7.0.svn/ in the addon folder.

I haven't problem with  addons  installation from source, but I'd like try
g.extension.
Thanks
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] New GRASS tutorials for ecologists

2012-11-16 Thread Gianluca Massei
Hi,
I'm trying  to install some  extension in grass 7 (compiled from svn
grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
make: *** [v.surf.icw.tmp.html] Errore 1
rm v.surf.icw.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.

I can't understand why the permission is denied in MAPSET PERMANENT: I've
set all files and folders with chmod 777 * and my
$GRASS_ADDON_BASE=/home/gianluca/.grass7/addons.
I hope anybody can help me
gianluca




2012/11/8 R.S. Bhalla rsbha...@gmail.com

 Thank you Dr.Benigno,
 There is no additional materials for restricted users as of now. I do
 however intend to build in quizzes and assignments the results of which
 will only be visible to those with teacher privileges - that's more of a
 privacy issue as some courses will be part of formal lectures.
 Guest access is enabled on the courses and I'll re-check to make sure that
 guests can access all the elements.
 I'll be, very shortly, creating a downloadable copy of the courses (CC
 Share Alike NC) and will host it on the front page for persons interested
 in using parts of the courses/tutorials in their for their own work.
 Regards,
 Ravi
 On Thursday 08 November 2012 06:25 AM, Marcello Benigno wrote:

 Very good your stuff, congrats!

 I wonder if there will be some additional material for users with
 restricted access. It is possible that I may have a login?

 Regards,
 --
 *Marcello Benigno B. de Barros Filho*
 Prof. do Curso Superior de Tecnologia em Geoprocessamento - IFPB
 Mestre em Ciências Geodésicas e Tecnologias da Geoinformação - UFPE
 Doutorando em Tecnologia Ambiental e Recursos Hídricos - UFPE
 http://profmarcello.blogspot.**com http://profmarcello.blogspot.com
 http://about.me/marcello.**benigno http://about.me/marcello.benigno


 __**_
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/**mailman/listinfo/grass-userhttp://lists.osgeo.org/mailman/listinfo/grass-user




-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] error in g.extension

2012-11-16 Thread Gianluca Massei
Hi,
I'm trying  to install some  extension in grass 7 (compiled from svn
grass_trunk code in ubuntu 12.10) but I get this message for all my tests:
ERROR: MAPSET PERMANENT - permission denied
make: *** [v.surf.icw.tmp.html] Errore 1
rm v.surf.icw.tmp.html
ERROR: Compilation failed, sorry. Please check above error messages.

I can't understand why the permission is denied in MAPSET PERMANENT: I've
set all files and folders with chmod 777 * and my
$GRASS_ADDON_BASE=/home/
gianluca/.grass7/addons.
I hope anybody can help me
gianluca

[I'm apologize for precedent post, I've sent a message with wrong object!]


-- 
Dott. Gianluca Massei, PhD
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Re: about Analytic Hierarchy Process (AHP)

2011-12-21 Thread gianluca massei
I'm sorry for fault but, really, I'm working in this time on r.mcda.ahp
and, even if is a simple module, there are bugs anyway.
I've attacched the last version that works in my machine and a
description.html. I'm gratefully you if yuo can  try it.

Thank for patient!



DESCRIPTION
The r.mcda.ahp Generate a raster map classified with analytic hierarchy process (AHP) [Saaty, 1977 and Saaty  Vargas, 1991]
(GRASS python Script)

NOTES
It is mandatory to build a pairwise comparation table with the same order of input of criteria maps in the criteria field.
Example: r.mcda.ahp criteria=reclass_slope,reclass_sand,reclass_elev pairwise=pairwise output=outputMap
The file pairwise has to have a structure like this:
#start file
1.0, 0.2, 3.0
5.0, 1.0, 5.0
0.3, 0.2, 1.0
#comment: order: reclass_slope,reclass_sand,reclass_
#end file
The first row and first column are related to the first criteria (reclass_slope in our case); the second row and second column are related to the second criteria (reclass_sand in our case) and the third row and third column are related to the third criteria
 ( reclass_elev in our cas), and so on.
TODO
SEE ALSO
r.roughset, 
r.mcda.regime, r.mcda.fuzzy
r.mcda.electre, 
r.in.drsa r.in.drsa 
r.in.drsa 
AUTHORS
Antonio Boggia - Gianluca Massei
Department of Economics and Appraisal - University of Perugia - Italy
Last changed: $Date: 2011-12-15 22:56:45 0100 ( 15 dic 2011) $ 




r.mcda.ahp
Description: Binary data
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Re: about Analytic Hierarchy Process (AHP)

2011-12-20 Thread gianluca massei
Hi,
r.soils.texture calculates the soil texture  based on  several schemes
(USDA, FAO, International); but I've just completed a simple addon (in
python), even if experimental, for the use  of AHP in GRASS. It is named *
r.mcda.ahp* and is in mcda  package (
https://svn.osgeo.org/grass/grass-addons/grass6/raster/mcda/).
You can download and isntall the module in your grass gis and in
document.html there are  a bits of advice for the use. I'm available for
support you for the use  and of course, for feedback. I'm gratefully if
someone could try other mcda module for test and improve it.

gianluca

Il giorno 11 dicembre 2011 22:21, Markus Neteler nete...@osgeo.org ha
scritto:

 On Sun, Dec 11, 2011 at 8:30 AM, leonidas leonidas_lia...@yahoo.gr
 wrote:
  Is there any tutorial about AHP in SAGA?

 On the SAGA site, I see

 http://spatial-analyst.net/wiki/index.php?title=List_of_SAGA_modules#Analytical_Hierarchy_Process
 library name:   grid_analysis
 module name :   Soil Texture Classification
 author  :   Gianluca Massei (c) 2007

 On the GRASS Addons site:
 http://grass.osgeo.org/wiki/Addons#r.soils.texture
r.soils.texture is a module to define soils texture from sand and
 clay raster file with a schema text file (now FAO,USDA and ISSS are
 available). It is written in C language. - for GRASS versions 6.x
Author: Gianluca Massei

 Perhaps that's essentially the same?

 Markus
  ___
 grass-user mailing list
 grass-user@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/grass-user

___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] GRASS Dynamic allocation of multi dimensional array

2008-08-09 Thread gianluca massei

Hy list,
could anybody help me to declare a 3D matrix in C GRASS module. I've to 
load several raster map with same location but I've an error in run time 
if I declare with G_malloc/G_calloc like that:

double ***mat;

mat=(double***)G_malloc(ndimension*(sizeof(double));

thanks

Gianluca




  


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] Compiling addons from svn repository

2008-08-04 Thread gianluca massei
I've clean up a little bit r.roughset and I've write some explanation 
note. In the next weeks I'll improve documentation (and the English !)


Thanks

Gianluca


Moritz Lennert ha scritto:

On 04/08/08 14:52, gianluca massei wrote:

Thanks Moritz , great tip!
I'm working in a module that implemented ELECTRE algorithm.

I've just finisced a module named /r.roughset/ for knowledg discovery 
with rough set based on rough set library. You can download the 
source code from grass wiki 
(http://grass.osgeo.org/wiki/GRASS_AddOns#r.roughset) and I'm happy 
if sameone caould try it and report me tips or bugs.



It would be easier to test if the module description was a bit more 
elaborate. You should add a description.html with at least a 'Notes' 
section to explain the module and its parameters.


[BTW, you might want to clean up the source tar ball a bit and delete 
the temporary files it includes, i.e. r.roughset.tmp.html and the ~ 
files.]


Moritz


Database dei virus interno non c aggiornato.
Controllato da AVG - http://www.avg.com Versione: 8.0.138 / Database 
dei virus: 270.5.10/1584 -  Data di rilascio: 31/07/2008 12.00






___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Re: [GRASS-user] r.soils.texture

2008-07-29 Thread gianluca massei

Hy,
I'm afraid but I can't help you. But you can try r.soil.texture for your 
area:

1. import in grass soils sample point with sand and clay atttributes;
2. interpolate sand a nd clay surface with one algorithm available in 
grass (or with R interface for geostatistica analisys)
3. run r.soils.texture with your favorite scheme (USDA,ISSS,FAO) , sand 
and clay grid and get your texture map;


I hope it's useful.
P.S. If your next san will named Gianluca we can make a vitualy drink!
gianluca


Milton Cezar Ribeiro ha scritto:

Dear GianLuca

First of all, it is very curious, but I wife and me choose two 
possible names for your (born) san. One was Gian Luca, and the other 
was Camillo Cornetta (my wife's decendence is from Rovigo, Italy). But 
the choosed name was Camillo. May be the next will be Gian Luca!


Back to the work, do you know where can I find a soil texture map for 
Brazil ? I am looking for this kind of data for species distributio 
modelling. Case you can help me, I will be very grateful.


Ciao,

miltinho astronauta
brazil

2008/7/28 gianluca massei [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Hy,
I've upgrade the module r.soils.texture with FAO and ISSS texture
scheme. You can define soil texture based on USDA, FAO and ISS
triangle, from sand and clay GRID. The module is availabre for
download from addons wiki .
I hope anibody try it.

Gianluca
___
grass-user mailing list
grass-user@lists.osgeo.org mailto:grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


Database dei virus interno non c aggiornato.
Controllato da AVG - http://www.avg.com 
Versione: 8.0.138 / Database dei virus: 270.5.6/1574 -  Data di rilascio: 25/07/2008 16.27
  


___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user


[GRASS-user] r.soils.texture

2008-07-28 Thread gianluca massei

Hy,
I've upgrade the module r.soils.texture with FAO and ISSS texture 
scheme. You can define soil texture based on USDA, FAO and ISS triangle, 
from sand and clay GRID. The module is availabre for download from 
addons wiki .

I hope anibody try it.

Gianluca
___
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user