marvin
marvin copied to clipboard
Marvin Error : Cube download DR17
Describe the bug MarvinError: mangaid2plateifu was not able to find a plate-ifu for mangaid=1-149541 either local or remotely.
To Reproduce Steps to reproduce the behaviour:
cube1=marvin.tools.Cube('1-149541')
Desktop (please complete the following information):
- OS: Windows 10
- Browser : Chrome (if the issue is related to Marvin Web)
- Version of Marvin [e.g. 2.0.2]
Additional context
MarvinError Traceback (most recent call last) Input In [3], in <cell line: 1>() ----> 1 cube1=marvin.tools.Cube('1-149541')
File ~\anaconda3\lib\site-packages\marvin\tools\cube.py:67, in Cube.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source) 63 self._dispersion_prepixel = None 65 self._bitmasks = None ---> 67 MarvinToolsClass.init(self, input=input, filename=filename, mangaid=mangaid, 68 plateifu=plateifu, mode=mode, data=data, release=release, 69 drpall=drpall, download=download) 71 NSAMixIn.init(self, nsa_source=nsa_source) 73 if self.data_origin == 'file':
File ~\anaconda3\lib\site-packages\marvin\tools\core.py:116, in MarvinToolsClass.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download) 113 def init(self, input=None, filename=None, mangaid=None, plateifu=None, 114 mode=None, data=None, release=None, drpall=None, download=None): --> 116 MMAMixIn.init(self, input=input, filename=filename, mangaid=mangaid, 117 plateifu=plateifu, mode=mode, data=data, release=release, 118 download=download) 120 CacheMixIn.init(self) 122 # drop breadcrumb
File ~\anaconda3\lib\site-packages\marvin\tools\mixins\mma.py:118, in MMAMixIn.init(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, ignore_db) 114 self._drpall = config._getDrpAllPath(self._drpver) if drpall is None else drpall 116 self._forcedownload = download if download is not None else config.download --> 118 self._determine_inputs(input) 120 assert self.mode in ['auto', 'local', 'remote'] 121 assert self.filename is not None or self.plateifu is not None, 'no inputs set.'
File ~\anaconda3\lib\site-packages\marvin\tools\mixins\mma.py:185, in MMAMixIn._determine_inputs(self, input) 183 elif self.mangaid: 184 assert not self.filename, 'invalid set of inputs.' --> 185 self.plateifu = mangaid2plateifu(self.mangaid, 186 drpall=self._drpall, 187 drpver=self._drpver) 189 elif self._plate: 190 assert not self.filename, 'invalid set of inputs.'
File ~\anaconda3\lib\site-packages\marvin\utils\general\general.py:421, in mangaid2plateifu(mangaid, mode, drpall, drpver) 418 except: 419 continue --> 421 raise MarvinError( 422 'mangaid2plateifu was not able to find a plate-ifu for ' 423 'mangaid={0} either local or remotely.'.format(mangaid))
@bmamrutha I can't reproduce your error. What version of marvin
are you using? What data release are you trying to access? Instead of using the manga-id, try the plate-ifu designation.
from marvin.tools import Cube
cube = Cube('8992-9102')
cube
<Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>
cube=Cube('1-149541')
cube
<Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>
Dear Brain,
Thank you very much for your response. Sorry for the delay in my response.
I am using the latest version of Marvin which is version 2.8 and in Jupyter Notebook. For our work, we are using the DR17.
With plateifu, I am able to access the datamodel. However, I cannot download them and store. I also cannot plot or access the optical image of the galaxies even after using the plateifu. Fortunately, every other mapping is possible with plateifu. This issue is only in the Windows OS and I suppose, according to the webpage, data cannot be downloaded because of how Windows defines the path directory. But, I do not find this issue on a Macbook, using jupyter notebook.
Once again, thank you.
Best regards, Amrutha
On Tue, 13 Dec 2022 at 14:03, Brian Cherinka @.***> wrote:
@bmamrutha https://github.com/bmamrutha I can't reproduce your error. What version of marvin are you using? What data release are you trying to access? Instead of using the manga-id, try the plate-ifu designation.
from marvin.tools import Cube cube = Cube('8992-9102') cube <Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>
cube=Cube('1-149541') cube <Marvin Cube (plateifu='8992-9102', mode='remote', data_origin='api')>
— Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/790#issuecomment-1349074398, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUJD7I7HGZU3LKLEEPQ5KBDWNCT53ANCNFSM6AAAAAARVEK6WQ . You are receiving this because you were mentioned.Message ID: @.***>