Skip to content

Commit

Permalink
deploy: 9a72f08
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorStoneAstro committed Oct 11, 2023
0 parents commit 5361881
Show file tree
Hide file tree
Showing 422 changed files with 81,970 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .buildinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 060cbbd8ea6b8c947c6c595b60eccb00
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file added .doctrees/AdvancedPSFModels.doctree
Binary file not shown.
Binary file added .doctrees/ConstrainedModels.doctree
Binary file not shown.
Binary file added .doctrees/CustomModels.doctree
Binary file not shown.
Binary file added .doctrees/FittingMethods.doctree
Binary file not shown.
Binary file added .doctrees/GettingStarted.doctree
Binary file not shown.
Binary file added .doctrees/GroupModels.doctree
Binary file not shown.
Binary file added .doctrees/JointModels.doctree
Binary file not shown.
Binary file added .doctrees/ModelZoo.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.fit.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.image.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.models.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.param.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.parse_config.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.plots.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.utils.conversions.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.utils.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.utils.initialize.doctree
Binary file not shown.
Binary file added .doctrees/astrophot.utils.isophote.doctree
Binary file not shown.
Binary file added .doctrees/citation.doctree
Binary file not shown.
Binary file added .doctrees/configfile_interface.doctree
Binary file not shown.
Binary file added .doctrees/contributing.doctree
Binary file not shown.
Binary file added .doctrees/coordinates.doctree
Binary file not shown.
Binary file added .doctrees/environment.pickle
Binary file not shown.
Binary file added .doctrees/getting_started.doctree
Binary file not shown.
Binary file added .doctrees/index.doctree
Binary file not shown.
Binary file added .doctrees/install.doctree
Binary file not shown.
Binary file added .doctrees/license.doctree
Binary file not shown.
Binary file added .doctrees/modules.doctree
Binary file not shown.
584 changes: 584 additions & 0 deletions .doctrees/nbsphinx/AdvancedPSFModels.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/AdvancedPSFModels_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/AdvancedPSFModels_14_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/AdvancedPSFModels_3_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/AdvancedPSFModels_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/AdvancedPSFModels_9_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
290 changes: 290 additions & 0 deletions .doctrees/nbsphinx/ConstrainedModels.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/ConstrainedModels_10_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/ConstrainedModels_6_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/ConstrainedModels_7_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
428 changes: 428 additions & 0 deletions .doctrees/nbsphinx/CustomModels.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/CustomModels_12_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/CustomModels_14_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/CustomModels_19_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/CustomModels_5_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/CustomModels_6_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/CustomModels_8_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,122 changes: 1,122 additions & 0 deletions .doctrees/nbsphinx/FittingMethods.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/FittingMethods_10_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_12_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_16_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_19_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_21_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_22_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_2_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_4_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_6_0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/FittingMethods_8_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,444 changes: 1,444 additions & 0 deletions .doctrees/nbsphinx/GettingStarted.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/GettingStarted_10_1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .doctrees/nbsphinx/GettingStarted_14_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_16_1.png
Binary file added .doctrees/nbsphinx/GettingStarted_18_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_25_2.png
Binary file added .doctrees/nbsphinx/GettingStarted_29_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_30_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_31_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_32_1.png
Binary file added .doctrees/nbsphinx/GettingStarted_33_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_35_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_4_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_6_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_7_0.png
Binary file added .doctrees/nbsphinx/GettingStarted_9_0.png
743 changes: 743 additions & 0 deletions .doctrees/nbsphinx/GroupModels.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/GroupModels_11_0.png
Binary file added .doctrees/nbsphinx/GroupModels_14_0.png
Binary file added .doctrees/nbsphinx/GroupModels_17_0.png
Binary file added .doctrees/nbsphinx/GroupModels_20_0.png
Binary file added .doctrees/nbsphinx/GroupModels_22_0.png
Binary file added .doctrees/nbsphinx/GroupModels_24_0.png
Binary file added .doctrees/nbsphinx/GroupModels_2_0.png
Binary file added .doctrees/nbsphinx/GroupModels_3_0.png
Binary file added .doctrees/nbsphinx/GroupModels_5_0.png
Binary file added .doctrees/nbsphinx/GroupModels_6_0.png
Binary file added .doctrees/nbsphinx/GroupModels_8_0.png
668 changes: 668 additions & 0 deletions .doctrees/nbsphinx/JointModels.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/JointModels_11_0.png
Binary file added .doctrees/nbsphinx/JointModels_13_0.png
Binary file added .doctrees/nbsphinx/JointModels_15_0.png
Binary file added .doctrees/nbsphinx/JointModels_17_0.png
Binary file added .doctrees/nbsphinx/JointModels_2_0.png
Binary file added .doctrees/nbsphinx/JointModels_7_0.png
Binary file added .doctrees/nbsphinx/JointModels_8_0.png
2,254 changes: 2,254 additions & 0 deletions .doctrees/nbsphinx/ModelZoo.ipynb

