Regarding itzi

166 views
Skip to first unread message

Neethu s

unread,
Dec 18, 2017, 5:29:08 AM12/18/17
to Itzï
can anyone please explain  how to run itzi  on ubuntu, Since I am new to this field I have no idea how to run it. 
I have done the steps specified in user manual  up to create rainfall and friction maps.  I dont know how to create the parameter file .
Kindly help.

Bastian Pöschl

unread,
Dec 18, 2017, 7:34:32 AM12/18/17
to it...@googlegroups.com

In  any  OS just use your Text editor to create the files. In Ubuntu gedit should do that job.

Open gedit, paste the tutorial example and save it as itzi.txt in your working directory.

prepare the base raster files in grass-gis and run itzi by typing the command:

itzi run /your/working/directory/itzi.txt

into your grass console

Hope this works


Bastian

--
You received this message because you are subscribed to the Google Groups "Itzï" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itzi+uns...@googlegroups.com.
To post to this group, send email to it...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/itzi/96966ff1-68b9-4465-9183-cbe633b06319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Laurent C.

unread,
Dec 18, 2017, 11:22:37 AM12/18/17
to Bastian Pöschl, Itzï
Hello,

Thank you Bastian for the explanation.
In addition, if you fill-up the [grass] section of the configuration file, you can run itzi outside of the GRASS console:
http://itzi.readthedocs.io/en/latest/conf_file.html#grass

Regards,
Laurent


2017-12-18 6:32 GMT-06:00 Bastian Pöschl <bastian...@infraconsult.de>:

In  any  OS just use your Text editor to create the files. In Ubuntu gedit should do that job.

Open gedit, paste the tutorial example and save it as itzi.txt in your working directory.

prepare the base raster files in grass-gis and run itzi by typing the command:

itzi run /your/working/directory/itzi.txt

into your grass console

Hope this works


Bastian


Am 18.12.2017 um 11:29 schrieb Neethu s:
can anyone please explain  how to run itzi  on ubuntu, Since I am new to this field I have no idea how to run it. 
I have done the steps specified in user manual  up to create rainfall and friction maps.  I dont know how to create the parameter file .
Kindly help.

--
You received this message because you are subscribed to the Google Groups "Itzï" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itzi+unsubscribe@googlegroups.com.

To post to this group, send email to it...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/itzi/96966ff1-68b9-4465-9183-cbe633b06319%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Itzï" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itzi+unsubscribe@googlegroups.com.

To post to this group, send email to it...@googlegroups.com.

Neethu s

unread,
Dec 18, 2017, 11:23:04 PM12/18/17
to Itzï
Thank you.. I did the steps as you suggested but when I run it in grass console it says no such file or directory..

Neethu s

unread,
Dec 18, 2017, 11:24:09 PM12/18/17
to Itzï
I did mention my working directory..but still it says so..

Bastian Pöschl

unread,
Dec 20, 2017, 2:49:56 AM12/20/17
to it...@googlegroups.com

Hello,

please try step by step:

1. create a new folder at your home directory (use terminal)

mkdir ~/Grass

2. Put your itzi.txt file in the new folder (home/yourname/Grass)

    check if the content matches with the following lines:

[time]
duration = 02:00:00
record_step = 00:05:00

[input]
dem = elev_lid792_5m@PERMANENT
friction = n@PERMANENT
rain = rain@PERMANENT
bctype = bctype@PERMANENT
bcval = bcvalue@PERMANENT

[output]
prefix = nc_itzi_tutorial
values = h, wse, v, vdir, boundaries

[statistics]
stats_file = nc_itzi_tutorial.csv


3. Next open Grass gis. Start the PERMANENT mapset of the North Carolina dataset.

copy/paste the following lines into the Grass-terminal:

g.region -p raster=elev_lid792_1m@PERMANENT res=5 save=lidar_5m

r.resamp.interp input=elev_lid792_1m@PERMANENT output=elev_lid792_5m
r.watershed elevation=elev_lid792_5m drainage=elev_lid792_5m_drainage

r.water.outlet input=elev_lid792_5m_drainage output=watershed coordinates=638888,220011
r.mask rast=watershed

echo '638888|220011' > watershed_out.txt

v.in.ascii input=watershed_out.txt output=watershed_out

v.to.rast input=watershed_out type=point output=bctype use=val value=4

v.to.rast input=watershed_out type=point output=bcvalue use=val value=0

r.mapcalc exp='rain=100'

r.mapcalc exp='n=0.05'

itzi run -o ~/Grass/itzi.txt

If this does not work please run

itzi -h

and share the output


Best regards

Bastian


Bastian Pöschl
InfraConsult GmbH
Schaiblestraße 1
70499 Stuttgart

T 0711 882287-8
F 0711 882287-9
www.infraconsult.de

Neethu s

unread,
Dec 20, 2017, 4:30:54 AM12/20/17
to Itzï
Hello,
Thank you so much for the help. Now it runs.. How can we get the simulation results on grass display..??

Bastian Pöschl

unread,
Dec 20, 2017, 4:45:21 AM12/20/17
to it...@googlegroups.com

Please use Itzi tutorial before mailgroup.

http://itzi.readthedocs.io/en/latest/tutorial.html#run-the-simulation

At the end of the simulation, Itzï should have generated five Space-Time Raster Dataset (STRDS) in the form:

<prefix>_<variable>

The maps contained in those STDRS are following this naming convention:

<prefix>_<variable>_<order_number>

To open heads at 20 min use

d.rast map=nc_itzi_tutorial_h_0020

To open the spacetime dataset use g.gui.animation (grass documentation for further reading)

Best regards

Bastian

Bastian Pöschl
InfraConsult GmbH
Schaiblestraße 1
70499 Stuttgart

T 0711 882287-8
F 0711 882287-9
www.infraconsult.de

Neethu s

unread,
Dec 20, 2017, 5:30:40 AM12/20/17
to Itzï
Thank you.. Will do as suggested..

symbe...@mail.ru

unread,
Dec 24, 2021, 8:02:01 AM12/24/21
to Itzï
Hello, please tell me where the itzi-20.5 folder should be located in order for the "itzi run" command to work. How are the codes in this folder and Grass GIS related? What to do if the command "echo '638888/220011' > watershed_out.txt " issues an error? The error says that this is not an internal Grass function. I will be grateful for the answer.

среда, 20 декабря 2017 г. в 13:30:40 UTC+3, Neethu s:

Laurent C.

unread,
Dec 27, 2021, 4:08:54 PM12/27/21
to symbe...@mail.ru, Itzï
Hi,

Where pip installs itzi, and whether this in PATH depends on the platform. On Ubuntu on Windows (WSL2), it is in $HOME/.local/bin, and not added automatically to PATH.
"echo '638888|220011' > watershed_out.txt" is a bash command. If you prefer, you can create the text file manually with your favourite editor.

Regards,
Laurent

--
You received this message because you are subscribed to the Google Groups "Itzï" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itzi+uns...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages