Python Scripting

Skip to end of metadata
Go to start of metadata


The Python scripting extension provides the ability to combine the power of Opticks and the Python language. This extension provides the Python scripting window which allows you use Opticks to load and visualize your imagery and then directly interface that imagery with Python and any other Python libraries from within Opticks to manipulate and perform algorithms using the full power of the Python language.

Download

Latest Stable Release

For Opticks 4.8.X
1.5.0 - January 20th, 2012 Release Notes
Works With: Opticks 4.8.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.7.X
1.4.0 - June 17th, 2011 Release Notes
Works With: Opticks 4.7.0 - 4.7.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.6.X
1.3.0 - March 21st, 2011 Release Notes
Works With: Opticks 4.6.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.5.X
1.2.0 - November 30th, 2010 Release Notes
Works With: Opticks 4.5.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.4.X
1.1.0 - August 11th, 2010 Release Notes
Works With: Opticks 4.4.0 - 4.4.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.3.X
1.0.1 - August 11th, 2010 Release Notes
Works With: Opticks 4.3.3 - 4.3.4
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit

Roadmap

Older Releases

Source Code

Summary


License: LGPL
Price: Free
Author: Opticks Team
Website: http://opticks.org/confluence/display/opticksExtras/
Latest Version: 1.5.0 for Opticks 4.8.X updated on 2012-01-20
Opticks Supported Versions:

4.8.X
4.7.X
4.6.X
4.5.X
4.4.X
4.3.X
4.2.X

Operating Systems:

Windows 32-bit
Windows 64-bit
Solaris SPARC 64-bit
Linux 64-bit

Support: Community Supported. File bug reports/enhancements/new features into Opticks Extras project.

This extension adds a new tab to the built-in scripting window in Opticks. This new tab in the scripting window allows you to write Python code from within Opticks. The extension adds approximately 9 new classes to Python to interface between Opticks and Python. This includes the ability to move Opticks image data back and forth to NumPy arrays, if NumPy is installed. It also includes the ability to create new windows in Opticks and modify what's displayed in those windows. You can also interface this extension with the built-in wizard ability of Opticks to create "one-click" buttons in Opticks that can run a very complicated Python script or series of Python scripts.

In order to fully utilize all the capabilities it is highly recommended that you also install NumPy into your Python installation. One of the easier ways to do this and get a bunch of other useful scientific and remote sensing capability for Python is to download and install the free Python(x,y) distribution.

How do I get started with Python?
  1. Make sure you have a copy of Python installed.
    • This extension currently supports Python 2.5.X or Python 2.6.X.
  2. Download the appropriate version of the extension depending on the version of Python you wish to use. You can only install one version of the extension at a time for a given Opticks installation (for example you cannot install the version that targets Python 2.5.X and Python 2.6.X at the same time).
  3. Learn how to install Opticks extensions.
  4. Open up the "Scripting Window" in Opticks and find the "Python" tab. Start writing some Python code.
  5. If you cannot find the "Python" tab in the "Scripting Window" that might be because the extension could not locate your existing installation of Python. In this case, update the location of Python using the "Scripting\Python Engine" entry in the Options dialog (found under "Tools\Options...").
Using the Python interface

Help on the extension is available in the Python opticks module which can be accessed by typing:

or by looking in $OPTICKS_HOME/SupportFiles/site-packages at the .py source files. Further help on the SimpleAPI interface is available in the Opticks SDK help documentation under the Simple datacentric API module. There are plans in the future to bundle html documentation along with extension.

Sample Python Scripts

Head over to Sample Python Scripts.

Screenshots and Videos


TBD.

Roadmap


Python Scripting Extension 1.6.0

Scheduled Release Date: March 2012

This will be a new major release. This release will work with the upcoming 4.9.X releases of Opticks.

jiraissues: Unable to determine if sort should be enabled.

Older Releases


Stable Releases

For Opticks 4.8.X
1.5.0 - January 20th, 2012 Release Notes
Works With: Opticks 4.8.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.7.X
1.4.0 - June 17th, 2011 Release Notes
Works With: Opticks 4.7.0 - 4.7.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.6.X
1.3.0 - March 21st, 2011 Release Notes
Works With: Opticks 4.6.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.5.X
1.2.0 - November 30th, 2010 Release Notes
Works With: Opticks 4.5.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.4.X
1.1.0 - August 11th, 2010 Release Notes
Works With: Opticks 4.4.0 - 4.4.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.3.X
1.0.1 - August 11th, 2010 Release Notes
Works With: Opticks 4.3.3 - 4.3.4
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit


1.0.0 - March 3rd, 2010 Release Notes
Works With: Opticks 4.3.3 - 4.3.4
Python Version(s)
2.6.X 32-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit

Release Candidates

For Opticks 4.8.X
1.5.0rc1 - December 16th, 2011 Release Notes
Works With: Opticks 4.8.0rc1 - 4.8.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


For Opticks 4.7.X
1.4.0rc2 - June 9th, 2011 Release Notes
Works With: Opticks 4.7.0rc1 - 4.7.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


1.4.0rc1 - May 6th, 2011 Release Notes
Works With: Opticks 4.7.0rc1 - 4.7.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


For Opticks 4.6.X
1.3.0rc2 - March 17th, 2011 Release Notes
Works With: Opticks 4.6.0rc2 - 4.6.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit


1.3.0rc1 - February 25th, 2011 Release Notes
Works With: Opticks 4.6.0rc1 - 4.6.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
For Opticks 4.5.X
1.2.0rc2 - November 19th, 2010 Release Notes
Works With: Opticks 4.5.0rc2 - 4.5.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit


1.2.0rc1 - November 8th, 2010 Release Notes
Works With: Opticks 4.5.0rc1 - 4.5.0
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
For Opticks 4.4.X
1.1.0rc1 - July 23rd, 2010 Release Notes
Works With: Opticks 4.4.0rc1 - 4.4.1
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit
For Opticks 4.3.X
1.0.1rc1 - July 23rd, 2010 Release Notes
Works With: Opticks 4.3.3 - 4.3.4
Python Version(s)
2.6.X 32-bit 64-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit


1.0.0rc1 - February 12th, 2010 Release Notes
Works With: Opticks 4.3.3rc1 - 4.3.4
2.6.X 32-bit
2.5.X 32-bit
2.4.X 32-bit


Limited Support Python Version(s)
2.6.X 64-bit

Labels

extension extension Delete
opticks43xextension opticks43xextension Delete
windows32 windows32 Delete
linux-gcc4-amd64 linux-gcc4-amd64 Delete
opticks44xextension opticks44xextension Delete
opticks45xextension opticks45xextension Delete
windows64 windows64 Delete
opticks46xextension opticks46xextension Delete
opticks47xextension opticks47xextension Delete
opticks48xextension opticks48xextension Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.