Large diffs are not rendered by default.

Binary file added .doctrees/nbsphinx/ModelZoo_11_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_13_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_15_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_17_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_20_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_22_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_24_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_26_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_28_2.png
Binary file added .doctrees/nbsphinx/ModelZoo_30_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_33_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_35_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_37_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_39_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_41_2.png
Binary file added .doctrees/nbsphinx/ModelZoo_44_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_46_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_48_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_4_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_50_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_52_2.png
Binary file added .doctrees/nbsphinx/ModelZoo_55_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_57_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_59_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_61_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_63_2.png
Binary file added .doctrees/nbsphinx/ModelZoo_66_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_68_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_6_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_70_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_72_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_74_2.png
Binary file added .doctrees/nbsphinx/ModelZoo_77_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_80_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_82_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_84_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_86_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_88_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_90_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_92_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_94_1.png
Binary file added .doctrees/nbsphinx/ModelZoo_9_1.png
Binary file added .doctrees/troubleshooting.doctree
Binary file not shown.
Binary file added .doctrees/tutorials.doctree
Binary file not shown.
Empty file added .nojekyll
Empty file.
611 changes: 611 additions & 0 deletions AdvancedPSFModels.html

Large diffs are not rendered by default.

584 changes: 584 additions & 0 deletions AdvancedPSFModels.ipynb

Large diffs are not rendered by default.

350 changes: 350 additions & 0 deletions ConstrainedModels.html

Large diffs are not rendered by default.

290 changes: 290 additions & 0 deletions ConstrainedModels.ipynb

Large diffs are not rendered by default.

474 changes: 474 additions & 0 deletions CustomModels.html

Large diffs are not rendered by default.

428 changes: 428 additions & 0 deletions CustomModels.ipynb

Large diffs are not rendered by default.

1,144 changes: 1,144 additions & 0 deletions FittingMethods.html

Large diffs are not rendered by default.

1,122 changes: 1,122 additions & 0 deletions FittingMethods.ipynb

Large diffs are not rendered by default.

1,404 changes: 1,404 additions & 0 deletions GettingStarted.html

Large diffs are not rendered by default.

1,444 changes: 1,444 additions & 0 deletions GettingStarted.ipynb

Large diffs are not rendered by default.

770 changes: 770 additions & 0 deletions GroupModels.html

Large diffs are not rendered by default.

743 changes: 743 additions & 0 deletions GroupModels.ipynb

Large diffs are not rendered by default.

712 changes: 712 additions & 0 deletions JointModels.html

Large diffs are not rendered by default.

668 changes: 668 additions & 0 deletions JointModels.ipynb

Large diffs are not rendered by default.

2,048 changes: 2,048 additions & 0 deletions ModelZoo.html

Large diffs are not rendered by default.

2,254 changes: 2,254 additions & 0 deletions ModelZoo.ipynb

Large diffs are not rendered by default.

