-
Notifications
You must be signed in to change notification settings - Fork 15
HDF5 Upload Cutout Tutorial (RemoteExtension Branch)
Luis Rodriguez edited this page Feb 24, 2018
·
1 revision
Assuming that you have followed the instructions in the Boss Upload Cutout Tutorial, this tutorial shows you how to upload a cutout taken from the BOSS to a newly created HDF5 local file.
import intern
from intern.remote.local import LocalRemote
from intern.remote.boss import BossRemote
from intern.resource.boss.resource import ChannelResource
import matplotlib.pyplot as plt
import numpy as np
# BOSS Data fetch which we will upload to the Local Storage:
boss = BossRemote({
"protocol": "https",
"host": "api.theboss.io",
"token": "token",
})
volumeB = boss.get_cutout(
boss.get_channel("em", "pinky40", "v7"), 1,
[10000, 10200], [10000, 10090], [500, 520],
)
#First start remote with path to be adressed and datastore name
#If the datastore name does not exist in the specified path, it will be create_dataset
#otherwise you may continue.
local = LocalRemote({
"host": "/Users/rodrilm2/InternRel/",
"datastore":"LocalBossDummy2"
})
chan_setup = local.get_channel('em','pinky40')
proj = local.create_project(chan_setup)
volume = local.create_cutout(proj,'v1',volumeB)
Table of Contents:
- Overview
- Installation
- Get started
- Boss
- Boss Bounding Box Tutorial
- Boss Download Cutout Tutorial
- Boss Examples
- Boss Ids in Region Tutorial
- Boss Project Auth Tutorial
- Boss Project Metadata Tutorial
- Boss Project Setup Tutorial
- Boss Reserve Ids Tutorial
- Boss Setup Tutorial
- Boss Tutorials
- Boss Upload Cutout Tutorial
- Boss User Management Tutorial
- Dvid
- HDF5