forked from spacetelescope/aas229_workshop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Better Windows support. Make instructions clearer. Added missing pack…
…ages. More verbose check_env. Other minor edits.
- Loading branch information
Showing
8 changed files
with
100 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ lib64/ | |
parts/ | ||
sdist/ | ||
var/ | ||
src/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,83 @@ | ||
This will be an interactive workshop so be sure to come with a laptop prepared to try out some of the tools that will be discussed and demoed. | ||
This will be an interactive workshop so be sure to come with a laptop prepared to try out some of the tools that will be discussed and demonstrated. | ||
|
||
If you have any problem with the instructions here, please open an issue at https://github.com/spacetelescope/aas229_workshop/issues/ | ||
|
||
# 1. Clone This Repository | ||
|
||
First, download this repository by either doing: | ||
|
||
git clone http://github.com/spacetelescope/aas229_workshop.git | ||
% git clone http://github.com/spacetelescope/aas229_workshop.git | ||
|
||
or by downloading and then expanding the repository file. | ||
|
||
Then, cd into the aas229_workshop directory. | ||
|
||
# 2. Install Anaconda, AstroConda | ||
|
||
Note: please do this ahead of the workshop if possible. | ||
|
||
## 2a. No Anaconda | ||
|
||
### Mac, Linux | ||
|
||
If you don't already have Anaconda installed, install the the Anaconda distribution for Python 3.5, which we have packaged along with some additional software. Downloads for Mac and Linux can be found at: | ||
|
||
http://ssb.stsci.edu/conda/installers/AstroConda-1.0.2-Linux-x86_64.sh | ||
http://ssb.stsci.edu/conda/installers/AstroConda-1.0.2-MacOSX-x86_64.sh | ||
|
||
Note: please do this ahead of the workshop if possible. | ||
These shell installers include both Anaconda and the AstroConda software repository, which contains additional tools that will be shown at the workshop. | ||
|
||
If you have trouble installing using the above files, you will need to download Anaconda separately (https://www.continuum.io/downloads). Then, proceed to Step 2b. | ||
|
||
More information about AstroConda can be found at http://astroconda.readthedocs.io/en/latest/ (currently does not support Windows build). | ||
|
||
### Windows | ||
|
||
You will need to download Anaconda separately (https://www.continuum.io/downloads). Then, proceed to Step 2b. | ||
|
||
## 2b. Already Has Anaconda | ||
|
||
These shell installers include both Anaconda and the AstroConda software repository, which contains additional tools that will be shown at the workshop. If you have trouble installing using the above files (or are using Windows), you will need to download anaconda separately (https://www.continuum.io/downloads), and then install Astroconda on top following the instructions here: http://astroconda.readthedocs.io/en/latest/. | ||
If you have Anaconda already installed, have not used the shell installer in Step 2a, and have not already installed the Astroconda software package, then follow this step. If you've already used the installer in Step 2a, you should already have all the software you need on your machine and you can skip this step. | ||
|
||
If you have Anaconda already installed, and have not used the shell installer above, and have not already installed the Astroconda software package, you can create a special environment for this workshop which contains all the software you will need using the environment file below. If you've already used the installer above you should already have all the software you need on your machine: | ||
Note: You need to be inside the aas229_workshop directory for this to work. | ||
|
||
The command below will create an environment called "aas229-workshop", but you can change that to any other desirable name by replacing the quoted name. | ||
|
||
### Mac, Linux | ||
|
||
You can create a special environment for this workshop which contains all the software you will need using the environment file below: | ||
|
||
% conda env create -n aas229-workshop --file environment.yml | ||
% source activate aas229-workshop | ||
|
||
Note: you need to be inside the aas229_workshop directory for this to work. | ||
|
||
The command above will create an environment called "aas229-workshop", but you can change that to any other desirable name by replacing the quoted name. | ||
### Windows | ||
|
||
Note for windows users: you can use the environment_win.yml file instead, this will not include the ginga or imexam packages: | ||
You can create a special environment for this workshop which contains most of the software you will need using the environment file below: | ||
|
||
% conda env create -n aas229-workshop --file environment_win.yml | ||
% source activate aas229-workshop | ||
% activate aas229-workshop | ||
|
||
Then, you can install the rest of the packages using: | ||
|
||
% pip install -r pip_requirements_win.txt | ||
|
||
Note: Windows distribution currently does not yet support imexam. | ||
|
||
# 3. Check Installation | ||
|
||
Note: You need to be inside the aas229_workshop directory for this to work. | ||
|
||
You can run the check_env.py script to perform a basic check of your Python environment and some of the required dependencies: | ||
|
||
% python check_env.py | ||
|
||
# 4. Pick Up Changes | ||
|
||
To pick up any updates for workshop materials, make sure you are in the aas229_workshop directory and then use the following commands: | ||
|
||
% git fetch origin master | ||
% git rebase origin/master | ||
|
||
The commands above only work if you used git in Step 1. The rebase command will not work properly if you have modified the materials (e.g., running the notebooks). In that case or if you downloaded the materials manually, you will have to update the changed files manually as well; e.g., by downloading the updated file (the RAW format) via GitHub web interface. | ||
|
||
Software covered in this workshop should not need any more updates after Steps 2 and 3. However, in the event of any necessary quick fix, instructions will be given out during the workshop (e.g., using conda or pip commands). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,44 @@ | ||
Using Python for Astronomical Data Analysis in the Era of JWST | ||
================================================================ | ||
|
||
The Space Telescope Science Institute and core developers from the Astropy community are sponsoring a workshop at the January 2017 meeting of the [American Astronomical Society](http://aas.org/) #AAS229 in Grapevine, Texas. | ||
|
||
Check out the [Schedule!](Schedule.md) | ||
Check out the [Schedule](Schedule.md)! | ||
|
||
View the [installation and setup instructions!](Installation_and_Setup.md) | ||
View the [installation and setup instructions](Installation_and_Setup.md)! | ||
|
||
|
||
This workshop will cover the use of Python tools for astronomical data analysis and visualization in the era of JWST, with the focus primarily on UV, Optical and IR data. Data analysis tools for JWST are being written in Python and distributed as part of Astropy, a community developed Python library for astronomy, and its affiliated packages, many of which are designed to be compatible with JWST, HST and other major mission data. | ||
This workshop will cover the use of Python tools for astronomical data analysis and visualization in the era of JWST, with the focus primarily on UV, Optical, and IR data. Data analysis tools for JWST are being written in Python and distributed as part of Astropy, a community developed Python library for astronomy, and its affiliated packages, many of which are designed to be compatible with JWST, HST, and other major mission data. | ||
|
||
Our goals will be to introduce you to the variety of tools which are already available inside the Astropy library as well as provide ample hands-on time during which you’ll be able to explore the science analysis capabilities which the greater python environment and community provide. | ||
Our goals will be to introduce you to the variety of tools which are already available inside the Astropy library as well as provide ample hands-on time during which you’ll be able to explore the science analysis capabilities which the greater Python environment and community provide. | ||
|
||
We plan on accomplishing this with focused talks on the main tools followed by more extended instructor guided tutorials where you’ll be able to try them out for yourself and ask questions in the company of expert users and developers. Instructions on installing the necessary software will be provided before and during the workshop, however those attending should make every effort to install the software ahead of time. Some basic Python experience is highly recommended to be able to effectively participate in the exercises, but those without Python experience will still get much useful information about the capabilities for data analysis in Python and perhaps pick up some pointers on where they can get started learning more scientific Python and integrating it into their work flow. | ||
We plan on accomplishing this with focused talks on the main tools followed by more extended instructor guided tutorials where you’ll be able to try them out for yourself and ask questions in the company of expert users and developers. Instructions on installing the necessary software will be provided before and during the workshop, however those attending should make every effort to install the software ahead of time. Some basic Python experience is highly recommended to be able to effectively participate in the exercises, but those without Python experience will still get much useful information about the capabilities for data analysis in Python and perhaps pick up some pointers on where they can get started learning more scientific Python and integrating it into their work flow. | ||
|
||
If you would like to get a head start with the tools we will be concentrating on you can check out their documentation on readthedocs: | ||
|
||
* [Physical Units and Quantities](http://docs.astropy.org/en/stable/units/index.html) | ||
* [Basics on accessing data files, both FITS and ascii tables](http://docs.astropy.org/en/stable/io/unified.html) | ||
* [Constants](http://docs.astropy.org/en/stable/constants/index.html) | ||
* [Coordinate utilities](http://docs.astropy.org/en/stable/coordinates/index.html) | ||
* [Basics on accessing data files, both FITS and ASCII tables](http://docs.astropy.org/en/stable/io/unified.html) | ||
* [Modeling and Fitting](http://docs.astropy.org/en/stable/modeling/index.html) | ||
* [Astropy WCS](http://docs.astropy.org/en/stable/wcs/index.html) | ||
* [Generalized WCS](http://gwcs.readthedocs.io/en/stable/) | ||
* Interactive visualization and analysis tools: | ||
* [Glue](http://glueviz.org/) | ||
* [imexam](http://imexam.readthedocs.io/) | ||
* [Ginga](http://ginga.readthedocs.io) | ||
* spectroscopy tools such as [specviz](https://github.com/spacetelescope/specviz) | ||
* Photometric tools, such as [photutils](http://photutils.readthedocs.io/) | ||
* [imexam](http://imexam.readthedocs.io/) | ||
* [Ginga](http://ginga.readthedocs.io/) and [stginga](http://stginga.readthedocs.io/) | ||
* [Glue](http://glueviz.org/) | ||
* Spectroscopy tools, such as [SpecViz](http://specviz.readthedocs.io/en/latest/) | ||
|
||
|
||
|
||
For those of you just starting out in using python for astronomy, or looking for more information consider checking out the resources listed below and begin exploring the possibilities! | ||
For those of you just starting out in using Python for astronomy, or looking for more information consider checking out the resources listed below and begin exploring the possibilities! | ||
|
||
The Astropy website, go here for a good overview and documentation about the project: http://www.astropy.org/ | ||
|
||
Ready to get into the action? Check out some of these tutorials: http://www.astropy.org/astropy-tutorials/ | ||
|
||
Python For Astronomers, where the emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research. https://python4astronomers.github.io/ | ||
Python For Astronomers, where the emphasis is on using Python to solve real-world problems that astronomers are likely to encounter in research: https://python4astronomers.github.io/ | ||
|
||
If you have issues getting set up, you can also run the notebooks on mybinder.org: | ||
[](http://mybinder.org:/repo/spacetelescope/aas229_workshop) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
-e git+https://github.com/astropy/[email protected]#egg=specutils | ||
-e git+https://github.com/ejeschke/[email protected]#egg=ginga | ||
-e git+https://github.com/spacetelescope/[email protected]#egg=gwcs | ||
-e git+https://github.com/spacetelescope/specviz.git@master#egg=specviz | ||
-e git+https://github.com/spacetelescope/[email protected]#egg=stginga |