Binary file added _images/AdvancedPSFModels_12_0.png
Binary file added _images/AdvancedPSFModels_14_0.png
Binary file added _images/AdvancedPSFModels_3_0.png
Binary file added _images/AdvancedPSFModels_5_0.png
Binary file added _images/AdvancedPSFModels_9_0.png
Binary file added _images/ConstrainedModels_10_0.png
Binary file added _images/ConstrainedModels_6_1.png
Binary file added _images/ConstrainedModels_7_0.png
Binary file added _images/CustomModels_12_0.png
Binary file added _images/CustomModels_14_0.png
Binary file added _images/CustomModels_19_0.png
Binary file added _images/CustomModels_5_0.png
Binary file added _images/CustomModels_6_0.png
Binary file added _images/CustomModels_8_0.png
Binary file added _images/FittingMethods_10_1.png
Binary file added _images/FittingMethods_12_1.png
Binary file added _images/FittingMethods_16_0.png
Binary file added _images/FittingMethods_19_0.png
Binary file added _images/FittingMethods_21_0.png
Binary file added _images/FittingMethods_22_0.png
Binary file added _images/FittingMethods_2_0.png
Binary file added _images/FittingMethods_4_1.png
Binary file added _images/FittingMethods_6_0.png
Binary file added _images/FittingMethods_8_1.png
Binary file added _images/GettingStarted_10_1.png
Binary file added _images/GettingStarted_14_0.png
Binary file added _images/GettingStarted_16_1.png
Binary file added _images/GettingStarted_18_0.png
Binary file added _images/GettingStarted_25_2.png
Binary file added _images/GettingStarted_29_0.png
Binary file added _images/GettingStarted_30_0.png
Binary file added _images/GettingStarted_31_0.png
Binary file added _images/GettingStarted_32_1.png
Binary file added _images/GettingStarted_33_0.png
Binary file added _images/GettingStarted_35_0.png
Binary file added _images/GettingStarted_4_0.png
Binary file added _images/GettingStarted_6_0.png
Binary file added _images/GettingStarted_7_0.png
Binary file added _images/GettingStarted_9_0.png
Binary file added _images/GroupModels_11_0.png
Binary file added _images/GroupModels_14_0.png
Binary file added _images/GroupModels_17_0.png
Binary file added _images/GroupModels_20_0.png
Binary file added _images/GroupModels_22_0.png
Binary file added _images/GroupModels_24_0.png
Binary file added _images/GroupModels_2_0.png
Binary file added _images/GroupModels_3_0.png
Binary file added _images/GroupModels_5_0.png
Binary file added _images/GroupModels_6_0.png
Binary file added _images/GroupModels_8_0.png
Binary file added _images/JointModels_11_0.png
Binary file added _images/JointModels_13_0.png
Binary file added _images/JointModels_15_0.png
Binary file added _images/JointModels_17_0.png
Binary file added _images/JointModels_2_0.png
Binary file added _images/JointModels_7_0.png
Binary file added _images/JointModels_8_0.png
Binary file added _images/ModelZoo_11_1.png
Binary file added _images/ModelZoo_13_1.png
Binary file added _images/ModelZoo_15_1.png
Binary file added _images/ModelZoo_17_1.png
Binary file added _images/ModelZoo_20_1.png
Binary file added _images/ModelZoo_22_1.png
Binary file added _images/ModelZoo_24_1.png
Binary file added _images/ModelZoo_26_1.png
Binary file added _images/ModelZoo_28_2.png
Binary file added _images/ModelZoo_30_1.png
Binary file added _images/ModelZoo_33_1.png
Binary file added _images/ModelZoo_35_1.png
Binary file added _images/ModelZoo_37_1.png
Binary file added _images/ModelZoo_39_1.png
Binary file added _images/ModelZoo_41_2.png
Binary file added _images/ModelZoo_44_1.png
Binary file added _images/ModelZoo_46_1.png
Binary file added _images/ModelZoo_48_1.png
Binary file added _images/ModelZoo_4_1.png
Binary file added _images/ModelZoo_50_1.png
Binary file added _images/ModelZoo_52_2.png
Binary file added _images/ModelZoo_55_1.png
Binary file added _images/ModelZoo_57_1.png
Binary file added _images/ModelZoo_59_1.png
Binary file added _images/ModelZoo_61_1.png
Binary file added _images/ModelZoo_63_2.png
Binary file added _images/ModelZoo_66_1.png
Binary file added _images/ModelZoo_68_1.png
Binary file added _images/ModelZoo_6_1.png
Binary file added _images/ModelZoo_70_1.png
Binary file added _images/ModelZoo_72_1.png
Binary file added _images/ModelZoo_74_2.png
Binary file added _images/ModelZoo_77_1.png
Binary file added _images/ModelZoo_80_1.png
Binary file added _images/ModelZoo_82_1.png
Binary file added _images/ModelZoo_84_1.png
Binary file added _images/ModelZoo_86_1.png
Binary file added _images/ModelZoo_88_1.png
Binary file added _images/ModelZoo_90_1.png
Binary file added _images/ModelZoo_92_1.png
Binary file added _images/ModelZoo_94_1.png
Binary file added _images/ModelZoo_9_1.png
262 changes: 262 additions & 0 deletions _modules/astrophot.html

Large diffs are not rendered by default.

188 changes: 188 additions & 0 deletions _modules/astrophot/AP_config.html

Large diffs are not rendered by default.

301 changes: 301 additions & 0 deletions _modules/astrophot/fit/base.html

