Ask Your Question
1

Transfer a bus from one zone to another

asked 2012-02-08 02:00:36 -0500

jtrain gravatar image

Hi I have three buses [20304, 20305, 20306] that I need to transfer from zone 1 to zone 3. How do you transfer zones for more than one bus at a time?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
2

answered 2013-03-14 20:07:42 -0500

Eli Pack gravatar image

Assuming that you don't want to just loop over a busdata2 function, you could make a bus subsystem and run zonm on it.

# Define a bus subsystem
psspy.bsys(0,0,[0,500],0,[],3,[20304,20305,20306],0,[],0,[])
# Change the zone for the buses in the subsystem to 3
psspy.zonm(0,0,[1,1],3)
# Restore the subsystem view to show all buses.
psspy.bsysdef(0,0)

Remember to change the "3" being passed to bsys if you're not modifying three buses.

edit flag offensive delete link more

Comments

1

Nice, bus subsystem is the best way to do it I reckon.

JervisW gravatar imageJervisW ( 2013-03-15 19:56:36 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

Stats

Asked: 2012-02-08 02:00:36 -0500

Seen: 761 times

Last updated: Mar 14 '13