#!/usr/bin/env python
from sdss_access import Access, AccessError
access = Access(label='mangamaps',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('mangadap5', drpver='v2_0_1', dapver='2.0.2', plate=8485, ifu=1901, mode='*', daptype='*')
access.set_stream()

access.commit()
