Skip to content

HDF5 Download Cutout Tutorial (RemoteExtension Branch)

Luis Rodriguez edited this page Feb 24, 2018 · 2 revisions

Assuming that you have followed the instructions in the HDF5 Upload Cutout Tutorial, this tutorial shows you how to download a cutout from a previously created HDF5 repository channel.

import intern
from intern.remote.local import LocalRemote

local = LocalRemote({
    "host": "/Users/rodrilm2/InternRel/",
    "datastore":"LocalBossDummy2"
    })

#To download the data you can use the get_cutout function just as in the boss remote
volumeL = local.get_cutout(
    local.get_channel('em', 'pinky40', 'v1'), 1,
    [0, 200], [0, 90], [0, 20]
)