Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Rich Shepard

On Mon, 13 Mar 2017, Laurent C. wrote:


  And, can I overlay this animation on vector maps that provide context? If
so, where do I read how to do this?


You can add several layers to g.gui.animation, including vector maps.


Laurent,

  I have the first model animation running; still need to add context maps
and a legend. As the next model runs for 4+ days I have time to work on
setting the display correctly.

  When I have the two animations tweaked how do I export/print them so they
can be incorporated into a LaTeX beamer class presentation? Nothing I see in
the g.* or t.* manuals look apprpropriate to me.

Thanks,

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

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Rich Shepard

On Mon, 13 Mar 2017, Anna Petrášová wrote:


perhaps this video will help:
https://www.youtube.com/watch?v=Pi1ESk9iPwk


  Thanks, Anna.

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

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Rich Shepard

On Mon, 13 Mar 2017, Laurent C. wrote:


It's you who decide how to name the file and where to put it by setting
the "stats_file" option. If only the name is given, it will be created in
the directory from where you ran Itzï. If no name is given, no file is
created.


Laurent,

  When I looked at model options I did not see a need for a stats file so
none was created. Perhaps the next time.

Thanks,

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

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Laurent C.
2017-03-13 15:06 GMT-06:00 Rich Shepard :
> On Mon, 13 Mar 2017, Laurent C. wrote:
>
>> Additionally, you can check the statistics CSV file to see if there is
>> any numerical instability that could artificially create volume.
>
>
> Laurent,
>
>   I don't find a .csv file in any project subdirectory.

Rich,

It's you who decide how to name the file and where to put it by
setting the "stats_file" option.
If only the name is given, it will be created in the directory from
where you ran Itzï.
If no name is given, no file is created.

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

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Anna Petrášová
Hi Rich,

perhaps this video will help:

https://www.youtube.com/watch?v=Pi1ESk9iPwk

On Mon, Mar 13, 2017 at 12:16 PM, Rich Shepard  wrote:
>   One model run has completed and I have several questions for which I do
> not find answers in either the grass or itzi docs.
>
>   1.) g.gis.animation input can be raster, vector, or st?ds files. The
> output of the model is a set of 25 raster maps. Is there a strds for this
> output or do I list all 25 maps on the command line?
>
>   And, can I overlay this animation on vector maps that provide context? If
> so, where do I read how to do this?
>
>   2.) The individual water depth output maps are transparent; that is, I can
> overlay them on a vector DEM contour map and see the contours underneath the
> raster file. The maximum water output file (open_h_max) is opaque; it covers
> the underlying vector contour map. Can it be made transparent?
>
>   3.) Precipitation input is in mm/hr but the output water depth map is in
> meters (see water_h_max.png attached). However, it is not possible for there
> to be cells with 3m of water based on the input data. How can I obtain
> output surface water depths in mm or cm?
>
> TIA,
>
> Rich
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Laurent C.
2017-03-13 10:31 GMT-06:00 Laurent C. :
> Copy of my off-list answer.
>
> 2017-03-13 10:30 GMT-06:00 Laurent C. :
>> Rich,
>>
>> Answers below.
>>
>> 2017-03-13 10:16 GMT-06:00 Rich Shepard :
>>>   One model run has completed and I have several questions for which I do
>>> not find answers in either the grass or itzi docs.
>>>
>>>   1.) g.gis.animation input can be raster, vector, or st?ds files. The
>>> output of the model is a set of 25 raster maps. Is there a strds for this
>>> output or do I list all 25 maps on the command line?
>>
>> At the end of the simulation, Itzï registers the created maps into strds.
>> So yes, you should have a strds created.
>>
>>>   And, can I overlay this animation on vector maps that provide context? If
>>> so, where do I read how to do this?
>>
>> You can add several layers to g.gui.animation, including vector maps.
>>
>>>
>>>   2.) The individual water depth output maps are transparent; that is, I can
>>> overlay them on a vector DEM contour map and see the contours underneath the
>>> raster file. The maximum water output file (open_h_max) is opaque; it covers
>>> the underlying vector contour map. Can it be made transparent?
>>
>> In the individual water depth maps, only water levels above hmin are 
>> reported.
>> If you want the same effect for the maximum level map, you can use the
>> if() of r.mapcalc to set a threshold.
>>
>>>   3.) Precipitation input is in mm/hr but the output water depth map is in
>>> meters (see water_h_max.png attached). However, it is not possible for there
>>> to be cells with 3m of water based on the input data. How can I obtain
>>> output surface water depths in mm or cm?
>>
>> The water level of 3m seems to be due to accumulation on the edge of the 
>> domain.
>> The water flows according to topography. If there is a lower point
>> without an exit, there will be an accumulation of water.
>> If you want a map in cm or mm, you can convert it using r.mapcalc.

