#!/usr/bin/env python3
from sdss_access import Access, AccessError
access = Access(label='mangacube_mpl7',verbose=True)

#works if you have the sdss username in your ~/.netrc (or you will be prompted)
access.remote()
#the alternative to setting the password in ~/.netrc is not recommended!
#access.remote(username='sdss',password='***-******')

access.add('mangacube', drpver='v2_4_3', plate=8485, ifu='19*')
access.set_stream()

access.commit()