Large diffs are not rendered by default.

286 changes: 286 additions & 0 deletions _modules/astrophot/fit/gradient.html

Large diffs are not rendered by default.

297 changes: 297 additions & 0 deletions _modules/astrophot/fit/hmc.html

Large diffs are not rendered by default.

491 changes: 491 additions & 0 deletions _modules/astrophot/fit/iterative.html

Large diffs are not rendered by default.

606 changes: 606 additions & 0 deletions _modules/astrophot/fit/lm.html

Large diffs are not rendered by default.

264 changes: 264 additions & 0 deletions _modules/astrophot/fit/mhmcmc.html

Large diffs are not rendered by default.

299 changes: 299 additions & 0 deletions _modules/astrophot/fit/nuts.html

Large diffs are not rendered by default.

925 changes: 925 additions & 0 deletions _modules/astrophot/fit/oldlm.html

Large diffs are not rendered by default.

546 changes: 546 additions & 0 deletions _modules/astrophot/image/image_header.html

Large diffs are not rendered by default.

836 changes: 836 additions & 0 deletions _modules/astrophot/image/image_object.html

Large diffs are not rendered by default.

283 changes: 283 additions & 0 deletions _modules/astrophot/image/jacobian_image.html

Large diffs are not rendered by default.

310 changes: 310 additions & 0 deletions _modules/astrophot/image/model_image.html

Large diffs are not rendered by default.

311 changes: 311 additions & 0 deletions _modules/astrophot/image/psf_image.html

Large diffs are not rendered by default.

878 changes: 878 additions & 0 deletions _modules/astrophot/image/target_image.html

Large diffs are not rendered by default.

998 changes: 998 additions & 0 deletions _modules/astrophot/image/wcs.html

Large diffs are not rendered by default.

819 changes: 819 additions & 0 deletions _modules/astrophot/image/window_object.html

Large diffs are not rendered by default.

229 changes: 229 additions & 0 deletions _modules/astrophot/models/airy_psf.html

Large diffs are not rendered by default.

611 changes: 611 additions & 0 deletions _modules/astrophot/models/core_model.html

Large diffs are not rendered by default.

335 changes: 335 additions & 0 deletions _modules/astrophot/models/edgeon_model.html

Large diffs are not rendered by default.

580 changes: 580 additions & 0 deletions _modules/astrophot/models/exponential_model.html

Large diffs are not rendered by default.

179 changes: 179 additions & 0 deletions _modules/astrophot/models/flatsky_model.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>astrophot.models.flatsky_model &mdash; AstroPhot 0.13.0 documentation</title>
<link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="../../../_static/css/theme.css" type="text/css" />
<link rel="shortcut icon" href="../../../_static/AP_logo_favicon.ico"/>
<!--[if lt IE 9]>
<script src="../../../_static/js/html5shiv.min.js"></script>
<![endif]-->

<script src="../../../_static/jquery.js?v=5d32c60e"></script>
<script src="../../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script>
<script src="../../../_static/documentation_options.js?v=1019fba8"></script>
<script src="../../../_static/doctools.js?v=888ff710"></script>
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script>
<script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script>
<script src="../../../_static/js/theme.js"></script>
<link rel="index" title="Index" href="../../../genindex.html" />
<link rel="search" title="Search" href="../../../search.html" />
</head>

<body class="wy-body-for-nav">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-scroll">
<div class="wy-side-nav-search" >



<a href="../../../index.html" class="icon icon-home">
AstroPhot
</a>
<div class="version">
0.13
</div>
<div role="search">
<form id="rtd-search-form" class="wy-form" action="../../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" aria-label="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div><div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="Navigation menu">
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../install.html">Installation</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../getting_started.html">Getting Started</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../tutorials.html">Tutorials</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../coordinates.html">Coordinates</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../troubleshooting.html">Troubleshooting</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../citation.html">Citing AstroPhot</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../modules.html">astrophot</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../configfile_interface.html">Configuration File Interface</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../license.html">LICENSE</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../contributing.html">Contributing</a></li>
</ul>

</div>
</div>
</nav>

<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap"><nav class="wy-nav-top" aria-label="Mobile navigation menu" >
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../../../index.html">AstroPhot</a>
</nav>

