Skip to content

Commit

Permalink
build based on ad4fb33
Browse files Browse the repository at this point in the history
  • Loading branch information
Documenter.jl committed Jun 19, 2024
1 parent 4f8e74e commit ccb9329
Show file tree
Hide file tree
Showing 58 changed files with 18,244 additions and 18,245 deletions.
2 changes: 1 addition & 1 deletion dev/.documenter-siteinfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-06-12T21:08:08","documenter_version":"1.4.1"}}
{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-06-19T05:03:54","documenter_version":"1.4.1"}}
22 changes: 11 additions & 11 deletions dev/api/index.html

Large diffs are not rendered by default.

6,262 changes: 3,131 additions & 3,131 deletions dev/guide/contours/8006e13b.svg → dev/guide/contours/1a75a8fb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,326 changes: 663 additions & 663 deletions dev/guide/contours/0e07feba.svg → dev/guide/contours/2f25681d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,606 changes: 3,303 additions & 3,303 deletions dev/guide/contours/05a07b4b.svg → dev/guide/contours/3abd5c94.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6,132 changes: 3,066 additions & 3,066 deletions dev/guide/contours/d1fe58f7.svg → dev/guide/contours/3e789598.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,228 changes: 1,614 additions & 1,614 deletions dev/guide/contours/7aa094a5.svg → dev/guide/contours/4c56ce61.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
766 changes: 383 additions & 383 deletions dev/guide/contours/3a5bfdc4.svg → dev/guide/contours/79d16210.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3,246 changes: 1,623 additions & 1,623 deletions dev/guide/contours/32d757ef.svg → dev/guide/contours/ceb35be9.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions dev/guide/contours/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"herca-radio.fits"
)

herca = load(&quot;herca-radio.fits&quot;)</code></pre><img src="f774f71f.png" alt="Example block output"/><p>Create a contour plot</p><pre><code class="language-julia hljs">contour(herca)</code></pre><img src="8006e13b.svg" alt="Example block output"/><p>Create a filled contour plot</p><pre><code class="language-julia hljs">contourf(herca)</code></pre><img src="d1fe58f7.svg" alt="Example block output"/><p>Specify the number of levels</p><pre><code class="language-julia hljs">contour(herca, levels=5)</code></pre><img src="0e07feba.svg" alt="Example block output"/><p>Specify specific levels</p><pre><code class="language-julia hljs">contour(herca, levels=[1, 1000, 5000])</code></pre><img src="05a07b4b.svg" alt="Example block output"/><p>Overplot contours on image:</p><pre><code class="language-julia hljs">implot(herca)
contour!(herca, levels=4, color=:cyan)</code></pre><img src="3a5bfdc4.svg" alt="Example block output"/><h2 id="Using-Contour.jl"><a class="docs-heading-anchor" href="#Using-Contour.jl">Using Contour.jl</a><a id="Using-Contour.jl-1"></a><a class="docs-heading-anchor-permalink" href="#Using-Contour.jl" title="Permalink"></a></h2><p>For more control over how contours are calculated and plotted, you can use the <a href="https://juliageometry.github.io/Contour.jl/stable/">Contour.jl</a> package:</p><pre><code class="language-julia hljs">using Contour
herca = load(&quot;herca-radio.fits&quot;)</code></pre><img src="f774f71f.png" alt="Example block output"/><p>Create a contour plot</p><pre><code class="language-julia hljs">contour(herca)</code></pre><img src="1a75a8fb.svg" alt="Example block output"/><p>Create a filled contour plot</p><pre><code class="language-julia hljs">contourf(herca)</code></pre><img src="3e789598.svg" alt="Example block output"/><p>Specify the number of levels</p><pre><code class="language-julia hljs">contour(herca, levels=5)</code></pre><img src="2f25681d.svg" alt="Example block output"/><p>Specify specific levels</p><pre><code class="language-julia hljs">contour(herca, levels=[1, 1000, 5000])</code></pre><img src="3abd5c94.svg" alt="Example block output"/><p>Overplot contours on image:</p><pre><code class="language-julia hljs">implot(herca)
contour!(herca, levels=4, color=:cyan)</code></pre><img src="79d16210.svg" alt="Example block output"/><h2 id="Using-Contour.jl"><a class="docs-heading-anchor" href="#Using-Contour.jl">Using Contour.jl</a><a id="Using-Contour.jl-1"></a><a class="docs-heading-anchor-permalink" href="#Using-Contour.jl" title="Permalink"></a></h2><p>For more control over how contours are calculated and plotted, you can use the <a href="https://juliageometry.github.io/Contour.jl/stable/">Contour.jl</a> package:</p><pre><code class="language-julia hljs">using Contour
herca = load(&quot;herca-radio.fits&quot;)

p = implot(herca, cmap=nothing, colorbar=false)
Expand All @@ -24,7 +24,7 @@
end
end

