You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The packages [LsqFit](https://julianlsolvers.github.io/LsqFit.jl/latest/) and [GLM](https://juliastats.org/GLM.jl/v0.11/#Minimal-examples-1) (for generalized linear models) contain functions for performing and evaluating these types of linear fits.
144
+
The packages [LsqFit](https://julianlsolvers.github.io/LsqFit.jl/dev/) and [GLM](https://juliastats.org/GLM.jl/v0.11/#Minimal-examples-1) (for generalized linear models) contain functions for performing and evaluating these types of linear fits.
Copy file name to clipboardExpand all lines: docs/src/tutorials/jwst-image-scale-bar.md
+9-10Lines changed: 9 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,8 @@ Let's get started!
6
6
## Packages
7
7
8
8
*[`Downloads`](https://docs.julialang.org/en/v1/stdlib/Downloads/): we'll use this built-in Julia standard library to download the raw image data
9
-
*[`AstroImages`](http://juliaastro.org/AstroImages.jl/dev/): we'll use this package to load and display the image
10
-
*[`Plots`](https://docs.juliaplots.org/latest/): we'll use this package to display coordinates along the image and add the scalebar
9
+
*[`AstroImages`](http://juliaastro.org/AstroImages/stable/): we'll use this package to load and display the image
10
+
*[`Plots`](https://docs.juliaplots.org/stable/): we'll use this package to display coordinates along the image and add the scalebar
11
11
12
12
You can install the necessary packages by running Julia, and typing `]` to enter Pkg-mode. Then: `add AstroImages Plots`.
13
13
Alternatively, you can run `using Pkg; Pkg.add(["AstroImages", "Plots"])`.
@@ -37,7 +37,7 @@ fname = Downloads.download(
37
37
```
38
38
39
39
## Loading the image
40
-
We can use [`AstroImages.jl`](http://juliaastro.org/AstroImages.jl/dev/) to load the image.
40
+
We can use [`AstroImages.jl`](http://juliaastro.org/AstroImages/stable/) to load the image.
41
41
42
42
```julia
43
43
using AstroImages
@@ -57,7 +57,7 @@ size(carina)
57
57
```
58
58
Wow, that's over 120 megapixels!
59
59
60
-
AstroImages will fall back to downscaling it automatically before displaying it using [`ImageTransformations.restrict`](https://juliaimages.org/latest/function_reference/#ImageTransformations.restrict), but let's make our lives simpler and just use every 10th pixel:
60
+
AstroImages will fall back to downscaling it automatically before displaying it using [`ImageTransformations.restrict`](https://juliaimages.org/stable/function_reference/#ImageTransformations.restrict), but let's make our lives simpler and just use every 10th pixel:
Since we didn't put a semi-colon, the image was displayed. This works automatically if you use the VS Code editor, Jupyter notebooks, or Pluto Notebooks. If you're using a terminal, you can use [ElectronDisplay.jl](https://github.com/queryverse/ElectronDisplay.jl) or [ImageView.jl](https://github.com/JuliaImages/ImageView.jl) to open an interactive window.
68
68
69
-
[`imview`](http://juliaastro.org/AstroImages.jl/dev/api/#AstroImages.imview) is the function that was called automatically to display the image, but we can call it ourselves if we want to customize the display.
69
+
[`AstroImages.imview`](@extref) is the function that was called automatically to display the image, but we can call it ourselves if we want to customize the display.
70
70
We can make the image pop a little more by adjusting the display limits, or `clims`. These can be either a tuple of min and max values (i.e. `(0.0, 100.0)`) or a function to calculate them for us based on some criteria. We'll adjust the limits to remove the top and bottom 1% of all pixels:
71
71
72
72
```julia
@@ -92,7 +92,7 @@ RA---TAN
92
92
93
93
This shows that the coordinate type for the first axis is "RA---TAN".
94
94
95
-
Now, we'll combine AstroImages with the [Plots.jl](https://docs.juliaplots.org/latest/) library to display these coordinates.
95
+
Now, we'll combine AstroImages with the [Plots.jl](https://docs.juliaplots.org/stable/) library to display these coordinates.

115
115
116
116
117
-
Full documentation for the `implot` function is available in the [AstroImages.jl docs](http://juliaastro.org/AstroImages.jl/dev/api/#AstroImages.implot).
118
-
117
+
See [`AstroImages.implot`](@extref) for full documentation.
119
118
120
119
## Adding a Scalebar
121
120
@@ -213,6 +212,6 @@ annotate!(
213
212
214
213
To save the image, just run `savefig("output.png")`. `pdf`, `svg`, and other file formats are also supported.
215
214
216
-
To learn more about displaying images and world coordinates, see the [AstroImages.jl documentation](http://juliaastro.org/AstroImages.jl/dev/).
215
+
To learn more about displaying images and world coordinates, see the [AstroImages.jl documentation](http://juliaastro.org/AstroImages/stable/).
217
216
218
-
For more on plotting in general, see the [Plots.jl documentation](https://docs.juliaplots.org/latest/).
217
+
For more on plotting in general, see the [Plots.jl documentation](https://docs.juliaplots.org/stable/).
Copy file name to clipboardExpand all lines: docs/src/tutorials/tabular-data.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,10 @@ A wide range of tabular data formats are supported in Julia under a common [Tabl
11
11
12
12
## Packages
13
13
14
-
*[`FITSIO`](http://juliaastro.org/FITSIO.jl/stable/): we'll use this package to load a table stored in a FITS file
14
+
*[`FITSIO`](http://juliaastro.org/FITSIO/stable/): we'll use this package to load a table stored in a FITS file
15
15
*[`DataFrames`](https://dataframes.juliadata.org/stable/): we'll use this package to examine and manipulate the table
16
-
*[`Plots`](https://docs.juliaplots.org/latest/): we'll use this package to visualize the contents of the table
17
-
*[`AstroLib`](https://juliaastro.org/AstroLib.jl/stable/): general utility package. We'll use a helper function to compute a map projection.
16
+
*[`Plots`](https://docs.juliaplots.org/stable/): we'll use this package to visualize the contents of the table
17
+
*[`AstroLib`](https://juliaastro.org/AstroLib/stable/): general utility package. We'll use a helper function to compute a map projection.
18
18
19
19
You can install the necessary packages by running Julia, and typing `]` to enter Pkg-mode. Then: `add FITSIO DataFrames Plots AstroLib`.
20
20
Alternatively, you can run `using Pkg; Pkg.add(["FITSIO", "DataFrames", "Plots", "AstroLib"])`.
@@ -29,7 +29,7 @@ If you're using [Pluto notebooks](https://github.com/fonsp/Pluto.jl), installing
29
29
30
30
The table in question is hosted alongside the [article](https://iopscience.iop.org/article/10.3847/1538-4365/abf93c). Go to Table 4 and click the link at the bottom to download it in FITS format. You'll need to uncompress the archive to see the `HGCA_vEDR3.fits` file.
31
31
32
-
FITS tables can be loaded using the [FITSIO](http://juliaastro.org/FITSIO.jl/stable/) package or the [AstroImages](http://juliaastro.org/AstroImages.jl/dev/) package which wraps it.
32
+
FITS tables can be loaded using the [FITSIO](http://juliaastro.org/FITSIO/stable/) package or the [AstroImages](http://juliaastro.org/AstroImages/stable/) package which wraps it.
33
33
34
34
35
35
## Loading the table
@@ -184,9 +184,9 @@ julia> scatter(
184
184
)
185
185
```
186
186
187
-
Let's improve this plot by using a different map projection. We can make this conversion using [AstroLib.jl](https://juliaastro.org/AstroLib.jl/stable/).
187
+
Let's improve this plot by using a different map projection. We can make this conversion using [AstroLib.jl](https://juliaastro.org/AstroLib/stable/).
188
188
189
-
The function [`aitoff`](https://juliaastro.org/AstroLib.jl/stable/ref/#AstroLib.aitoff-Tuple{Real,%20Real}) takes longitude and latitude (or in this case, right-ascension and delcination) and returns a new position using an Aitoff projection.
189
+
The function [`AstroLib.aitoff`](@extref) takes longitude and latitude (or in this case, right-ascension and delcination) and returns a new position using an Aitoff projection.
190
190
191
191
```julia-repl
192
192
julia> using AstroLib
@@ -232,4 +232,4 @@ julia> scatter(
232
232
We can save the plot using `savefig("myplot.pdf")`. `png`, `svg`, and other formats are also supported.
233
233
234
234
235
-
For more on plotting in general, see the [Plots.jl documentation](https://docs.juliaplots.org/latest/).
235
+
For more on plotting in general, see the [Plots.jl documentation](https://docs.juliaplots.org/stable/).
0 commit comments