Additionally, you can check the statistics CSV file to see if there is
any numerical instability that could artificially create volume.

Laurent

>>
>> Regards,
>> Laurent
>>
>>>
>>> TIA,
>>>
>>> Rich
>>> ___
>>> grass-user mailing list
>>> grass-user@lists.osgeo.org
>>> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Laurent C.
2017-03-13 10:26 GMT-06:00 Rich Shepard :
> On Mon, 13 Mar 2017, Rich Shepard wrote:
>
>>  One model run has completed and I have several questions for which I do
>> not find answers in either the grass or itzi docs.
>
>
>   4.) The water surface elevation (wse) output maps are also in meters, yet
> the wse_max map is a solid color block (yellow or magenta so far). What
> might be the explanation of this since the bare earth DEM was included in
> the input parameters?

Rich,

This seems to be a color table problem. You can change it with
r.colors or t.rast.colors.

Laurent

>
> Rich
> ___
> grass-user mailing list
> grass-user@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Laurent C.
Copy of my off-list answer.

2017-03-13 10:30 GMT-06:00 Laurent C. :
> Rich,
>
> Answers below.
>
> 2017-03-13 10:16 GMT-06:00 Rich Shepard :
>>   One model run has completed and I have several questions for which I do
>> not find answers in either the grass or itzi docs.
>>
>>   1.) g.gis.animation input can be raster, vector, or st?ds files. The
>> output of the model is a set of 25 raster maps. Is there a strds for this
>> output or do I list all 25 maps on the command line?
>
> At the end of the simulation, Itzï registers the created maps into strds.
> So yes, you should have a strds created.
>
>>   And, can I overlay this animation on vector maps that provide context? If
>> so, where do I read how to do this?
>
> You can add several layers to g.gui.animation, including vector maps.
>
>>
>>   2.) The individual water depth output maps are transparent; that is, I can
>> overlay them on a vector DEM contour map and see the contours underneath the
>> raster file. The maximum water output file (open_h_max) is opaque; it covers
>> the underlying vector contour map. Can it be made transparent?
>
> In the individual water depth maps, only water levels above hmin are reported.
> If you want the same effect for the maximum level map, you can use the
> if() of r.mapcalc to set a threshold.
>
>>   3.) Precipitation input is in mm/hr but the output water depth map is in
>> meters (see water_h_max.png attached). However, it is not possible for there
>> to be cells with 3m of water based on the input data. How can I obtain
>> output surface water depths in mm or cm?
>
> The water level of 3m seems to be due to accumulation on the edge of the 
> domain.
> The water flows according to topography. If there is a lower point
> without an exit, there will be an accumulation of water.
> If you want a map in cm or mm, you can convert it using r.mapcalc.
>
> Regards,
> Laurent
>
>>
>> TIA,
>>
>> Rich
>> ___
>> grass-user mailing list
>> grass-user@lists.osgeo.org
>> https://lists.osgeo.org/mailman/listinfo/grass-user
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Helmut Kudrnovsky
> where do I read how to do this? 

In the manual? 

https://grass.osgeo.org/grass73/manuals/g.gui.animation.html



-
best regards
Helmut
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Itzi-output-several-questions-tp5312100p5312103.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] Itzi output: several questions

2017-03-13 Thread Rich Shepard

On Mon, 13 Mar 2017, Rich Shepard wrote:


 One model run has completed and I have several questions for which I do
not find answers in either the grass or itzi docs.


  4.) The water surface elevation (wse) output maps are also in meters, yet
the wse_max map is a solid color block (yellow or magenta so far). What
might be the explanation of this since the bare earth DEM was included in
the input parameters?

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

[GRASS-user] Itzi output: several questions

2017-03-13 Thread Rich Shepard

  One model run has completed and I have several questions for which I do
not find answers in either the grass or itzi docs.

  1.) g.gis.animation input can be raster, vector, or st?ds files. The
output of the model is a set of 25 raster maps. Is there a strds for this
output or do I list all 25 maps on the command line?

  And, can I overlay this animation on vector maps that provide context? If
so, where do I read how to do this?

  2.) The individual water depth output maps are transparent; that is, I can
overlay them on a vector DEM contour map and see the contours underneath the
raster file. The maximum water output file (open_h_max) is opaque; it covers
the underlying vector contour map. Can it be made transparent?

  3.) Precipitation input is in mm/hr but the output water depth map is in