p</code></pre><img src="7aa094a5.svg" alt="Example block output"/><p>Here we plot just the contours, now in world coordinates:</p><pre><code class="language-julia hljs">p = plot(xlabel=&quot;RA&quot;, ylabel=&quot;DEC&quot;)
p</code></pre><img src="4c56ce61.svg" alt="Example block output"/><p>Here we plot just the contours, now in world coordinates:</p><pre><code class="language-julia hljs">p = plot(xlabel=&quot;RA&quot;, ylabel=&quot;DEC&quot;)
for cl in levels(contours(dims(herca)..., float.(herca)))
lvl = level(cl) # the z-value of this contour level
for line in lines(cl)
Expand All @@ -35,4 +35,4 @@
plot!(p, getindex.(worldcoords,1), getindex.(worldcoords,2), line_z=lvl, label=&quot;&quot;)
end
end
p</code></pre><img src="32d757ef.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../photometry/">« Extracting Photometry</a><a class="docs-footer-nextpage" href="../../api/">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 12 June 2024 21:05">Wednesday 12 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
p</code></pre><img src="ceb35be9.svg" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../photometry/">« Extracting Photometry</a><a class="docs-footer-nextpage" href="../../api/">API »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 19 June 2024 05:01">Wednesday 19 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions dev/guide/image-filtering/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
cmap=:seaborn_rocket_gradient,
clims=(-50,1500),
stretch=asinhstretch
)</code></pre><img src="010c8dcc.svg" alt="Example block output"/><h2 id="Median-Filtering"><a class="docs-heading-anchor" href="#Median-Filtering">Median Filtering</a><a id="Median-Filtering-1"></a><a class="docs-heading-anchor-permalink" href="#Median-Filtering" title="Permalink"></a></h2><p>In addition to linear filters using <code>imfilter</code>, ImageFiltering.jl also includes a great function called <code>mapwindow</code>. This functions allows you to map an arbitrary function over a patch of an image.</p><p>Let&#39;s use <code>mapwindow</code> to perform a median filter. This is a great way to suppress salt and pepper noise, or remove stars from some images.</p><p>We&#39;ll use a Hubble picture of the Eagle nebula:</p><pre><code class="language-julia hljs">using AstroImages
)</code></pre><img src="b70ac4d1.svg" alt="Example block output"/><h2 id="Median-Filtering"><a class="docs-heading-anchor" href="#Median-Filtering">Median Filtering</a><a id="Median-Filtering-1"></a><a class="docs-heading-anchor-permalink" href="#Median-Filtering" title="Permalink"></a></h2><p>In addition to linear filters using <code>imfilter</code>, ImageFiltering.jl also includes a great function called <code>mapwindow</code>. This functions allows you to map an arbitrary function over a patch of an image.</p><p>Let&#39;s use <code>mapwindow</code> to perform a median filter. This is a great way to suppress salt and pepper noise, or remove stars from some images.</p><p>We&#39;ll use a Hubble picture of the Eagle nebula:</p><pre><code class="language-julia hljs">using AstroImages
using ImageFiltering

fname = download(
Expand All @@ -28,4 +28,4 @@
)

eagle673 = load(&quot;eagle-673nmos.fits&quot;)</code></pre><img src="ac367981.png" alt="Example block output"/><p>The data is originally from <a href="https://esahubble.org/projects/fits_liberator/eagledata/">https://esahubble.org/projects/fits_liberator/eagledata/</a>.</p><p>We can apply a median filter using <code>mapwindow</code>. Make sure the patch size is an odd number in each direction!</p><pre><code class="language-julia hljs">using Statistics
medfilt = copyheader(eagle673, mapwindow(median, eagle673, (11,11)))</code></pre><img src="f5098f82.png" alt="Example block output"/><p>We use <code>copyheader</code> here since <code>mapwindow</code> returns a plain array and drops the image meta data.</p><p>We can put this side by side with the original to see how some of the faint stars have been removed from the image:</p><pre><code class="language-julia hljs">imview([eagle673[1:800,1:800]; medfilt[1:800,1:800]])</code></pre><img src="c448a974.png" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../manual/converting-from-rgb/">« Converting from RGB</a><a class="docs-footer-nextpage" href="../image-transformations/">Transforming Images »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 12 June 2024 21:05">Wednesday 12 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
medfilt = copyheader(eagle673, mapwindow(median, eagle673, (11,11)))</code></pre><img src="f5098f82.png" alt="Example block output"/><p>We use <code>copyheader</code> here since <code>mapwindow</code> returns a plain array and drops the image meta data.</p><p>We can put this side by side with the original to see how some of the faint stars have been removed from the image:</p><pre><code class="language-julia hljs">imview([eagle673[1:800,1:800]; medfilt[1:800,1:800]])</code></pre><img src="c448a974.png" alt="Example block output"/></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../../manual/converting-from-rgb/">« Converting from RGB</a><a class="docs-footer-nextpage" href="../image-transformations/">Transforming Images »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 19 June 2024 05:01">Wednesday 19 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
2 changes: 1 addition & 1 deletion dev/guide/image-transformations/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
AstroImages.set_cmap!(:ice)
AstroImages.set_stretch!(asinhstretch)

