Discover Cube Base: Tutorial
Discover Cube Base: Tutorial
Discover Cube Base: Tutorial
Citilabs®
Citilabs is a registered trademark of Citilabs, Inc. All other brand names and product names used in this book are
trademarks, registered trademarks, or trade names of their respective holders.
The information contained in this document is the exclusive property of Citilabs. This work is protected under United
States copyright law and the copyright laws of the given countries of origin and applicable international laws, treaties,
and/or conventions. No part of this work may be reproduced or transmitted in any form or by any means, electronic or
mechanical, including photocopying or recording, or by any information storage or retrieval system, except as expressly
permitted in writing by Citilabs.
Citilabs has carefully reviewed the accuracy of this document, but shall not be held responsible for any omissions or
errors that may appear. Information in this document is subject to change without notice
Contents
Discover Cube Base Tutorial will introduce you to the features and
capabilities of Cube Base. Though this document is not a
comprehensive user’s guide and does not replace training courses,
this document does include information and exercises that can
help you understand how Cube Base works, what Cube Base can
do, and how you might start using Cube Base for analyzing your
transportation systems.
This chapter introduces you to Cube Base and to the features and
architecture of the Cube software suite. Topics include:
• What is Cube Base?
• The Cube software suite
• Architecture
• Working environment
• Integration with ArcGIS
• Integration of the Cube modules
You can integrate Cube Base with ESRI’s ArcGIS to use advanced GIS
functions.
You can also use Cube Base to update and apply models developed
in Citilabs’ other travel forecasting systems, TP+, TRIPS, and
Tranplan.
Architecture
Cube is a modular system. You can supplement the main
component, Cube Base, with one or more Cube modules, which
support specific planning techniques. Several modules offer
extensions, which enhance a module’s feature set. You only need to
acquire the modules and extensions required for your tasks.
Cube Cargo
Cube Cargo forecasts freight movement. Cube Cargo uses a
commodity-based approach to study freight demand. Therefore,
Cube Cargo can forecast both commodity demand and truck flows.
You can use Cube Cargo to test a wide variety of policies and
infrastructure improvements, such as alternative pricing strategies
or freight-specific facilities.
Cube Dynasim
Cube Dynasim simulates multimodal traffic at a microscopic level.
Cube Dynasim helps planners and engineers design and analyze
the interaction between alternative infrastructure designs,
operating characteristics, and travel demand forecasts. With Cube
Dynasim, you can simulate any sized system, and easily share data
with other Cube functional libraries.
Cube Analyst
Working environment
Cube Base offers a convenient working environment to support
analysis with all Cube modules. The user interface has three
principal working areas:
• Scenario Manager— For managing scenarios and associated
input and output data and reports
• Graphics window — For developing and editing transportation
networks, and producing high-quality charts and maps
• Application Manager — For building and documenting the
model process through a flow chart interface
Scenario
Manager
Graphics
window
Application
Manager
Application
Manager
Applier mode
In applier mode, Cube makes much of the model system read-only,
including the model steps, model coefficients, and other
parameters. Model appliers mainly use Scenario Manager and the
model menu associated with the selected scenario. Developers can
customize the model menu to offer the choices needed for
developing and testing scenarios.
Scenario
Manager
Model
menu
ArcGIS icon
Cube transfers all of the layers and data to ArcGIS along with a
standard ArcGIS *.mxd file. Cube writes the data in ESRI-standard
shape format. Analysts can use the data within ArcGIS and easily
bring the data back to Cube for modeling and simulation.
From Application Manager, you can use the Cube modules and
other integrated products as functions when developing a
modeling and simulation process. You can also integrate other user
programs, such as specialized routines in C++, C, Fortran, or any
other programming language, in the same way. Finally, you can
integrate third-party software products, such as Microsoft Excel
and Crystal Reports, within the Cube working environment.
2 Getting Started
Demonstration users
Demonstration users are those who have not yet purchased Cube
but are evaluating the software. Demonstration users can install
the demonstration version of the software along with Cubetown
data.
For this installation, you can find the Cube software by
clicking the Start button, pointing to All Programs, and
choosing Citilabs Demo Software.
Licensed users
Licensed users are those who have purchased Cube software. To
install your software and license, follow the instructions that
accompanied your license. To use the tutorial, however, you must
install the Cubetown data in addition to the licensed version of the
software. You can install Cubetown data and software from the CD.
b. Click Cancel.
Cube opens without opening a catalog.
2. Open the file containing the shape data for our network.
a. On the File menu, choose Open.
b. Navigate to the C:\Cubetown\Lessons\Develop a Highway
Network directory.
c. In Files of type, select Shape/Image Files.
d. Select Highway_Network.shp.
e. Click Open.
c. Next to Link, select the Color check box, and click Change.
c. Click Save.
Cube opens the Build Highway Network from Line Shape
File dialog box.
Property Entry/Description
1--way/2-way Select Use indicator field. This indicates that
Options a field in the shape file has data about
whether roads are one-way or two-way.
Select ONEWAY_TWO in the field list. This is
the field in the shape file that indicates
one-way and two-way roads.
Distance Options Select Add Distance Field and leave Scale
set to 1.0.
Node Grouping LImit Enter 0.0001
This value determines when Cube creates
new nodes in areas with many nodes. Citilabs
recommends using a very small value.
Starting New Node Enter 100.
Number This is the first node number Cube uses when
creating nodes.
Highest Zone Enter 25.
Number This is the highest zone number Cube will
create.
NOTE: The shape file has two fields, called A and B, which
have node numbers. Therefore, leave A-Node Field Name
and B-Node Field Name unchanged, and do not select the
Clear all values in the A-Node and B-Node fields first check
box, which would cause Cube to re-number the nodes.
e. Click Build.
Cube builds a highway network from the shape file.
5. Display the highway network.
b. Click On.
An Information dialog indicates the number of shapes
found.
c. Click OK.
Cube opens the Highway Links editor. The editor shows the
attributes available in the highway network. These are
same attributes found in the source shape file.
8. Close Cube.
a. On the File menu, choose Exit.
b. At the prompt, click Yes to save the project file.
c. On the Save Project File dialog, click Save.
d. At the prompt, click Yes to close all windows and exit.
Centroids
c. Click OK.
Cube generates the centroid connectors and opens an
Information dialog informing you that it generated 16.
d. Click OK.
Centroid
connector
Modeling intersections
With Cube, you have three options for modeling highway
congestion:
• No congestion — Apply no capacity restraint.
• Link-based congestion — Use the “standard” method for
constraining network flow in the traffic assignment model.
• Junction-based congestion — Simulate the congestion on a
road network by modeling what happens at intersections and
merges. This method offers more accurate results, but requires
more data preparation.
c. Click Browse.
d. Navigate to the C:\Cubetown\Media directory.
e. Select Export.tif.
f. Click Open.
g. In the Image Layer Parameters dialog box, click All Done.
Aerial photo
c. Click OK.
d. At the prompt, click Yes to factor existing values for all
intersections.
7. Code the intersection.
In Cube, the top layer is the active layer, available for editing.
5. Situate the displayed diagram to help create the transit line.
NOTE: The text in the status bar at the bottom of the screen
informs you of the different ways you can code a transit
line. By clicking, we create a route by indicating the stop
nodes.
Creating labels
By adding labels, such as road signs or call-out text, you can
enhance the readability of diagrams. Such labels can help you
identify key elements, making a project much easier to use. In
Cube, you insert labels by adding one or more drawing layers.
In Cube, the top layer is the active layer, available for editing.
5. Insert an interstate route symbol on the diagram.
a. On the Drawing/Screenline menu, point to New Object, and
choose Symbol.
Box
d. Click OK.
e. Press ESC to return the cursor to pointing mode.
f. Click anywhere on the map to clear the object selection.
Property Value
Name I-25
Label 25
i. Click OK.
Cube updates the symbol on the map.
4 Developing a Model
Property Value
Application Group Name Example
Application Group Code EX
Version No. 00
d. Click OK.
The Save Application As dialog box opens with File name
specified as EXAMPL00.APP, based on your entries.
e. Navigate to the C:\Cubetown\Lessons\Catalogs and
Applications directory.
f. Click Save.
3. Add the application to the catalog.
a. Right-click in Application Manager and choose Add
Application to Catalog.
Cube adds the application to the catalog.
b. Click the Save Catalog button, just above the catalog tab.
Property Value
Name Network
Prompt Highway network input:
Type File Name
Control Radio Buttons
d. Specify the files that users can choose for the network
input.
i. Click Browse.
Cube opens the Open dialog box for specifying files.
ii. Navigate to the C:\Cubetown\Lessons\Catalogs and
Applications directory, if necessary.
iii. Optional. In the File name box, type *.net and click
Open.
The dialog box displays a list of files with the .net
extension.
iv. Select BASE.NET and click Open.
Cube inserts the file in the Value box on the Add to List
of Allowed Values for Key dialog box.
v. Click Add.
Cube inserts the file to the list.
vi. Click Browse to open the Open dialog box.
vii. Select CITIMART.NET and click Open.
viii. Click Add to insert the file to the list.
ix. Click OK to close the dialog box.
e. Click OK.
Scenario Manager adds the network key under Keys.
Property Value
Name Trips
Prompt Trip matrix input:
Type File Name
Control Radio Buttons
List of C:\Cubetown\Lessons\Catalogs and
Allowed Applications\Base.mat
Values C:\Cubetown\Lessons\Catalogs and
Applications\Citimart.mat
NOTE: Click the Add button and select these files, as
you did in step d for adding the key for the highway
network input.
If Microsoft Access is installed on your computer,
Windows might display .mat files as a Microsoft
Access shortcut without the file extension.
c. Click OK.
Scenario Manager lists two new keys under Keys.
d. Click OK.
Cube adds an arrow to the left of the Network File box,
indicating that the input comes from a key.
g. Click OK.
h. Click anywhere in Application Manager to clear the object
selection.
Application Manager displays arrows before both inputs,
defined to use the linked keys.
NOTE: Later, you can select that command again to see the
unused files, if necessary.
c. Click OK.
Cube opens the model menu for the Citimart scenario.
d. Set the input files for the Citimart scenario.
• Under Highway network input, select CITIMART.NET.
• Under Trip matrix input, select CitiMart.mat.
e. Click OK.
Cube sets these as the input files for the scenario and closes
the model menu.
5. Save the catalog and application.
a. On the File menu, choose Save to save the application.
b. On the File menu, choose Save Catalog to save the catalog.
5 Learning More
Citilabs is committed to helping you get the most out of Cube. This
chapter discusses resources available to learn more about Cube:
• User support
• User forum
• Training
• Consulting and assistance
User support
Citilabs provides free user support for all new product or upgrade
purchases. You can purchase additional user support on an annual
basis through a software maintenance contract. A current
maintenance contract provides you with user support and free
software updates.
Training
Citilabs holds training sessions at least two times per year in each of
our offices in San Francisco, London, and Washington, D.C. We also
provide additional training courses in other major cities.
http://www.citilabs.com/training
If you have specific training needs not met by our regular course
offerings, please contact us. We would be happy to work with you
to develop training appropriate for your specific needs.
Licensing options
Citilabs offers standard desktop licenses—licenses that you can
install and use on a single computer at any given time. Citilabs also
offers server licenses—multiple seat licenses that you install on a
central computer, which lends them to authorized users as needed,
subject to seat limitations.
USA Central
Matthew Martimo – [email protected]
Latin America
Vladimir Majano – [email protected]
Southern Europe/Africa
Alberto Brignone – [email protected]
Asia/Pacific
Matthew Martimo – [email protected]
Index
A catalogs
Application Manager adding applications to 77
accessing modules with 12 creating 74
applier mode limits 102 description 73
description 8 operating mode, setting 99
hiding unused inputs/outputs 88 centroid connectors
input indicator 86 definition 33
output indicator 88 generating 37
applications centroids
adding to catalog 77 adding to network 36
configuring background image for 98 definition 33
creating 76 Citilabs 107
description 73 colors
inputs, configuring 79–84 model menu 90
linking keys to 85 shape forms, setting 23
outputs, configuring 87 styles, saving 25
processes for 74 transit line 60
scenarios, creating for 88 congestion types 40
applier mode consulting 107
configuring 100 copying labels 68
description 10 Crystal Reports 12
functions in 101 Cube
ArcGIS integration 11 ArcGIS integration 11
feature summary 3
B installing 13
base data 19 integrating other products 12
boundary layer 34 Cube Analyst 6
bus lines. See transit lines Cube Avenue 5
Cube Base
C acquiring 111
C++ 12 interface description 8
capacity, intersection 45 module integration 12
.cat files 75 operating modes 8
summary 2
Cube Cargo 5
Cube Dynasim 6 G
Cube ME. See Cube Analyst graphics window
Cube Voyager 5 description 8
focus on node 42
D
data file H
boundary layer 35 headway, adding to transit line 60
catalog 75 Highway Capacity Manual 45
drawing layer 65 highway links editor 32
highway network 25 highway networks
intersections, creating 43 adding centroids 36
transit files 55 building from shape files 25
transit layer 52 converting to true shapes 29
visual project 98 developing 20
developer mode displaying 28
description 9 linking to zones 33
setting 100 highway nodes editor 44
diagrams
background images, configuring 98 I
displaying photos on 41 image layer 41
displaying road directions 54 images
focus on node 42 adding to model menu 90
labels, displaying on 64 background for diagrams 98
showing transit stops 61 inputs
drawing layer default, configuring 91
adding objects to 65 defining allowed files 81
creating 64 hiding unused 88
.drw files 65 specifying for model 79
installation
E demonstration users 14
editors licensed users 16
highway link 32 intersection data editor 45–48
highway nodes 44 intersections
intersection data 45–48 coding 44
transit route 56, 59 creating data file for 43
focus on 42
F lane geometry 46
file formats measurement units 44
cat 75 modeling junction-based congestion 40
drw 65 phases 45
mxd 11 photos, displaying for 41
net 25 type, specifying 45
shp 35 interstate symbol, inserting 67
vpr 98
focus, on node 42 J
fonts, model menu 90 junction-based congestion 40
Fortran 12
K nodes
keys displaying on diagram 61
creating for model input 79 transit stops, designating 59
description 76
indicator in Application Manager 86 O
linking to application 85 one-way roads
displaying on diagram 54
L indicator in shape file 27
labels outputs
copying 68 configuring for application 87
creating 65 configuring scenario-specific 87
modifying 69 hiding unused 88
using on diagrams 64 scenario-specific, indicator 88
lanes, defining geometry 46
layers P
boundary 34 passwords, operating modes 100
drawing 64 photos, displaying on network diagrams 41
highway network 28 post menu
image 41 all nodes 54
making active 65 intersection locations 49
properties 23 one-way arrow on network 54
transit 51
libraries, intersection types 48 R
.lin files 52 route symbols
links adding to diagram 65
See also centroid connectors copying 68
attributes, viewing 31 modifying 69
colors, setting 23
S
M Scenario Manager
maintenance contract 104 applier mode functions 102
.mat files 83 description 8
Microsoft Excel 12 sections, developer mode 75
model menus scenarios
customizing 89 configuring default inputs 91
defining inputs for 79 creating model menus for 88
uses for 10 description 73
models, creating 78 processes for 74
modules shape data
accessing 12 building networks from 25
list of 4 importing 21
.mxd files 11 .shp files 35
signal phases, defining 45
N stops on transit lines
.net files 25 displaying 61
node numbers indicating 59
displaying on diagram 55
generating 27 T
TP+ 12
traffic assignment model, creating 78