SlideShare a Scribd company logo
1 of 11
Download to read offline
Inptools Manual
Steffen Macke
Inptools Manual
Steffen Macke
Publication date $Date: 2012-03-06$
Copyright © 2008, 2009, 2011, 2012 Steffen Macke
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A
copy of the license is available from the Free Software Foundation ( http://www.gnu.org ).
Table of Contents
General ..........................................................................................................................
1. Introduction ..........................................................................................................
1.1. What's New? ...............................................................................................
1.1.1. Version 1.0.1 ......................................................................................
1.1.2. Version 1.0.0 ......................................................................................
1.1.3. Version 0.2.2 ......................................................................................
1.1.4. Version 0.2.0 ......................................................................................
1.1.5. Version 0.1.0 ......................................................................................
2. Requirements ........................................................................................................
3. Installation ............................................................................................................
3.1. Windows Installation .....................................................................................
3.2. Linux Installation .........................................................................................
Reference .......................................................................................................................
1. Usage ..................................................................................................................
1.1. Windows Explorer Integration ........................................................................
1.1.1. Open INP file with EPANET ................................................................
1.1.2. Create report in German .......................................................................
1.1.3. Project from GK3 to WGS84 ................................................................
1.1.4. Create CSV result files .........................................................................
1.1.5. Create binary result file ........................................................................
1.2. Commandline Usage .....................................................................................
1.2.1. inp2shp ..............................................................................................
1.2.2. inpproj ...............................................................................................
1.2.3. epanet2l .............................................................................................
1.2.4. epanet2csv .........................................................................................
2. Troubleshooting and Support ...................................................................................
3. Development .........................................................................................................
3.1. Release Process ............................................................................................
3.2. Coding style ................................................................................................
4. License ................................................................................................................
4.1. Shapelib License ..........................................................................................
4.2. PROJ.4 License ............................................................................................
4.3. Gettext License ............................................................................................
Index .............................................................................................................................

iii

1
1
1
1
1
1
1
1
1
1
1
2
3
3
3
3
3
4
4
4
4
4
4
4
4
5
5
5
5
5
5
6
6
8
General
1. Introduction
Inptools provides functionality to process EPANET INP files in various ways.
Inptools is available from epanet.de/inptools .
This manual describes Inptools version 1.0.1.

1.1. What's New?
A summary of changes.

1.1.1. Version 1.0.1
• Fixed bug in CSV file generation: Link CSV file was named "node.csv" by default.

1.1.2. Version 1.0.0
• EPANET 2.0.0.12 along with the documentation were added to the Windows installer.
• The Windows version requires Windows 7 or higher.
• Improved Windows explorer integration. Double click on *.net and *.inp files opens them in
epanet2w.

1.1.3. Version 0.2.2
• The inp2shp tool was added.

1.1.4. Version 0.2.0
• New functions have been added to the Windows Explorer context menu: "Create CSV file", "Create
binary result file", "Help"
The epanet2csv tool was added.

1.1.5. Version 0.1.0
• The first public release.

2. Requirements
Linux or Windows (7 or higher) are required in order to use the Inptools. .
Inptools 0.2.3 is the last version that supports earlier Windows versions.

3. Installation
How to install Inptools .

3.1. Windows Installation
How to install Inptools on Windows.

1
General

Download the installer from epanet.de/inptools and execute it.

3.2. Linux Installation
How to install Inptools on computers running the Linux operating system
Download the RPM package from epanet.de/inptools and install it.

2
Reference
1. Usage
Inptools can be used in Windows Explorer or from the commandline.
Inptools adds a context menu to Windows Explorer that can be activated by right-clicking on *.inp
files.

1.1. Windows Explorer Integration

Windows Explorer Integration
To access Inptools, do the following: Open Windows Explorer.
Navigate to an INP files.
Right-click on the INP file.
Select the Inptools menu.

1.1.1. Open INP file with EPANET
Choosen Inptools->Open with EPANET will open the selected INP file in epanet2w for interactive
editing.
This option is only available if EPANET is installed.

1.1.2. Create report in German
Choosing Inptools->Create report in German will create a hydraulic analysis report in German language
from the selected INP file.

3
Reference

1.1.3. Project from GK3 to WGS84
Choosing Inptools->Project from GK3 to WGS84 will convert (projects) the selected INP file with
Gauß-Krüger coordinates (GK3) into a new INP file with geographic (WGS84) coordinates.

1.1.4. Create CSV result files
Choosing Inptools->Create CSV result files will create two CSV files with hydraulic analysis results.
One file will contain node results and the other will contain link results. When generating CSV files,
make sure that you use different file names for nodes and links.

1.1.5. Create binary result file
Choosing Inptools->Create binary result file will create a hydraulic analysis report along with a binary
result file. This file can be further processed e.g. with the commandline tool epanet2csv.

1.2. Commandline Usage
The inptools package contains several commandline tools.

Note
The use of the commandline tools is optional for Windows users. If you are not familiar
with commandline interfaces, please stick to the Windows Explorer context menu (
Section 1.1, “Windows Explorer Integration” ).

1.2.1. inp2shp
The inp2shp command converts an INP file into a set of shapefiles.

1.2.1.1. Synopsis

inp2shp inpfile reportfile junction_shapefile pipe_shapefile pump_shapefile rese

1.2.2. inpproj
The inpproj command converts (projects) an INP file with Gauß-Krüger coordinates (GK3) into a new
INP file with geographic (WGS84) coordinates.

1.2.2.1. Synopsis
inpproj inputfile outputfile

1.2.3. epanet2l
epanet2l is a modified (localized) version of epanet2d that allows to generate report files in German.
The LANG environment variable can be used to determine in which language command should operate.

1.2.3.1. Synopsis
epanet2l inpfile reportfile [binaryresultfile]

1.2.4. epanet2csv
4
Reference

epanet2csv converts an EPANET binary result file into two CSV files. CSV files can be read by
spreadsheet software like OpenOffice Calc or Excel, relational database software like PostgreSQL or
MySQL and GIS software.

1.2.4.1. Synopsis
epanet2csv binaryresultfile nodes.csv links.csv

2. Troubleshooting and Support
Please report any problems through the epanet.de support form:
http://epanet.de/en/support.php

3. Development
Most of the source code is plain C and should compile with virtually any C compiler.
The C++ code can be compiled using MinGW.

3.1. Release Process
Update the version number in configure.in, installer/win32/inptools-setup.nsi,
doc/de/inptools.xml, the MSVC project and doc/en/inptools.xml.

3.2. Coding style
K&R style with 8 character indents shall be used to format the code. The indent command can be used
to format the code:
indent -kr -i8 epanet2csv.c

4. License
Inptools - Tools to work with EPANET INP files.
Copyright (C) 2001, 2008, 2009, 2011 Steffen Macke
This program is free software; you can redistribute it and/or modify it under the terms of the GNU
General Public License as published by the Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not,
see http://www.gnu.org/licenses/.

4.1. Shapelib License
The inp2shp and shp2inp commands use shapelib under the terms of the LGPL.
Copyright (c) 1999, Frank Warmerdam
This software is available under the following "MIT Style" license, or at the option of the licensee under
the LGPL (see LICENSE.LGPL). This option is discussed in more detail in shapelib.html

5
Reference

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

4.2. PROJ.4 License
The inpproj command use the PROJ.4 cartographic projections library.
Copyright (c) 2000, Frank Warmerdam
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

4.3. Gettext License
Several Inptools commands use gettext under the terms of the LGPL.
Copyright (c) 1991 Free Software Foundation
This software is available under the following "MIT Style" license, or at the option of the licensee under
the LGPL (see LICENSE.LGPL). This option is discussed in more detail in shapelib.html
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial
portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

6
Reference

FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

7
Index
B
binary, 4

C
coding, 5
commandline, 4
compiler, 5
CSV, 4

requirements, 1
result, 4
RPM, 2

S
shapelib, 5
source, 5
style, 5
support, 5
synopsis, 4, 4, 4, 5

T

D

troubleshooting, 5

development, 5

U

E

usage, 3

epanet2csv, 4, 4
epanet2l, 4
epanet2w, 3
Explorer, 3

W
WGS84, 4
Windows, 1, 2
Explorer, 3

G
general, 1
German, 3
gettext, 6
GK3, 4
GPL, 5

I
indent, 5
inp2shp, 4
inppproj, 4
installation, 1
Linux, 2
Windows, 1
introduction, 1

L
LGPL, 5, 6
license, 1, 5, 5, 6, 6

M
MIT, 6

N
news, 1

P
PROJ.4, 6
projection, 4

R
reference, 3
release process, 5
report, 3, 4

8

More Related Content

What's hot

Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
 Gnu study guide linux admin 1 (lab work lpi 102) v 0.2 Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
Acácio Oliveira
 
Digital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 InformationDigital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 Information
Massimo Menichinelli
 

What's hot (20)

6 th
6 th6 th
6 th
 
Глеб Смирнов: Что нового в FreeBSD 10.0
Глеб Смирнов: Что нового в FreeBSD 10.0Глеб Смирнов: Что нового в FreeBSD 10.0
Глеб Смирнов: Что нового в FreeBSD 10.0
 
Servlet session 4
Servlet   session 4Servlet   session 4
Servlet session 4
 
Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
 Gnu study guide linux admin 1 (lab work lpi 102) v 0.2 Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
Gnu study guide linux admin 1 (lab work lpi 102) v 0.2
 
Install guide
Install guideInstall guide
Install guide
 
Upgrade Ubuntu 18.04 Security with Secureboot
Upgrade Ubuntu 18.04 Security with SecurebootUpgrade Ubuntu 18.04 Security with Secureboot
Upgrade Ubuntu 18.04 Security with Secureboot
 
ICSE10a.ppt
ICSE10a.pptICSE10a.ppt
ICSE10a.ppt
 
4th
4th4th
4th
 
Linux Kernel Development
Linux Kernel DevelopmentLinux Kernel Development
Linux Kernel Development
 
8 th
8 th8 th
8 th
 
Digital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 InformationDigital Fabrication Studio 0.3 Information
Digital Fabrication Studio 0.3 Information
 
Kernel Recipes 2019 - Analyzing changes to the binary interface exposed by th...
Kernel Recipes 2019 - Analyzing changes to the binary interface exposed by th...Kernel Recipes 2019 - Analyzing changes to the binary interface exposed by th...
Kernel Recipes 2019 - Analyzing changes to the binary interface exposed by th...
 
What is the merge window?
What is the merge window?What is the merge window?
What is the merge window?
 
9 th
9 th9 th
9 th
 
Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...Nuget is easier than you think and you should be using it as both a consumer ...
Nuget is easier than you think and you should be using it as both a consumer ...
 
All in one
All in oneAll in one
All in one
 
Linux13 concurrent versions system
Linux13 concurrent versions systemLinux13 concurrent versions system
Linux13 concurrent versions system
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Linux notes
Linux notesLinux notes
Linux notes
 
Yocto vs. Debian white paper
Yocto vs. Debian white paperYocto vs. Debian white paper
Yocto vs. Debian white paper
 

Viewers also liked (16)

Anthony's tip&guidlines
Anthony's tip&guidlinesAnthony's tip&guidlines
Anthony's tip&guidlines
 
YAMAHA
YAMAHAYAMAHA
YAMAHA
 
Animals 121118121336-phpapp02
Animals 121118121336-phpapp02Animals 121118121336-phpapp02
Animals 121118121336-phpapp02
 
Washington Local Presentation
Washington Local PresentationWashington Local Presentation
Washington Local Presentation
 
DAMPAK KESEHATAN
DAMPAK KESEHATANDAMPAK KESEHATAN
DAMPAK KESEHATAN
 
PRINSIP DASAR
PRINSIP DASARPRINSIP DASAR
PRINSIP DASAR
 
LIMBAH PADAT
LIMBAH PADATLIMBAH PADAT
LIMBAH PADAT
 
LIMBAH DOMESTIK
LIMBAH DOMESTIKLIMBAH DOMESTIK
LIMBAH DOMESTIK
 
Buku Modul Kuliah Pancasila
Buku Modul Kuliah PancasilaBuku Modul Kuliah Pancasila
Buku Modul Kuliah Pancasila
 
REKAYASA PEMURNIAN AIR
REKAYASA PEMURNIAN AIRREKAYASA PEMURNIAN AIR
REKAYASA PEMURNIAN AIR
 
PERANAN OKSIGEN
PERANAN OKSIGENPERANAN OKSIGEN
PERANAN OKSIGEN
 
Bahan Rekayasa Lingkungan
Bahan Rekayasa LingkunganBahan Rekayasa Lingkungan
Bahan Rekayasa Lingkungan
 
FAKTOR-FAKTOR KUALITAS LINGKUNGAN
FAKTOR-FAKTOR KUALITAS LINGKUNGANFAKTOR-FAKTOR KUALITAS LINGKUNGAN
FAKTOR-FAKTOR KUALITAS LINGKUNGAN
 
PENCEMARAN SUMBER DAYA AIR
PENCEMARAN SUMBER DAYA AIRPENCEMARAN SUMBER DAYA AIR
PENCEMARAN SUMBER DAYA AIR
 
PENCEMARAN BUNYI
PENCEMARAN BUNYIPENCEMARAN BUNYI
PENCEMARAN BUNYI
 
Diapositivas n y a (1)
Diapositivas n  y a (1)Diapositivas n  y a (1)
Diapositivas n y a (1)
 

Similar to Inptools Manual

It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
All Things Open
 
Kinect installation guide
Kinect installation guideKinect installation guide
Kinect installation guide
gilmsdn
 
Programming methodology-1.1
Programming methodology-1.1Programming methodology-1.1
Programming methodology-1.1
NYversity
 
Don't Fear the Autotools
Don't Fear the AutotoolsDon't Fear the Autotools
Don't Fear the Autotools
Scott Garman
 

Similar to Inptools Manual (20)

Install guide
Install guideInstall guide
Install guide
 
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
Install .Net Core, SQL Server V-Next on Linux and deploy .Net core applicatio...
 
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
It’s 2021. Why are we -still- rebooting for patches? A look at Live Patching.
 
Linux internals v4
Linux internals v4Linux internals v4
Linux internals v4
 
Explaining the WinBuilder framework
Explaining the WinBuilder frameworkExplaining the WinBuilder framework
Explaining the WinBuilder framework
 
Enhanced Embedded Linux Board Support Package Field Upgrade – A Cost Effectiv...
Enhanced Embedded Linux Board Support Package Field Upgrade – A Cost Effectiv...Enhanced Embedded Linux Board Support Package Field Upgrade – A Cost Effectiv...
Enhanced Embedded Linux Board Support Package Field Upgrade – A Cost Effectiv...
 
What's new in p2 (2009)?
What's new in p2 (2009)?What's new in p2 (2009)?
What's new in p2 (2009)?
 
Programming in c_in_7_days
Programming in c_in_7_daysProgramming in c_in_7_days
Programming in c_in_7_days
 
report
reportreport
report
 
Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript Building an Ionic hybrid mobile app with TypeScript
Building an Ionic hybrid mobile app with TypeScript
 
Implementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins PluginImplementing CI CD UiPath Using Jenkins Plugin
Implementing CI CD UiPath Using Jenkins Plugin
 
Tips for Installing Cognos Analytics 11.2.1x
Tips for Installing Cognos Analytics 11.2.1xTips for Installing Cognos Analytics 11.2.1x
Tips for Installing Cognos Analytics 11.2.1x
 
Continuous Integration using Jenkins with Python
Continuous Integration using Jenkins with PythonContinuous Integration using Jenkins with Python
Continuous Integration using Jenkins with Python
 
Kinect installation guide
Kinect installation guideKinect installation guide
Kinect installation guide
 
Programming methodology-1.1
Programming methodology-1.1Programming methodology-1.1
Programming methodology-1.1
 
varun JENKINS.pptx
varun JENKINS.pptxvarun JENKINS.pptx
varun JENKINS.pptx
 
Mpeg guide
Mpeg  guideMpeg  guide
Mpeg guide
 
Downloads
DownloadsDownloads
Downloads
 
Fullstack workshop
Fullstack workshopFullstack workshop
Fullstack workshop
 
Don't Fear the Autotools
Don't Fear the AutotoolsDon't Fear the Autotools
Don't Fear the Autotools
 

More from Mawar 99 (9)

SUMBER DAYA AIR
SUMBER DAYA AIRSUMBER DAYA AIR
SUMBER DAYA AIR
 
SIKLUS ALAM
SIKLUS ALAMSIKLUS ALAM
SIKLUS ALAM
 
PENGANTAR PENGETAHUAN LINGKUNGAN
PENGANTAR PENGETAHUAN LINGKUNGANPENGANTAR PENGETAHUAN LINGKUNGAN
PENGANTAR PENGETAHUAN LINGKUNGAN
 
PENCEMARAN UDARA
PENCEMARAN UDARAPENCEMARAN UDARA
PENCEMARAN UDARA
 
LIMBAH INDUSTRI
LIMBAH INDUSTRILIMBAH INDUSTRI
LIMBAH INDUSTRI
 
DC Water Design Extension Manual
DC Water Design Extension ManualDC Water Design Extension Manual
DC Water Design Extension Manual
 
EPANET Programmer's Toolkit
EPANET Programmer's ToolkitEPANET Programmer's Toolkit
EPANET Programmer's Toolkit
 
EPANET 2 Users Manual
EPANET 2 Users ManualEPANET 2 Users Manual
EPANET 2 Users Manual
 
Buku Manual Program EPANET Versi Bahasa Indonesia
Buku Manual Program EPANET Versi Bahasa IndonesiaBuku Manual Program EPANET Versi Bahasa Indonesia
Buku Manual Program EPANET Versi Bahasa Indonesia
 

Recently uploaded

Recently uploaded (20)

80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111Details on CBSE Compartment Exam.pptx1111
Details on CBSE Compartment Exam.pptx1111
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17How to Manage Call for Tendor in Odoo 17
How to Manage Call for Tendor in Odoo 17
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
Basic Intentional Injuries Health Education
Basic Intentional Injuries Health EducationBasic Intentional Injuries Health Education
Basic Intentional Injuries Health Education
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 

Inptools Manual

  • 2. Inptools Manual Steffen Macke Publication date $Date: 2012-03-06$ Copyright © 2008, 2009, 2011, 2012 Steffen Macke Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is available from the Free Software Foundation ( http://www.gnu.org ).
  • 3. Table of Contents General .......................................................................................................................... 1. Introduction .......................................................................................................... 1.1. What's New? ............................................................................................... 1.1.1. Version 1.0.1 ...................................................................................... 1.1.2. Version 1.0.0 ...................................................................................... 1.1.3. Version 0.2.2 ...................................................................................... 1.1.4. Version 0.2.0 ...................................................................................... 1.1.5. Version 0.1.0 ...................................................................................... 2. Requirements ........................................................................................................ 3. Installation ............................................................................................................ 3.1. Windows Installation ..................................................................................... 3.2. Linux Installation ......................................................................................... Reference ....................................................................................................................... 1. Usage .................................................................................................................. 1.1. Windows Explorer Integration ........................................................................ 1.1.1. Open INP file with EPANET ................................................................ 1.1.2. Create report in German ....................................................................... 1.1.3. Project from GK3 to WGS84 ................................................................ 1.1.4. Create CSV result files ......................................................................... 1.1.5. Create binary result file ........................................................................ 1.2. Commandline Usage ..................................................................................... 1.2.1. inp2shp .............................................................................................. 1.2.2. inpproj ............................................................................................... 1.2.3. epanet2l ............................................................................................. 1.2.4. epanet2csv ......................................................................................... 2. Troubleshooting and Support ................................................................................... 3. Development ......................................................................................................... 3.1. Release Process ............................................................................................ 3.2. Coding style ................................................................................................ 4. License ................................................................................................................ 4.1. Shapelib License .......................................................................................... 4.2. PROJ.4 License ............................................................................................ 4.3. Gettext License ............................................................................................ Index ............................................................................................................................. iii 1 1 1 1 1 1 1 1 1 1 1 2 3 3 3 3 3 4 4 4 4 4 4 4 4 5 5 5 5 5 5 6 6 8
  • 4. General 1. Introduction Inptools provides functionality to process EPANET INP files in various ways. Inptools is available from epanet.de/inptools . This manual describes Inptools version 1.0.1. 1.1. What's New? A summary of changes. 1.1.1. Version 1.0.1 • Fixed bug in CSV file generation: Link CSV file was named "node.csv" by default. 1.1.2. Version 1.0.0 • EPANET 2.0.0.12 along with the documentation were added to the Windows installer. • The Windows version requires Windows 7 or higher. • Improved Windows explorer integration. Double click on *.net and *.inp files opens them in epanet2w. 1.1.3. Version 0.2.2 • The inp2shp tool was added. 1.1.4. Version 0.2.0 • New functions have been added to the Windows Explorer context menu: "Create CSV file", "Create binary result file", "Help" The epanet2csv tool was added. 1.1.5. Version 0.1.0 • The first public release. 2. Requirements Linux or Windows (7 or higher) are required in order to use the Inptools. . Inptools 0.2.3 is the last version that supports earlier Windows versions. 3. Installation How to install Inptools . 3.1. Windows Installation How to install Inptools on Windows. 1
  • 5. General Download the installer from epanet.de/inptools and execute it. 3.2. Linux Installation How to install Inptools on computers running the Linux operating system Download the RPM package from epanet.de/inptools and install it. 2
  • 6. Reference 1. Usage Inptools can be used in Windows Explorer or from the commandline. Inptools adds a context menu to Windows Explorer that can be activated by right-clicking on *.inp files. 1.1. Windows Explorer Integration Windows Explorer Integration To access Inptools, do the following: Open Windows Explorer. Navigate to an INP files. Right-click on the INP file. Select the Inptools menu. 1.1.1. Open INP file with EPANET Choosen Inptools->Open with EPANET will open the selected INP file in epanet2w for interactive editing. This option is only available if EPANET is installed. 1.1.2. Create report in German Choosing Inptools->Create report in German will create a hydraulic analysis report in German language from the selected INP file. 3
  • 7. Reference 1.1.3. Project from GK3 to WGS84 Choosing Inptools->Project from GK3 to WGS84 will convert (projects) the selected INP file with Gauß-Krüger coordinates (GK3) into a new INP file with geographic (WGS84) coordinates. 1.1.4. Create CSV result files Choosing Inptools->Create CSV result files will create two CSV files with hydraulic analysis results. One file will contain node results and the other will contain link results. When generating CSV files, make sure that you use different file names for nodes and links. 1.1.5. Create binary result file Choosing Inptools->Create binary result file will create a hydraulic analysis report along with a binary result file. This file can be further processed e.g. with the commandline tool epanet2csv. 1.2. Commandline Usage The inptools package contains several commandline tools. Note The use of the commandline tools is optional for Windows users. If you are not familiar with commandline interfaces, please stick to the Windows Explorer context menu ( Section 1.1, “Windows Explorer Integration” ). 1.2.1. inp2shp The inp2shp command converts an INP file into a set of shapefiles. 1.2.1.1. Synopsis inp2shp inpfile reportfile junction_shapefile pipe_shapefile pump_shapefile rese 1.2.2. inpproj The inpproj command converts (projects) an INP file with Gauß-Krüger coordinates (GK3) into a new INP file with geographic (WGS84) coordinates. 1.2.2.1. Synopsis inpproj inputfile outputfile 1.2.3. epanet2l epanet2l is a modified (localized) version of epanet2d that allows to generate report files in German. The LANG environment variable can be used to determine in which language command should operate. 1.2.3.1. Synopsis epanet2l inpfile reportfile [binaryresultfile] 1.2.4. epanet2csv 4
  • 8. Reference epanet2csv converts an EPANET binary result file into two CSV files. CSV files can be read by spreadsheet software like OpenOffice Calc or Excel, relational database software like PostgreSQL or MySQL and GIS software. 1.2.4.1. Synopsis epanet2csv binaryresultfile nodes.csv links.csv 2. Troubleshooting and Support Please report any problems through the epanet.de support form: http://epanet.de/en/support.php 3. Development Most of the source code is plain C and should compile with virtually any C compiler. The C++ code can be compiled using MinGW. 3.1. Release Process Update the version number in configure.in, installer/win32/inptools-setup.nsi, doc/de/inptools.xml, the MSVC project and doc/en/inptools.xml. 3.2. Coding style K&R style with 8 character indents shall be used to format the code. The indent command can be used to format the code: indent -kr -i8 epanet2csv.c 4. License Inptools - Tools to work with EPANET INP files. Copyright (C) 2001, 2008, 2009, 2011 Steffen Macke This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses/. 4.1. Shapelib License The inp2shp and shp2inp commands use shapelib under the terms of the LGPL. Copyright (c) 1999, Frank Warmerdam This software is available under the following "MIT Style" license, or at the option of the licensee under the LGPL (see LICENSE.LGPL). This option is discussed in more detail in shapelib.html 5
  • 9. Reference Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 4.2. PROJ.4 License The inpproj command use the PROJ.4 cartographic projections library. Copyright (c) 2000, Frank Warmerdam Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 4.3. Gettext License Several Inptools commands use gettext under the terms of the LGPL. Copyright (c) 1991 Free Software Foundation This software is available under the following "MIT Style" license, or at the option of the licensee under the LGPL (see LICENSE.LGPL). This option is discussed in more detail in shapelib.html Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 6
  • 10. Reference FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 7
  • 11. Index B binary, 4 C coding, 5 commandline, 4 compiler, 5 CSV, 4 requirements, 1 result, 4 RPM, 2 S shapelib, 5 source, 5 style, 5 support, 5 synopsis, 4, 4, 4, 5 T D troubleshooting, 5 development, 5 U E usage, 3 epanet2csv, 4, 4 epanet2l, 4 epanet2w, 3 Explorer, 3 W WGS84, 4 Windows, 1, 2 Explorer, 3 G general, 1 German, 3 gettext, 6 GK3, 4 GPL, 5 I indent, 5 inp2shp, 4 inppproj, 4 installation, 1 Linux, 2 Windows, 1 introduction, 1 L LGPL, 5, 6 license, 1, 5, 5, 6, 6 M MIT, 6 N news, 1 P PROJ.4, 6 projection, 4 R reference, 3 release process, 5 report, 3, 4 8