You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## 6. Load the image in Firefly for interactive exploration
396
397
397
-
+++
398
-
399
-
Save the data locally if you have not already done so, in order to upload to IRSA viewer.
398
+
First we intialize the Firefly client as explained [here](https://caltech-ipac.github.io/firefly_client/usage/initializing-vanilla.html) so that we can send our data to Firefly for visualization.
400
399
401
400
```{code-cell} ipython3
402
-
download_path = "data"
403
-
if os.path.exists(download_path):
404
-
print("Output directory already created.")
405
-
else:
406
-
print("Creating data directory.")
407
-
os.mkdir(download_path)
401
+
fc = FireflyClient.make_client('https://irsa.ipac.caltech.edu/irsaviewer')
408
402
```
409
403
410
-
### Vizualize the image with Firefly
404
+
### Vizualize the FITS image with Firefly
411
405
412
-
First initialize the client, then set the path to the image, upload it to firefly, load it and align with WCS.
406
+
After initializing the client, we can directly use the FITS image file URL to visualise it in Firefy.
413
407
414
408
Note this can take a while to upload the full MER image.
415
409
416
410
```{code-cell} ipython3
417
-
fc = FireflyClient.make_client('https://irsa.ipac.caltech.edu/irsaviewer')
### Display the table as an overlay on the FITS image
430
415
431
-
### Upload the CSV table to Firefly and display as an overlay on the FITS image
416
+
Since our galaxies table is in memory, we write it to an IO stream (file-like object) for visualizing it in Firefly.
417
+
Besides displaying the table, Firefly will also overlay the positions of the galaxies on the FITS image we visualized earlier.
418
+
You can click on a table row to inspect the particular galaxy in the image, or click on an overlay marker to inspect the particular galaxy in the table.
0 commit comments