Click here to launch an interactive online version of this notebook: nbapp badge

Code route to capturing movies of multiple regions in an IDV bundle

From a current-weather IDV bundle

Note: may take a few minutes, during which time if ties up your IDV session

[1]:
# Hide the GUI while loading ipython_IDV

import os
os.environ['drilsdown.showui'] = "False"
%reload_ext ipython_IDV

from ipython_IDV import Idv
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-be6145e2f39b> in <module>
      5 get_ipython().run_line_magic('reload_ext', 'ipython_IDV')
      6
----> 7 from ipython_IDV import Idv

ImportError: cannot import name 'Idv'
[2]:
# Set the URL to a bundle file on RAMADDA, s simple test case
# https://geodesystems.com/repository/entry/show/example_grid.xidv?entryid=4728e5eb-fa89-4af8-8162-e2f66a9cd0c9

# Change /show? to /get? in the URL above to make it work here:
Idv.file_url ="https://geodesystems.com/repository/entry/get/example_grid.xidv?entryid=4728e5eb-fa89-4af8-8162-e2f66a9cd0c9"

# Set a few bounding boxes for the image regions you'd like to capture
bboxes = [[50,-130,40,-100],[50,-100,40,-75]]

# Loop over your bounding boxes, capturing movies (just one time in this simple bundle)
for i in range(len(bboxes)):
    bbox=bboxes[i];
    Idv.load_bundle(Idv.file_url,bbox);
    label = "BBOX:" + repr(bbox[0]) +"/" + repr(bbox[1]) +"  " + repr(bbox[2]) +"/" + repr(bbox[3]);
    Idv.make_movie(caption=label,display=True)

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-2-6cf22de2e033> in <module>
      3
      4 # Change /show? to /get? in the URL above to make it work here:
----> 5 Idv.file_url ="https://geodesystems.com/repository/entry/get/example_grid.xidv?entryid=4728e5eb-fa89-4af8-8162-e2f66a9cd0c9"
      6
      7 # Set a few bounding boxes for the image regions you'd like to capture

NameError: name 'Idv' is not defined