<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="Page navigation">
<ul class="wy-breadcrumbs">
<li><a href="../../../index.html" class="icon icon-home" aria-label="Home"></a></li>
<li class="breadcrumb-item"><a href="../../index.html">Module code</a></li>
<li class="breadcrumb-item"><a href="../../astrophot.html">astrophot</a></li>
<li class="breadcrumb-item active">astrophot.models.flatsky_model</li>
<li class="wy-breadcrumbs-aside">
</li>
</ul>
<hr/>
</div>
<div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
<div itemprop="articleBody">

<h1>Source code for astrophot.models.flatsky_model</h1><div class="highlight"><pre>
<span></span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="kn">from</span> <span class="nn">scipy.stats</span> <span class="kn">import</span> <span class="n">iqr</span>
<span class="kn">import</span> <span class="nn">torch</span>

<span class="kn">from</span> <span class="nn">..utils.decorators</span> <span class="kn">import</span> <span class="n">ignore_numpy_warnings</span><span class="p">,</span> <span class="n">default_internal</span>
<span class="kn">from</span> <span class="nn">..param</span> <span class="kn">import</span> <span class="n">Param_Unlock</span><span class="p">,</span> <span class="n">Param_SoftLimits</span>
<span class="kn">from</span> <span class="nn">.sky_model_object</span> <span class="kn">import</span> <span class="n">Sky_Model</span>
<span class="kn">from</span> <span class="nn">._shared_methods</span> <span class="kn">import</span> <span class="n">select_target</span>

<span class="n">__all__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;Flat_Sky&quot;</span><span class="p">]</span>


