Search found 1138 matches

by joleenf
Fri Mar 01, 2019 5:52 pm
Forum: Bug Reports
Topic: can't use captureImage
Replies: 20
Views: 11427

Re: can't use captureImage

Hi Jay, I reverted back to a February 11, 2019 build and my scripts work, but -tempuserpath does not work as expected. This is the more complicated script that I am testing (I am pretty sure it is Bob's test script) rgb_and_locs.py import os # save an image to $HOME/check home_directory = os.path.ex...
by joleenf
Fri Mar 01, 2019 5:20 pm
Forum: Bug Reports
Topic: can't use captureImage
Replies: 20
Views: 11427

Re: can't use captureImage

Hi, February 25, 2019 build version 1.9 beta1, it seems the index=0 is no longer the default, instead it is index=''. My scripts are failing. Was this an intentional change? Or, is it possible something got mixed up in one of my xml files? When I tried using tempuserpath, a strange thing happened as...
by joleenf
Tue Feb 12, 2019 3:17 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob, I had to add to add a few commands to make this work on my mac and linux machine: gs = getStaticMcv() loc = gs.locationList.get(0) controlDesc = gs.getControlDescriptor('locationcontrol') gs.uiManager.addStationDisplay(loc, controlDesc) time.sleep(10) labels = activeDisplay().getLayer(1) lab...
by joleenf
Mon Feb 11, 2019 7:06 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob,

This seems to be working now, using the time.sleep(10) to pause. Is there a way to change the Layout Model? After I found the layer handle, I tried setLayoutModel('Location'), but that does not actually apply the new location model to the point data.

Joleen
by joleenf
Fri Feb 01, 2019 3:58 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob, Jay, The location labels are plotting, but it seems that I can't get a handle to the layer. However, Bob looked at this with me and it seems that adding a time.sleep(5) will work around the problem. In addition, I can test whether or not the layer handle is available by using display_layers ...
by joleenf
Wed Jan 30, 2019 5:28 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob, This seems to work fine on my mac, except that the locations layer is not accessible with panel[0].getLayers() (Could you test attached script and tell me if you see the locations layer?). When I run this through a vnc server, if I place the locations on the display before I display the sand...
by joleenf
Wed Jan 02, 2019 4:57 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Thanks Bob, that is working.

Joleen
by joleenf
Wed Jan 02, 2019 3:09 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob,

What is getStaticMcV()? I am seeing an error that says it is undefined.

Joleen
by joleenf
Fri Dec 21, 2018 3:09 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Re: Plot western hemisphere cities

Hi Bob, The NEWWINDOW (height=2160, width=2160) method was the first thing I tried, but I found that for the Mesoscale sectors, I did not get the same result for the reset project by mesoscale layer and then setting the scale factor to 2. When I use a regular buildWindow, the mesoscale sector filled...
by joleenf
Thu Dec 20, 2018 6:49 pm
Forum: Scripting
Topic: Plot western hemisphere cities
Replies: 16
Views: 7527

Plot western hemisphere cities

Hi, I am trying to find a way to plot the place names of western hemisphere cities regardless of the location of the data (Northern or Southern Hemisphere). I did not see a locations list already built in McV which included what I needed, so I made a custom list in userstations.xml. Then, I wanted t...