Background Image

Post any questions, ideas, or topics related to Jython and Python scripting.
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Background Image

Post by joleenf »

Is there a way to add a wms layer or background image ("Big Blue Marble") via the scripting API?

Thanks,

Joleen
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: Background Image

Post by bobc »

Hi Joleen -

I looked this over with a programmer, and there doesn't appear to be a good way of doing this currently. One thing that you can do is run the following in the Jython Shell:

getStaticMcv().doMakeBackgroundImage()

This will add the background image to the active display with the default layer of 'Blue Marble - Static'. However, from here, there doesn't appear to be a way of changing which type of background image layer is being displayed.

I wrote up McIDAS-V Inquiry 2157 to cover adding these new functions.

Another option for now would be using a bundle. For example, if you know that you want to use the 'Lights - Static' basemap, you can display this through the GUI and save it off as a bundle. Then, in a script or through the Jython Shell, you can load the bundle via the openBundle function.

Thanks -
Bob Carp
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: Background Image

Post by joleenf »

Okay, thanks. This is a good start.

Joleen
Post Reply