sdss / marvin

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

Spatially-Resolved Mass-Metallicity Relation exercise help #778

Closed TheRealEKL closed 2 years ago

TheRealEKL commented 2 years ago

Hello,

In the Spatially-Resolved Mass-Metallicity Relation solution, in the Compute Stellar Mass Surface Density section, the CSV file for reading in the Firefly data for stellar mass doesn't exist anymore. I downloaded the Firefly VAC fits file, read it into a CSV but I am unsure of how to proceed. With this data, the only thing I am trying to do is to get the stellar mass (which is the next step in the exercise). Would really appreciate some help on this, thank you!

havok2063 commented 2 years ago

@TheRealEKL The link is broken in the notebook, but not broken from the front page of the exercise tutorials, https://sdss-marvin.readthedocs.io/en/latest/tutorials/exercises.html. Click the Data link and it should download the CSV file used in the notebook.

That being said, the CSV file is just a subset of what is in the main FIREFLY file, so if you've already downloaded the VAC you can adapt the notebook to load sample data from the file itself. The format of the example CSV file is a map slice containing the stellar mass measurements, i.e. the number of columns and rows are the spatial array indices, and the values are the measurements. So the mstar variable in the notebook should be a 2d array when read in.

TheRealEKL commented 2 years ago

ahhhh I see! Thank you very much, got it working. Going to work on maneuvering around the FIREFLY data, thank you again!

TheRealEKL commented 2 years ago

@havok2063 I have been trying to recreate the CSV file (with different PlateIFU's) and I'm having some trouble. I've loaded the FITS file, but I am stuck on how to locate a specific PlateIFU's values for stellar mass. Every time I try to just load the "STELLAR_MASS_VORONOI" extension into a CSV I get an error about not being able to send a multidimensional array into a CSV file. I would really appreciate if you could offer some insight on how to locate a specific galaxies stellar mass and reading it into a CSV file. And as always, thank you for being so helpful.