downloadSPARCdata

A module for handling the downloading of SPARC data in notebook 09_Widget_SPARC_Galaxies.ipynb.

ToC: Functions

downloadsparc()

Downloads rotation curve data for Newtonian Mass Models (Rotmod_LTG.zip) from the SPARC website: http://astroweb.cwru.edu/SPARC/.

unzipfiles()

Extracts all files of the zipped rotation curve data (Rotmod_LTG.zip), downloaded from the SPARC website: http://astroweb.cwru.edu/SPARC/.

on_button_clicked_YES(_)

Button labeled as 'YES' to download and unzip SPARC data.

ToC: Attributes

buttonYES

Button, WITHOUT display box, for downloading and unzipping SPARC data.

out

A handler for widget output.

displaybuttons

Visible button for downloading and unzipping SPARC data.

options

A list of galaxies to choose from.

form_item_layout

A layout to be used by galaxyoptions for the dropdown.

dropdownmenu

A dropdown menu for selecting a galaxy.

galaxyoptions

A displayable box, including a dropdown menu, for selecting a galaxy.

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 buttonYES that 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/sparc directory, which is populated by the downloadsparc and unzipfiles functions.

downloadSPARCdata.form_item_layout

A layout to be used by galaxyoptions for the dropdown.

Type

ipywidgets.widgets.widget_layout.Layout

downloadSPARCdata.dropdownmenu

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