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

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

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

rsync_access.commit()