meters (see water_h_max.png attached). However, it is not possible for there
to be cells with 3m of water based on the input data. How can I obtain
output surface water depths in mm or cm?

TIA,

Rich___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

[GRASS-user] [SoC] OSGeo's GSOC 2017 - 1 week countdown to opening of student application period - what should be done?

2017-03-13 Thread Helmut Kudrnovsky
[https://lists.osgeo.org/pipermail/soc/2017-March/003570.html]

Dear OSGeo community, students,

* according to the Google Summer of Code 2017 Timeline [1]:

March 20 16:00 UTC  Student application period opens
April 3 16:00 UTC   Student application deadline

in 1 week student application period will be opened.

* Would-be proactive students:

read carefully the student's recommendations [2], screen the ideas page [3],
join the project communities, introduce there yourself, your ideas and
skills and discuss the exiting GSoC ideas with the communities.

* Mentors:

check if you're already on the mentors list [4]; if not, register you as
mentor, write down the title of the idea which you will mentor, then you'll
get an invitation by OSGeo GSoC admin team for GSoC. keep in mind, every
project idea needs at least 2 mentors.

Happy coding!

The OSGeo GSoC Team

[1] https://developers.google.com/open-source/gsoc/timeline
[2]
https://wiki.osgeo.org/wiki/Google_Summer_of_Code_Recommendations_for_Students
[3] https://wiki.osgeo.org/wiki/Google_Summer_of_Code_2017_Ideas
[4]
https://wiki.osgeo.org/wiki/Google_Summer_of_Code_2017_Administrative#Mentors



-
best regards
Helmut
--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/SoC-OSGeo-s-GSOC-2017-1-week-countdown-to-opening-of-student-application-period-what-should-be-done-tp5312040.html
Sent from the Grass - Users mailing list archive at Nabble.com.
___
grass-user mailing list
grass-user@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-user

Re: [GRASS-user] r.neighborhoodmatrix error message

2017-03-13 Thread Michele Zurlo
Hi Moritz.
First of all thank you for your very quick answer.
I tried both suggested solution. The first one, try to manually change the 
script, didn't work.
But luckily use OSGeo Live 10 is an option for me and I just finished to 
install the latest version and to download all the required add-ons.
Both r.neighborhoodmatrix and i.segment.uspo now work well :-)

Thank you again 

Michele

On 07/03/17 17:55, Moritz Lennert   wrote: 
> 
> Hi Michele !
> 
> On 07/03/17 17:27, Michele Zurlo wrote:
> >Hi I'm Michele and this is my first e-mail in this mailing list and I
> >hope to find a little help :-)
> >I'm working to classify some UAV images and I would like to follow the
> >method proposed by Grippa et al. 2016
> >
> >working with i.segment.uspo
> >.
> >So I downloaded and installed the OSGEO Live 9.5 and from GRASS shell I
> >installed i.segment.uspo
> > and
> >the required r.neighborhoodmatrix
> >.
> >Everything went right but when I try to use i.segment.uspo
> > I
> >get an error message because there is something wrong with
> >r.neighborhoodmatrix
> >.
> >This is the error message retrieved trying to use r.neighborhoodmatrix
> >:
> >
> >#
> >Traceback (most recent call last):
> > File
> >"/home/user/.grass7/addons/scripts/r.neighborhoodmatrix",
> >line 137, in 
> > main()
> > File
> >"/home/user/.grass7/addons/scripts/r.neighborhoodmatrix",
> >line 123, in main
> > unique_neighbors_sorted =
> >gscript.natural_sort(unique_neighbors)
> >AttributeError: 'module' object has no attribute
> >'natural_sort'
> >#
> >
> >I tried to re-install the module but I retrieved the same message.
> >Someone can help me?
> 
> This sounds like OSGeo Live 9.5 contains a version of GRASS GIS that did not 
> have this natural_sort in the GRASS Python scripting library, yet.
> 
> Is using OSGeo Live 10 an option for you ? This contains GRASS 7.0.4 which is 
> the first version that contains natural_sort as a utility function.
> 
> Otherwise, it is quite easy to introduce it manually in the script. Copy the 
> following into /home/user/.grass7/addons/scripts/r.neighborhoodmatrix, just 
> before the "def cleanup():" line:
> 
> def natural_sort(l):
>  """Returns sorted strings using natural sort
>  """
>  convert = lambda text: int(text) if text.isdigit() else text.lower()
>  alphanum_key = lambda key: [convert(c) for c in re.split('([0-9]+)', key)]
>  return sorted(l, key=alphanum_key)
> 
> Moritz
> 


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