imview(antblue)</code></pre><img src="dca41c99.png" alt="Example block output"/><h2 id="Rotations"><a class="docs-heading-anchor" href="#Rotations">Rotations</a><a id="Rotations-1"></a><a class="docs-heading-anchor-permalink" href="#Rotations" title="Permalink"></a></h2><p>We can rotate images using the <code>imrotate</code> function.</p><pre><code class="language-julia hljs">imrotate(antblue, 3π/4) |&gt; imview</code></pre><img src="e7d69592.png" alt="Example block output"/><p>The rotation angle is in radians, but you can use the function <code>rad2deg</code> to convert from degrees.</p><h2 id="Resizing"><a class="docs-heading-anchor" href="#Resizing">Resizing</a><a id="Resizing-1"></a><a class="docs-heading-anchor-permalink" href="#Resizing" title="Permalink"></a></h2><p>We can resize images using the <code>imresize</code> function:</p><pre><code class="language-julia hljs">imresize(antblue, ratio=0.2) |&gt; imview</code></pre><img src="47103c6e.png" alt="Example block output"/><h2 id="Arbitrary-Transformations"><a class="docs-heading-anchor" href="#Arbitrary-Transformations">Arbitrary Transformations</a><a id="Arbitrary-Transformations-1"></a><a class="docs-heading-anchor-permalink" href="#Arbitrary-Transformations" title="Permalink"></a></h2><p>Arbitrary transformations can be performed using ImageTransformation&#39;s <code>warp</code> function. See the documentation linked above for more details.</p><h2 id="Mapping-from-One-Coordinate-System-to-Another"><a class="docs-heading-anchor" href="#Mapping-from-One-Coordinate-System-to-Another">Mapping from One Coordinate System to Another</a><a id="Mapping-from-One-Coordinate-System-to-Another-1"></a><a class="docs-heading-anchor-permalink" href="#Mapping-from-One-Coordinate-System-to-Another" title="Permalink"></a></h2><p>For transforming an image from one coordiante system (say, RA &amp; DEC) to another (e.g., galactic lattitude &amp; logitude), see <a href="../reproject/#Reprojecting-Images">Reprojecting Images</a>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../image-filtering/">« Blurring &amp; Filtering Images</a><a class="docs-footer-nextpage" href="../reproject/">Reprojecting Images »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 12 June 2024 21:05">Wednesday 12 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
imview(antblue)</code></pre><img src="dca41c99.png" alt="Example block output"/><h2 id="Rotations"><a class="docs-heading-anchor" href="#Rotations">Rotations</a><a id="Rotations-1"></a><a class="docs-heading-anchor-permalink" href="#Rotations" title="Permalink"></a></h2><p>We can rotate images using the <code>imrotate</code> function.</p><pre><code class="language-julia hljs">imrotate(antblue, 3π/4) |&gt; imview</code></pre><img src="e7d69592.png" alt="Example block output"/><p>The rotation angle is in radians, but you can use the function <code>rad2deg</code> to convert from degrees.</p><h2 id="Resizing"><a class="docs-heading-anchor" href="#Resizing">Resizing</a><a id="Resizing-1"></a><a class="docs-heading-anchor-permalink" href="#Resizing" title="Permalink"></a></h2><p>We can resize images using the <code>imresize</code> function:</p><pre><code class="language-julia hljs">imresize(antblue, ratio=0.2) |&gt; imview</code></pre><img src="47103c6e.png" alt="Example block output"/><h2 id="Arbitrary-Transformations"><a class="docs-heading-anchor" href="#Arbitrary-Transformations">Arbitrary Transformations</a><a id="Arbitrary-Transformations-1"></a><a class="docs-heading-anchor-permalink" href="#Arbitrary-Transformations" title="Permalink"></a></h2><p>Arbitrary transformations can be performed using ImageTransformation&#39;s <code>warp</code> function. See the documentation linked above for more details.</p><h2 id="Mapping-from-One-Coordinate-System-to-Another"><a class="docs-heading-anchor" href="#Mapping-from-One-Coordinate-System-to-Another">Mapping from One Coordinate System to Another</a><a id="Mapping-from-One-Coordinate-System-to-Another-1"></a><a class="docs-heading-anchor-permalink" href="#Mapping-from-One-Coordinate-System-to-Another" title="Permalink"></a></h2><p>For transforming an image from one coordiante system (say, RA &amp; DEC) to another (e.g., galactic lattitude &amp; logitude), see <a href="../reproject/#Reprojecting-Images">Reprojecting Images</a>.</p></article><nav class="docs-footer"><a class="docs-footer-prevpage" href="../image-filtering/">« Blurring &amp; Filtering Images</a><a class="docs-footer-nextpage" href="../reproject/">Reprojecting Images »</a><div class="flexbox-break"></div><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="auto">Automatic (OS)</option><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 1.4.1 on <span class="colophon-date" title="Wednesday 19 June 2024 05:01">Wednesday 19 June 2024</span>. Using Julia version 1.10.4.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>
Loading

0 comments on commit ccb9329

Please sign in to comment.