sdss / marvin

Data access and visualization for MaNGA. http://sdss-marvin.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
55 stars 32 forks source link

Unable to download bintype='VOR10' Maps from marvin #730

Closed OphelieLeste closed 2 years ago

OphelieLeste commented 3 years ago

Describe the bug Unable to download bintype='VOR10' Maps from marvin

BrainError                                Traceback (most recent call last)
[LocalDensity.docx](https://github.com/sdss/marvin/files/6711428/LocalDensity.docx)

~/anaconda3/lib/python3.7/site-packages/marvin/tools/maps.py in _load_maps_from_api(self)
    378         try:
--> 379             response = self._toolInteraction(url_full)
    380         except Exception as ee:

~/anaconda3/lib/python3.7/site-packages/marvin/tools/core.py in _toolInteraction(self, url, params)
    133         params = params or {'release': self._release}
--> 134         return marvin.api.api.Interaction(url, params=params)
    135 

~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in __init__(self, route, params, request_type, auth, timeout, headers, stream, datastream, send, base, verify)
     56         if self.url and send:
---> 57             self._sendRequest(request_type)
     58         elif not self.url and send:

~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _sendRequest(self, request_type)
    294             # Check the response if it's good
--> 295             self._checkResponse(self._response)
    296 

~/anaconda3/lib/python3.7/site-packages/brain/api/api.py in _checkResponse(self, response)
    258                 self._closeRequestSession()
--> 259                 raise BrainError('Something went wrong on the server side: {0}'.format(errorMsg))
    260 

BrainError: Something went wrong on the server side: Failed to retrieve maps 8485-1901: Specified bintype VOR10 is not available in the DB.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.

During handling of the above exception, another exception occurred:

MarvinError                               Traceback (most recent call last)
<ipython-input-77-f21462b969c6> in <module>
----> 1 maps2 = Maps('8485-1901', bintype='VOR10')

~/anaconda3/lib/python3.7/site-packages/marvin/tools/maps.py in __init__(self, input, filename, mangaid, plateifu, mode, data, release, drpall, download, nsa_source, bintype, template, template_kin)
    111             self._load_maps_from_db(data=self.data)
    112         elif self.data_origin == 'api':
--> 113             self._load_maps_from_api()
    114         else:
    115             raise marvin.core.exceptions.MarvinError(

~/anaconda3/lib/python3.7/site-packages/marvin/tools/maps.py in _load_maps_from_api(self)
    380         except Exception as ee:
    381             raise marvin.core.exceptions.MarvinError(
--> 382                 'found a problem when checking if remote maps exists: {0}'.format(str(ee)))
    383 
    384         data = response.getData()

MarvinError: found a problem when checking if remote maps exists: Something went wrong on the server side: Failed to retrieve maps 8485-1901: Specified bintype VOR10 is not available in the DB.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.
You can submit this error to Marvin GitHub Issues (https://github.com/sdss/marvin/issues/new).
Fill out a subject and some text describing the error that just occurred.
If able, copy and paste the full traceback information into the issue as well.
havok2063 commented 3 years ago

@OphelieLeste Are you trying to access VOR10 data locally from files or remotely over the API? If you are trying to access them remotely, we no longer support VOR10 data in the database, and thus they are unavailable for remote access. See the changes indicated here, https://sdss-marvin.readthedocs.io/en/latest/whats-new.html, as of version 2.5.0. However, they are still accessible locally as files, you just need to download the data first, and put it in the correct location Marvin expects.

OphelieLeste commented 3 years ago

Hello,

Thank you for the answer, where can I access them to download?

Ophelie Leste.

On Thu, Jun 24, 2021 at 4:57 PM Brian Cherinka @.***> wrote:

@OphelieLeste https://github.com/OphelieLeste Are you trying to access VOR10 data locally from files or remotely over the API? If you are trying to access them remotely, we no longer support VOR10 data in the database, and thus they are unavailable for remote access. See the changes indicated here, https://sdss-marvin.readthedocs.io/en/latest/whats-new.html, as of version 2.5.0. However, they are still accessible locally as files, you just need to download the data first, and put it in the correct location Marvin expects.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/sdss/marvin/issues/730#issuecomment-867912368, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARVORIUX4FEC7TIKLSMB4YTTUOE3ZANCNFSM47INSQCQ .

havok2063 commented 3 years ago

Hi @OphelieLeste , are you a member of the SDSS collaboration? If not, the VOR10 data for the most recent DR16 release, can be found here, https://data.sdss.org/sas/dr16/manga/spectro/analysis/v2_4_3/2.2.1/VOR10-GAU-MILESHC/. If you are a member of the collaboration, the DAP data for the latest MPL-11 can be accessed on the collaboration SAS website.

havok2063 commented 2 years ago

This is resolved in the latest DR17 release and sdss-marvin==2.7.1