Skip to content

Commit

Permalink
addressing review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
zoghbi-a committed Mar 13, 2024
1 parent b5a3138 commit ff1d4f4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions analysis-rxte-spectra.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ nspec = 500

# The spectra will be saved in a list
spectra = []
for file in filenames[:nspec]:
for file in tqdm(filenames[:nspec]):
# clear out any previously loaded dataset
xspec.AllData.clear()
# move to the folder containing the spectrum before loading it
os.chdir(os.dirname(file))
os.chdir(os.path.dirname(file))
spec = xspec.Spectrum(file)
os.chdir(cwd)

Expand Down
9 changes: 5 additions & 4 deletions misc-wwt-demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jupyter:
format_version: '1.3'
jupytext_version: 1.16.0
kernelspec:
display_name: (heasoft)
display_name: (root) *
language: python
name: conda-env-heasoft-py
name: conda-root-py
---

# A Demo for Using WWT on Sciserver
Expand All @@ -35,7 +35,7 @@ We will first launch the app, center it on the **Crab**, then search for Chandra
For more about how to use the latter, see the [Getting Started](getting-started.md), [Data Access](data-access.md) and [Finding and Downloading Data](data-find-download.md) tutorials.

<div style='color: #333; background: #ffffdf; padding:20px; border: 4px solid #fadbac'>
This notebook requires the <code>pywwt</code>. One Sciserver, it is available in the <code>heasoft</code> conda environment . You should see (heasoft) at the top right of the notebook. If not, click there and select it.
This notebook requires the <code>pywwt</code>. One Sciserver, it is available in the <code>root</code> conda environment . You should see (heasoft) at the top right of the notebook. If not, click there and select it.
<br>
If running outside sciserver, follow <a href='https://pywwt.readthedocs.io/en/stable/installation.html'>these installation instructions</a>.
</div>
Expand All @@ -58,6 +58,7 @@ First, import the required modules, then launch the app.
<!-- #endregion -->

```python
import numpy as np
from astropy.io import fits
from astropy.utils.data import download_file
from astropy import units as u
Expand Down Expand Up @@ -155,6 +156,6 @@ cutout.plot_on_original(color='white')
So now let's add it to the viewing widget on top of the background Halpha emission:

```python
layer2 = wwt.layers.add_image_layer(image=(cutout.data,cutout.wcs))
layer2 = wwt.layers.add_image_layer(image=(np.ascontiguousarray(cutout.data),cutout.wcs))
layer2.opacity = 0.5
```
2 changes: 1 addition & 1 deletion quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ except ModuleNotFoundError:
## 3. Finding and Exploring the data

The Heasarc data holdings can be searched and explored in different ways:
- Using [Xamin Web Interface](https://heasarc.gsfc.nasa.gov/xamin/xamin.jsp).
- Using [Xamin Web Interface](https://heasarc.gsfc.nasa.gov/xamin).

- Using a virtual observatory (VO) client such as [pyVO](https://github.com/astropy/pyvo) (see below) or [Topcat](http://www.star.bris.ac.uk/~mbt/topcat/).

Expand Down

0 comments on commit ff1d4f4

Please sign in to comment.