<div class="viewcode-block" id="Flat_Sky">
<a class="viewcode-back" href="../../../astrophot.models.html#astrophot.models.flatsky_model.Flat_Sky">[docs]</a>
<span class="k">class</span> <span class="nc">Flat_Sky</span><span class="p">(</span><span class="n">Sky_Model</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Model for the sky background in which all values across the image</span>
<span class="sd"> are the same.</span>

<span class="sd"> Parameters:</span>
<span class="sd"> sky: brightness for the sky, represented as the log of the brightness over pixel scale squared, this is proportional to a surface brightness</span>

<span class="sd"> &quot;&quot;&quot;</span>

<span class="n">model_type</span> <span class="o">=</span> <span class="sa">f</span><span class="s2">&quot;flat </span><span class="si">{</span><span class="n">Sky_Model</span><span class="o">.</span><span class="n">model_type</span><span class="si">}</span><span class="s2">&quot;</span>
<span class="n">parameter_specs</span> <span class="o">=</span> <span class="p">{</span>
<span class="s2">&quot;F&quot;</span><span class="p">:</span> <span class="p">{</span><span class="s2">&quot;units&quot;</span><span class="p">:</span> <span class="s2">&quot;log10(flux/arcsec^2)&quot;</span><span class="p">},</span>
<span class="p">}</span>
<span class="n">_parameter_order</span> <span class="o">=</span> <span class="n">Sky_Model</span><span class="o">.</span><span class="n">_parameter_order</span> <span class="o">+</span> <span class="p">(</span><span class="s2">&quot;F&quot;</span><span class="p">,)</span>
<span class="n">useable</span> <span class="o">=</span> <span class="kc">True</span>

<div class="viewcode-block" id="Flat_Sky.initialize">
<a class="viewcode-back" href="../../../astrophot.models.html#astrophot.models.flatsky_model.Flat_Sky.initialize">[docs]</a>
<span class="nd">@torch</span><span class="o">.</span><span class="n">no_grad</span><span class="p">()</span>
<span class="nd">@ignore_numpy_warnings</span>
<span class="nd">@select_target</span>
<span class="nd">@default_internal</span>
<span class="k">def</span> <span class="nf">initialize</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">target</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">parameters</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="nb">super</span><span class="p">()</span><span class="o">.</span><span class="n">initialize</span><span class="p">(</span><span class="n">target</span><span class="o">=</span><span class="n">target</span><span class="p">,</span> <span class="n">parameters</span><span class="o">=</span><span class="n">parameters</span><span class="p">)</span>

<span class="k">with</span> <span class="n">Param_Unlock</span><span class="p">(</span><span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]),</span> <span class="n">Param_SoftLimits</span><span class="p">(</span><span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]):</span>
<span class="k">if</span> <span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">value</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">value</span> <span class="o">=</span> <span class="n">torch</span><span class="o">.</span><span class="n">log10</span><span class="p">(</span><span class="n">torch</span><span class="o">.</span><span class="n">median</span><span class="p">(</span><span class="n">target</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">window</span><span class="p">]</span><span class="o">.</span><span class="n">data</span><span class="p">)</span> <span class="o">/</span> <span class="n">target</span><span class="o">.</span><span class="n">pixel_area</span><span class="p">)</span>
<span class="k">if</span> <span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">uncertainty</span> <span class="ow">is</span> <span class="kc">None</span><span class="p">:</span>
<span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">uncertainty</span> <span class="o">=</span> <span class="p">(</span>
<span class="p">(</span>
<span class="n">iqr</span><span class="p">(</span>
<span class="n">target</span><span class="p">[</span><span class="bp">self</span><span class="o">.</span><span class="n">window</span><span class="p">]</span><span class="o">.</span><span class="n">data</span><span class="o">.</span><span class="n">detach</span><span class="p">()</span><span class="o">.</span><span class="n">cpu</span><span class="p">()</span><span class="o">.</span><span class="n">numpy</span><span class="p">(),</span>
<span class="n">rng</span><span class="o">=</span><span class="p">(</span><span class="mf">31.731</span> <span class="o">/</span> <span class="mi">2</span><span class="p">,</span> <span class="mi">100</span> <span class="o">-</span> <span class="mf">31.731</span> <span class="o">/</span> <span class="mi">2</span><span class="p">),</span>
<span class="p">)</span>
<span class="o">/</span> <span class="p">(</span><span class="mf">2.0</span> <span class="o">*</span> <span class="n">target</span><span class="o">.</span><span class="n">pixel_area</span><span class="o">.</span><span class="n">item</span><span class="p">())</span>
<span class="p">)</span>
<span class="o">/</span> <span class="n">np</span><span class="o">.</span><span class="n">sqrt</span><span class="p">(</span><span class="n">np</span><span class="o">.</span><span class="n">prod</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">window</span><span class="o">.</span><span class="n">shape</span><span class="o">.</span><span class="n">detach</span><span class="p">()</span><span class="o">.</span><span class="n">cpu</span><span class="p">()</span><span class="o">.</span><span class="n">numpy</span><span class="p">()))</span>
<span class="p">)</span> <span class="o">/</span> <span class="p">(</span><span class="mi">10</span> <span class="o">**</span> <span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">value</span><span class="o">.</span><span class="n">item</span><span class="p">()</span> <span class="o">*</span> <span class="n">np</span><span class="o">.</span><span class="n">log</span><span class="p">(</span><span class="mi">10</span><span class="p">))</span></div>


<div class="viewcode-block" id="Flat_Sky.evaluate_model">
<a class="viewcode-back" href="../../../astrophot.models.html#astrophot.models.flatsky_model.Flat_Sky.evaluate_model">[docs]</a>
<span class="k">def</span> <span class="nf">evaluate_model</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">X</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">Y</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">image</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="n">parameters</span><span class="o">=</span><span class="kc">None</span><span class="p">,</span> <span class="o">**</span><span class="n">kwargs</span><span class="p">):</span>
<span class="n">ref</span> <span class="o">=</span> <span class="n">image</span><span class="o">.</span><span class="n">data</span> <span class="k">if</span> <span class="n">X</span> <span class="ow">is</span> <span class="kc">None</span> <span class="k">else</span> <span class="n">X</span>
<span class="k">return</span> <span class="n">torch</span><span class="o">.</span><span class="n">ones_like</span><span class="p">(</span><span class="n">ref</span><span class="p">)</span> <span class="o">*</span> <span class="p">(</span><span class="n">image</span><span class="o">.</span><span class="n">pixel_area</span> <span class="o">*</span> <span class="mi">10</span> <span class="o">**</span> <span class="n">parameters</span><span class="p">[</span><span class="s2">&quot;F&quot;</span><span class="p">]</span><span class="o">.</span><span class="n">value</span><span class="p">)</span></div>
</div>

</pre></div>

</div>
</div>
<footer>

<hr/>

<div role="contentinfo">
<p>&#169; Copyright 2023, Connor Stone.</p>
</div>

Built with <a href="https://www.sphinx-doc.org/">Sphinx</a> using a
<a href="https://github.com/readthedocs/sphinx_rtd_theme">theme</a>
provided by <a href="https://readthedocs.org">Read the Docs</a>.


</footer>
</div>
</div>
</section>
</div>
<script>
jQuery(function () {
SphinxRtdTheme.Navigation.enable(true);
});
</script>

</body>
</html>
Loading

0 comments on commit 5361881

Please sign in to comment.