internet and distributed representation of agent based model by- manish sharma

10
Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Upload: roy-johns

Post on 30-Dec-2015

213 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Internet and Distributed Representation of Agent Based

Model

by- Manish Sharma

Page 2: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Creation of Agent Based Modeling Using Python

*** Program takes the parameters from three files named landuse.txt, price.txt attractiveness.txt.

• Does the calculation needed for development of cells and writes the new landuse information to a unique file each time.

• These steps are repeated till the required number of cells gets developed.

Page 3: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Creation of GIF files using the new landuse files that are generated SCRIPT – TOOL : ASCII to Image (.tiff)

LIMITATION WITH EXISTING ArcGIS TOOL :• Manual Process.• Requires two independent tools to convert from ASCII file to Image.• Takes only one ASCII file as an input at one time.• Not feasible for Large set of data, which results into large number of

ASCII files.

HOW THIS TOOL WORKS :• INPUT: Path to a folder where all the ASCII files are kept.• PROCESS (Taking the ASCII files from a directory and storing their information in a List):

– Filters out everything except the ASCII files (.txt)– Stores the absolute path for each file in the same format that ArcGIS accepts in a List.– Runs a loop, which Iterates over this List and reads one element in the List at one time.

• ASCII TO IMAGE CONVERSION :– While Looping Over the List, it fetches one element from the List and give it as input to the GeoProcessor method.– gp.ASCIIToRaster_conversion(input_file, Output_filename+".tif", "INTEGER").

•OUTPUT:– To make the output files easy to recognize and distinguish, they are named by a default string appended with the ASCII filename.

ADVANTAGES OF USING THIS SCRIPT- TOOL.• Automated Process.• Converts directly an ASCII file into an Image.• Takes input a path to a folder, which can have any number of ASCII files.• No issues with Large sets of data.

Page 4: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

PARAMETER FOR ASCII TO IMAGE SCRIPT - TOOL

Page 5: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

SETTING VISUAL PROPERTIES FOR IMAGES

• WHAT THESE IMAGES REPRESENT:– Each Image comprises of three Unique Values.– One value represent the undeveloped region.– Second value represent the developed region.– Third value is the NODATA value which implies to the region where there can be no development.

• DISPLAYING AND SETTING THE VISUAL PROPERTIES:– Add all the Images as different layers into ArcGIS.– Setting the similar color scheme for each Image from their respective properties.

• REASON FOR SIMILAR COLOR SCHEME FOR ALL THE IMAGES:– All the images represents the similar region and also indicating the similar information.– To make it possible to visualize the different phases from an undeveloped to developed region.

Page 6: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

PROGRESS WINDOW FOR ASCII TO IMAGE SCRIPT TOOL

Page 7: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

ANIMATED RESULT

• NEED FOR ANIMATED RESULT:– Better visual illustration.– Transitioning from undeveloped to developed can be seen in a single animation.– Easy to analyze the results.

• FROM TIFF TO GIF IMAGE:– All the images need to be imported into ArcGIS before converting them into .gif files.– Select each tiff file individually and export each of them as a .gif map.

• DEVELOPING AN ANIMATION FROM GIF FILES:– Using Application programs like Coffee Cup Animator, GIF Advanced Animation etc.– These applications takes the gif files and outputs the gif animation which can have user defined delay and

other visual properties.

Page 8: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Creating the Animated image for Agent Based Model

• All the images created by the Arc GIS are given as input to the GIF image creating software.

• Successive image display delay is set to appropriate number

• Single animated GIF image is created that is independent of all the other images.

Page 9: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Creation of the Documentation for the Python Source Code using

Doxygen• Doxygen, an automated documentation

generator tool is run on all the source file to generate a HTML documentation.

• This also creates the index.html page.

• Index.html page is the doxygen directory is linked to main index page with a title of “Doxygen Documentation”.

Page 10: Internet and Distributed Representation of Agent Based Model by- Manish Sharma

Creating the PDF version of the documentation.

• Doxygen can also be used to create a documentation in pdf format.

• This is a single file that can be easily printed.

• Now this file is also lined to the main index.html file.