clawpack / visclaw

Clawpack visualization tools
http://www.clawpack.org
BSD 3-Clause "New" or "Revised" License
29 stars 48 forks source link

Google Earth : set initial view #126

Closed donnacalhoun closed 9 years ago

donnacalhoun commented 9 years ago

Set initial range (distance from earth), camera tilt angle as option in setplot.py. Same as :

    plotfigure.show = True   # Don't show this file in the html version
    plotfigure.use_for_kml = True
    plotfigure.kml_dpi = 500
    plotfigure.kml_tilt = 45       # For example
    plotfigure.kml_xlimits = [-120,-60]
    plotfigure.kml_ylimits = [-60, 0.0];
donnacalhoun commented 9 years ago

this is mostly fixed. One remaining issue is the initial height. While the current setting will work for large scale events (Chile 2010 tsunami), the user must manually zoom the initial GE view to see smaller scale simulations (LaPush, for example). This can be easily fixed - just needs to subjective idea of what a good "initial" view is.

donnacalhoun commented 9 years ago

I now set the initial height to twice the width across the computational domain. This seems to give a reasonable initial view from the examples I have tried. Since the user can have multiple figures in a KML file, so to specify which one should be used for an initial view, they would set :

plotfigure.kml_use_for_initial_view = True. 

By default (or if this is not set), the first figure found will be used for the initial view.

I'd say this issue is closed ...