Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kml plots of only gauges? #236

Open
rjleveque opened this issue Jan 11, 2019 · 1 comment
Open

kml plots of only gauges? #236

rjleveque opened this issue Jan 11, 2019 · 1 comment

Comments

@rjleveque
Copy link
Member

@donnaaboise: I'm trying to make kml files for only the gauges -- it's very convenient to be able to click on the gauge and see the plot for that gauge in situations where we have dozens of gauges, even if I don't want to view animations of the solution on Google Earth. It would be nice to be able to just make the kml's for the gauge plots.

I'm running into a few problems. Not high priority since I figured out how to produce what I want working around these things, but next time you are working on kml tools, this is something to add to the wish list.

  1. It works ok if I also make at least one frame plot and open _GoogleEarth.kmz. But if I unzip this and then try to open only gauges.kml it doesn't find the images properly unless I edit this file to change ../../images to ./images. In general it would be nice to be able to easily create a small directory with just these gauge files and images to share with someone.

  2. If I set

     plotdata.print_framenos = [] 

in setplot.py, so it shouldn't produce any frames, only the gauges (I hoped) then make plots dies with the error

  File "/Users/rjl/git/clawpack/visclaw/src/python/visclaw/plotpages.py", line 1282, in plotclaw2kml
    frameno = framenos[-1]
  IndexError: list index out of range
  1. If I set
     plotdata.print_framenos = [0] 

say, so it just works on 1 frame, and set

    plotfigure.use_for_kml = False

for all the figures that make frame plots (hoping to not generate the kml for these), then opening the resulting kmz file still shows all the grid patches because a levels.kml file is still created.

@donnaaboise
Copy link
Contributor

@rjleveque I'll take a look at this - it sounds like nice feature to have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants