Skip to content

Commit 16767f5

Browse files
Add WCS locking, and image titles
1 parent 121cfec commit 16767f5

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

tutorials/firefly/SEDs_in_Firefly.md

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ phot_tbl
553553

554554
This notebook assumes that [jupyter_firefly_extensions](https://github.com/Caltech-IPAC/jupyter_firefly_extensions) has been installed, and that the Firefly server to use has been specified before Jupyterlab was started.
555555

556-
If everything has been properly configured, executing the next cell will bring up a Firefly tab in Jupyterlab with the message "Firefly Ready":
556+
If everything has been properly configured, executing the next cell will bring up a Firefly tab in Jupyterlab with the welcome message.
557557

558558
```{code-cell} ipython3
559559
# Uncomment to use the jupyter_firefly_extensions
@@ -566,7 +566,6 @@ fc = FireflyClient.make_client(url="https://irsa.ipac.caltech.edu/irsaviewer")
566566
In the event that there are problems with the tab opened above, run the below command to obtain a web link that can be opened in a browser directly:
567567

568568
```{code-cell} ipython3
569-
# Temporary work-around to Firefly error for Slate and/or Internet connection problems
570569
fc.display_url()
571570
```
572571

@@ -577,7 +576,7 @@ tblpath = "./phot_tbl.fits"
577576
phot_tbl.write(tblpath, format="fits", overwrite=True)
578577
```
579578

580-
Upload the table to Firefly:
579+
Upload the table (FITS file) to Firefly:
581580

582581
```{code-cell} ipython3
583582
tval = fc.upload_file(tblpath)
@@ -667,9 +666,9 @@ j_fname, h_fname, k_fname = get_2mass_images(target)
667666
```
668667

669668
```{code-cell} ipython3
670-
fc.show_fits(fc.upload_file(j_fname), plot_id="2MASS J")
671-
fc.show_fits(fc.upload_file(h_fname), plot_id="2MASS H")
672-
fc.show_fits(fc.upload_file(k_fname), plot_id="2MASS K")
669+
fc.show_fits(fc.upload_file(j_fname), plot_id="2MASS J", title="2MASS J")
670+
fc.show_fits(fc.upload_file(h_fname), plot_id="2MASS H", title="2MASS H")
671+
fc.show_fits(fc.upload_file(k_fname), plot_id="2MASS K", title="2MASS K")
673672
```
674673

675674
```{code-cell} ipython3
@@ -684,14 +683,14 @@ fc.set_pan(plot_id="2MASS K", x=target.ra.deg,
684683
y=target.dec.deg, coord="j2000")
685684
```
686685

687-
In the future, the user should be able to implement turning on "Align and Lock by WCS" using the Python API as part of this notebook.
686+
For turning on "Align and Lock by WCS" in these images, there's no dedicated method in firefly but you can use this workaround (using low-level API):
688687

689-
+++
690-
691-
The current alternative is to use the following link to launch IRSA Finder Chart in a separate browser and turn on that function there:
692-
https://irsa.ipac.caltech.edu/applications/finderchart/servlet/api?mode=getResult&locstr=270.599026+-24.147018+Equ+J2000&subsize=0.0167&sources=2MASS&DoSearch=true
688+
```{code-cell} ipython3
689+
fc.dispatch('ImagePlotCntlr.wcsMatch',
690+
payload=dict(matchType='Standard', lockMatch=True))
691+
```
693692

694-
In that Firefly display, it should be possible to turn on "Align and Lock by WCS" in the image toolbar.
693+
Note that zooming or panning one image, will do the same in others.
695694

696695
+++
697696

@@ -705,7 +704,7 @@ In that Firefly display, it should be possible to turn on "Align and Lock by WCS
705704

706705
**Author:** David Shupe (IRSA Scientist) and Joyce Kim (IRSA Scientist) in conjunction with the IRSA Science Team
707706

708-
**Updated On:** 2024-07-31
707+
**Updated On:** 2024-10-17
709708

710709
**Contact:** [email protected] or https://irsa.ipac.caltech.edu/docs/help_desk.html
711710

0 commit comments

Comments
 (0)