downloadSPARCdata
A module for handling the downloading of SPARC data in notebook 09_Widget_SPARC_Galaxies.ipynb.
ToC: Functions
Downloads rotation curve data for Newtonian Mass Models (Rotmod_LTG.zip) from the SPARC website: http://astroweb.cwru.edu/SPARC/. |
|
Extracts all files of the zipped rotation curve data (Rotmod_LTG.zip), downloaded from the SPARC website: http://astroweb.cwru.edu/SPARC/. |
|
Button labeled as 'YES' to download and unzip SPARC data. |
ToC: Attributes
Button, WITHOUT display box, for downloading and unzipping SPARC data. |
|
A handler for widget output. |
|
Visible button for downloading and unzipping SPARC data. |
|
A list of galaxies to choose from. |
|
A layout to be used by |
|
A dropdown menu for selecting a galaxy. |
|
A displayable box, including |
Members
- downloadSPARCdata.downloadsparc()
Downloads rotation curve data for Newtonian Mass Models (Rotmod_LTG.zip) from the SPARC website: http://astroweb.cwru.edu/SPARC/.
- Parameters:
None
- Returns:
None
- Example:
>>> downloadsparc() Download URL: http://astroweb.cwru.edu/SPARC/Rotmod_LTG.zip. Downloaded zip file successfully.
- downloadSPARCdata.unzipfiles()
Extracts all files of the zipped rotation curve data (Rotmod_LTG.zip), downloaded from the SPARC website: http://astroweb.cwru.edu/SPARC/.
- Parameters:
None
- Returns:
None
- Example:
>>> downloadsparc() Download URL: http://astroweb.cwru.edu/SPARC/Rotmod_LTG.zip. Downloaded zip file successfully. >>> unzipfiles() Data files unzipped successfully. SPARC data file location: '/mnt/c/Users/you/Documents/GitHub/galactic-spin-W1/binder/data/sparc/'.
- downloadSPARCdata.buttonYES
Button, WITHOUT display box, for downloading and unzipping SPARC data.
- Type:
ipywidgets.widgets.widget_button.Button
- downloadSPARCdata.out
A handler for widget output.
- Type:
ipywidgets.widgets.widget_output.Output
- downloadSPARCdata.on_button_clicked_YES(_)
Button labeled as ‘YES’ to download and unzip SPARC data.
- Parameters:
None
- Returns:
None
- downloadSPARCdata.displaybuttons
Visible button for downloading and unzipping SPARC data.
Version of
buttonYESthat can be displayed without issue.- Type:
ipywidgets.widgets.widget_box.VBox
- downloadSPARCdata.options = []
A list of galaxies to choose from.
- Type:
list
See also
This list is generated based on the files present in the
./data/sparcdirectory, which is populated by thedownloadsparcandunzipfilesfunctions.
- downloadSPARCdata.form_item_layout
A layout to be used by
galaxyoptionsfor thedropdown.- Type:
ipywidgets.widgets.widget_layout.Layout
A dropdown menu for selecting a galaxy.
- Type:
ipywidgets.widgets.widget_selection.Dropdown
- downloadSPARCdata.galaxyoptions
A displayable box, including
a dropdown menu, for selecting a galaxy.- Type:
ipywidgets.widgets.widget_box.Box