Skip to content

Commit

Permalink
deploy: 1019f72
Browse files Browse the repository at this point in the history
  • Loading branch information
jaladh-singhal committed Dec 12, 2024
1 parent d5c7439 commit 7eae9d7
Show file tree
Hide file tree
Showing 52 changed files with 1,316 additions and 4,126 deletions.
2 changes: 1 addition & 1 deletion .buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9840cfada4cf00d8df3c3dd7bbac1d38
config: 5968195b44dd62fc064f20a377c21afd
tags: 645f666f9bcd5a90fca523b33c5a78b7
55 changes: 0 additions & 55 deletions _sources/api/firefly_client.Env.rst.txt

This file was deleted.

55 changes: 0 additions & 55 deletions _sources/api/firefly_client.FFWs.rst.txt

This file was deleted.

4 changes: 4 additions & 0 deletions _sources/api/firefly_client.FireflyClient.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ FireflyClient
~FireflyClient.add_listener
~FireflyClient.add_mask
~FireflyClient.add_region_data
~FireflyClient.apply_table_filters
~FireflyClient.call_response
~FireflyClient.change_triview_layout
~FireflyClient.create_image_url
Expand Down Expand Up @@ -76,6 +77,7 @@ FireflyClient
~FireflyClient.show_lab_tab
~FireflyClient.show_table
~FireflyClient.show_xyplot
~FireflyClient.sort_table_column
~FireflyClient.table_highlight_callback
~FireflyClient.upload_data
~FireflyClient.upload_file
Expand Down Expand Up @@ -108,6 +110,7 @@ FireflyClient
.. automethod:: add_listener
.. automethod:: add_mask
.. automethod:: add_region_data
.. automethod:: apply_table_filters
.. automethod:: call_response
.. automethod:: change_triview_layout
.. automethod:: create_image_url
Expand Down Expand Up @@ -149,6 +152,7 @@ FireflyClient
.. automethod:: show_lab_tab
.. automethod:: show_table
.. automethod:: show_xyplot
.. automethod:: sort_table_column
.. automethod:: table_highlight_callback
.. automethod:: upload_data
.. automethod:: upload_file
Expand Down
43 changes: 0 additions & 43 deletions _sources/api/firefly_client.RangeValues.rst.txt

This file was deleted.

3 changes: 1 addition & 2 deletions _sources/reference.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,4 @@ API reference

.. automodapi:: firefly_client
:no-inheritance-diagram:
:no-heading:

:skip: PackageNotFoundError, Env, FFWs, RangeValues
12 changes: 12 additions & 0 deletions _sources/usage/displaying-images.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,3 +221,15 @@ It is possible to create a 3-color composite image using a list of dictionaries
fc.show_fits_3color(threeC,
plot_id='wise_m101',
viewer_id='3C')
Displaying Image from a URL
---------------------------

If you have the URL of an image, you can pass it directly instead of
downloading it and then uploading it to firefly:

.. code-block:: py
image_url = 'http://irsa.ipac.caltech.edu/ibe/data/wise/allsky/4band_p1bm_frm/6a/02206a/149/02206a149-w1-int-1b.fits?center=70,20&size=200pix'
fc.show_fits(url=image_url, plot_id='wise-allsky', title='WISE all-sky')
49 changes: 46 additions & 3 deletions _sources/usage/viewing-tables.rst.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
###############################
Visualizing Tables and Catalogs
-------------------------------
###############################

Tables can be uploaded to the Firefly server with :meth:`FireflyClient.upload_file`,
and displayed in a table viewer component with :meth:`FireflyClient.show_table`.
Expand All @@ -11,18 +12,60 @@ if the table contains recognizable celestial coordinates.
tval = fc.upload_file('m31-2mass-2412-row.tbl')
fc.show_table(file_on_server=tval, tbl_id='m31-table')
Modifying Table Display Parameters
----------------------------------

If it is desired to overlay the table on an image, or to make plots from it,
without showing the table in the viewer, use :meth:`FireflyClient.fetch_table`:

.. code-block:: py
fc.fetch_table(file_on_server=tval, tbl_id='invisible-table')
Alternatively, you can turn off the `visible` parameter in :meth:`FireflyClient.show_table`:

.. code-block:: py
fc.show_table(file_on_server=tval, tbl_id='invisible-table', visible=False)
If the table does not contain celestial coordinates recognized by Firefly,
the image overlay will not appear. BUt if you specifically do not want
the table overlaid on the image, `is_catalog=False` can be specified:
the image overlay will not appear. But if you specifically do not want
the table overlaid on the image, `is_catalog=False` can be specified (it is
`True` by default):

.. code-block:: py
fc.show_table(file_on_server=tval, tbl_id='2mass-tbl', is_catalog=False)
Displaying Table from a URL
---------------------------

If you have the URL of a table, you can pass it directly instead of
downloading it and then uploading it to firefly:

.. code-block:: py
table_url = "http://irsa.ipac.caltech.edu/TAP/sync?FORMAT=IPAC_TABLE&QUERY=SELECT+*+FROM+fp_psc+WHERE+CONTAINS(POINT('J2000',ra,dec),CIRCLE('J2000',70.0,20.0,0.1))=1"
tbl_id_2mass_psc = '2mass-point-source-catalog'
fc.show_table(url=table_url, tbl_id=tbl_id_2mass_psc)
Filtering/Sorting a loaded Table
--------------------------------

After displaying a table in firefly, you can also apply filters on it.
You will need to pass the `tbl_id` of that table and specify `filters` as an
SQL WHERE clause-like string with column names quoted:

.. code-block:: py
fc.apply_table_filters(tbl_id=tbl_id_2mass_psc, filters='"j_m">15 and "j_m"<16 and "j_cmsig"<0.06')
You can sort the table by a column in ascending (`ASC`) or descending (`DESC`)
order:

.. code-block:: py
fc.sort_table_column(tbl_id=tbl_id_2mass_psc, column_name='j_m', sort_direction='ASC')
If a column has sorting, it can be removed by specifying `sort_direction=''`.
2 changes: 1 addition & 1 deletion _static/scripts/bootstrap.js.map

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions _static/scripts/fontawesome.js

Large diffs are not rendered by default.

File renamed without changes.
1 change: 1 addition & 0 deletions _static/scripts/fontawesome.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/scripts/pydata-sphinx-theme.js.map

Large diffs are not rendered by default.

6 changes: 0 additions & 6 deletions _static/styles/bootstrap.css

This file was deleted.

1 change: 0 additions & 1 deletion _static/styles/bootstrap.css.map

This file was deleted.

32 changes: 31 additions & 1 deletion _static/styles/pydata-sphinx-theme.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion _static/styles/pydata-sphinx-theme.css.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7eae9d7

Please sign in to comment.