Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Marvin Image task #770

Open
marmezcua opened this issue Mar 30, 2022 · 1 comment
Open

Marvin Image task #770

marmezcua opened this issue Mar 30, 2022 · 1 comment

Comments

@marmezcua
Copy link

Describe the bug
I'm trying to use the Marvin Image task locally but I cannot find where/how to download the images from so that Marvin can access them. I have tried downloading the images from the SDSS Legacy Imaging images (https://www.sdss.org/dr17/manga/manga-data/data-access/), but Marvin Image does not recognize them.

To Reproduce
I have the SDSS Legacy Image of plateifu='7443-12703' downloaded. I've tried these different ways of calling it:
im = Image(plateifu='7443-12703')
im = Image(plateifu='7443-12703', mode='local', data-origin='dir'), where dir is the name of the file
im = Image(plateifu='7443-12703', mode='local', data-origin='dir'), where dir is the name of the directory where I save the file
In all cases I get:
MarvinError: failed to retrieve data using input parameters.

Expected behaviour
I would like Marvin Image to plot an image with a pink hexagon around it (the default output of the Marvin Image task) for a set of plateifus. Given that I have thousands of galaxies, I would like this to run locally, so I would be very thankful if you could let me know which images to get so that Marvin Image works (the ones from the SDSS Legacy Imaging seem not to be recognized).

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: 10.13.6 High Sierra
  • Version of Marvin: latest (2.7.0)

Additional context
Add any other context about the problem here.

@havok2063
Copy link
Collaborator

Hi @marmezcua please see the documentation on Marvin Image https://sdss-marvin.readthedocs.io/en/latest/tools/image.html. The Image tool is like the rest of the marvin tools. It has a .download method to download the remote file locally. See https://sdss-marvin.readthedocs.io/en/latest/reference/tools.html#marvin.tools.image.Image.download. It also has a .plot or a .show method for displaying the image, whether it's local or remote.

You can also download the image files directly from the SAS, https://data.sdss.org/sas/dr17/manga/spectro/redux/v3_1_1/8485/images/1902.png.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants