diff --git a/.gitignore b/.gitignore index dbb9dd08f..c4b9684d6 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,7 @@ redback/data/* docs/_* docs/_build/* docs/api/* + +#setups from other programs +.spyproject/* +.ipynb_checkpoints \ No newline at end of file diff --git a/docs/dependency_injections.txt b/docs/dependency_injections.txt index 3410b7e55..29458a3fa 100644 --- a/docs/dependency_injections.txt +++ b/docs/dependency_injections.txt @@ -85,3 +85,21 @@ Modifying plot_lightcurve Similarly to how a user can modify a model, a user can also modify the plot_lightcurve and plot_multiband_lightcurve routines. We don't really recommend this for aesthetic things as they can be simply passed to the existing function, but a user can do this if they want to. + + +Using your own cosmology +------------------------- + +If a user works with a transient outside of the Hubble flow, redshift is not a useful measure of the distance. In such a case, the user could provide a known physical distance. + +.. code:: python + + from astropy import units as u + from redback.util import user_cosmology + + your_cosmology = user_cosmology() + your_cosmology.set_luminosity_distance(40*u.kpc) + + # To use your cosmology in the fitting + + model_kwargs = dict(cosmology = your_cosmology) \ No newline at end of file diff --git a/docs/getting_data.txt b/docs/getting_data.txt index e0af08e19..20376261d 100644 --- a/docs/getting_data.txt +++ b/docs/getting_data.txt @@ -31,6 +31,8 @@ In particular, the kilonova data will be saved to :code:`kilonova/at2017gfo/` an Please look at the API or the examples to see how we can get other data. +Before working with UV/optical/IR data from the Open Access Catalogue, you need to check whether the data are in the AB or Vega system and whether any extinction correction was applied to the data on the Open Access Catalogue. By default, Redback assumes that the data is XXX. + Basic processing and metadata ------------------------- @@ -44,4 +46,70 @@ Private data or simulated data We do not have to use data from the above catalogs for fitting. Redback can be used on private data or simulated data. This is described in more detail in the transient or simulation documentation. -A general example which shows the API for downloading data from any of the above catalogs is available `here `_. \ No newline at end of file +A general example which shows the API for downloading data from any of the above catalogs is available `here `_. + + +Adding filters to Redback +------------------------- + +Redback includes many filters that are a part of the SN Cosmo distribution. You can get a full list using the following command: + +.. code:: python + + from redback import filters + + filters.show_all_filters() + +We have implemented a few options to add additional filters. Note, SN Cosmo does not allow to permanently add a filter to its filter database. This means that you have add any non-default filter to Redback every time you start a new session. In the following we describe different methods of adding a filter. + +* Adding a filter from a text file + +.. code:: python + + from redback import filters + + fname = 'Gemini_GMOS-N.u.dat' + + # Unique filter label + filter_label = 'gmos-n::u' + + # Label shown in the plotting + plot_label = 'GMOS-N/u' + + # If you want to overwrite any existing entry + + overwrite = True + + filters.add_filter_user(fname, filter_label, PLOT_LABEL=plot_label, OVERWRITE=overwrite) + +* Adding a filter using the Spanish Virtual Observatory + +The `Spanish Virtual Observatory (SVO) `_ has an extensive repository of astronomical filters of many observatories and space telescopes. The developer version of `Astroquery `_ allows accessing the SVO in a very convenient way. It is straightforward to add a filter from the SVO to Redback. + +.. code:: python + + from astroquery.svo_fps import SvoFps + from redback import filters + + # We want to add GROND filters to Redback + filter_table = SvoFps.get_filter_list(facility='La Silla', instrument='GROND') + + # The table has many columns. The filter ID are stored in 'filterID'. + # We use this column to construct the filter label and the plot labels. + + # Unique filter labels + filter_label = ['grond::' + x.split('/')[1].split('.')[1] for x in filter_table['filterID']] + + # Plot labels + plot_label = ['GROND/' + x.split('/')[1].split('.')[1] for x in filter_table['filterID']] + + [filters.add_filter_svo(filter_table[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_table))] + +We have pre-configured Redback to add a set of filters that are not a part of SN Cosmo distribution. The pre-configured list includes the Euclid Space Telescope, the GROND camera at the 2.2m MPG telescope, the EFOSC2/Gunn filters at 3.58m NTT telescope, the Spitzer Space Telescope and the WISE Space Telescope. To add them you need the developer version of `Astroquery `_. + +.. code:: python + + from astroquery.svo_fps import SvoFps + from redback import filters + + filters.add_common_filters() \ No newline at end of file diff --git a/examples/example_data/SN2018ibb_photcat_REDBACK.ascii b/examples/example_data/SN2018ibb_photcat_REDBACK.ascii new file mode 100644 index 000000000..9cc0c8210 --- /dev/null +++ b/examples/example_data/SN2018ibb_photcat_REDBACK.ascii @@ -0,0 +1,693 @@ +telescope instrument band MJD MAG MAG_ERR +Swift UVOT uvot::uvw2 58464.766 20.804 0.162 +Swift UVOT uvot::uvw2 58472.770 21.091 0.186 +Swift UVOT uvot::uvw2 58476.387 20.995 0.193 +Swift UVOT uvot::uvw2 58481.176 21.138 0.245 +Swift UVOT uvot::uvw2 58484.828 21.493 0.234 +Swift UVOT uvot::uvw2 58493.922 21.420 0.250 +Swift UVOT uvot::uvw2 58497.102 21.281 0.217 +Swift UVOT uvot::uvw2 58500.664 21.574 0.365 +Swift UVOT uvot::uvw2 58501.531 21.653 0.343 +Swift UVOT uvot::uvw2 58505.371 21.484 0.209 +Swift UVOT uvot::uvw2 58507.598 21.535 0.214 +Swift UVOT uvot::uvw2 58516.656 21.751 0.252 +Swift UVOT uvot::uvw2 58521.641 21.529 0.221 +Swift UVOT uvot::uvw2 58528.613 21.950 0.336 +Swift UVOT uvot::uvw2 58531.297 21.537 0.233 +Swift UVOT uvot::uvw2 58535.582 21.740 0.502 +Swift UVOT uvot::uvw2 58541.625 21.761 0.333 +Swift UVOT uvot::uvw2 58545.586 21.767 0.242 +Swift UVOT uvot::uvw2 58559.922 21.890 0.279 +Swift UVOT uvot::uvw2 58564.410 21.743 0.251 +Swift UVOT uvot::uvw2 58569.383 21.662 0.374 +Swift UVOT uvot::uvm2 58464.770 20.438 0.130 +Swift UVOT uvot::uvm2 58472.773 20.594 0.139 +Swift UVOT uvot::uvm2 58476.395 20.834 0.167 +Swift UVOT uvot::uvm2 58481.176 21.032 0.235 +Swift UVOT uvot::uvm2 58484.832 20.986 0.165 +Swift UVOT uvot::uvm2 58493.930 20.985 0.186 +Swift UVOT uvot::uvm2 58497.105 21.384 0.301 +Swift UVOT uvot::uvm2 58501.531 21.123 0.231 +Swift UVOT uvot::uvm2 58505.375 21.311 0.171 +Swift UVOT uvot::uvm2 58507.605 21.338 0.183 +Swift UVOT uvot::uvm2 58516.660 21.336 0.190 +Swift UVOT uvot::uvm2 58531.301 21.188 0.178 +Swift UVOT uvot::uvm2 58541.629 21.148 0.206 +Swift UVOT uvot::uvm2 58545.590 21.318 0.177 +Swift UVOT uvot::uvm2 58559.930 21.118 0.158 +Swift UVOT uvot::uvm2 58564.414 21.332 0.192 +Swift UVOT uvot::uvm2 58569.387 21.487 0.279 +Swift UVOT uvot::uvm2 58574.043 21.316 0.303 +Swift UVOT uvot::uvw1 58464.762 19.782 0.123 +Swift UVOT uvot::uvw1 58472.766 20.009 0.135 +Swift UVOT uvot::uvw1 58476.383 20.038 0.151 +Swift UVOT uvot::uvw1 58484.828 20.290 0.159 +Swift UVOT uvot::uvw1 58493.922 20.266 0.173 +Swift UVOT uvot::uvw1 58497.098 20.356 0.175 +Swift UVOT uvot::uvw1 58500.660 20.255 0.229 +Swift UVOT uvot::uvw1 58501.527 20.541 0.236 +Swift UVOT uvot::uvw1 58505.367 20.451 0.153 +Swift UVOT uvot::uvw1 58507.594 20.643 0.178 +Swift UVOT uvot::uvw1 58521.641 20.540 0.165 +Swift UVOT uvot::uvw1 58528.609 20.734 0.217 +Swift UVOT uvot::uvw1 58531.297 20.689 0.204 +Swift UVOT uvot::uvw1 58541.621 20.584 0.227 +Swift UVOT uvot::uvw1 58545.582 20.492 0.155 +Swift UVOT uvot::uvw1 58559.918 20.720 0.198 +Swift UVOT uvot::u 58464.762 18.349 0.090 +Swift UVOT uvot::u 58472.766 18.511 0.095 +Swift UVOT uvot::u 58476.387 18.402 0.099 +Swift UVOT uvot::u 58481.172 18.441 0.114 +Swift UVOT uvot::u 58484.828 18.731 0.106 +Swift UVOT uvot::u 58493.922 18.720 0.116 +Swift UVOT uvot::u 58497.098 18.800 0.114 +Swift UVOT uvot::u 58500.660 18.717 0.153 +Swift UVOT uvot::u 58501.527 18.769 0.139 +Swift UVOT uvot::u 58505.367 18.732 0.096 +Swift UVOT uvot::u 58507.594 19.139 0.116 +Swift UVOT uvot::u 58516.652 19.351 0.140 +Swift UVOT uvot::u 58521.641 19.407 0.135 +Swift UVOT uvot::u 58528.609 19.455 0.166 +Swift UVOT uvot::u 58531.297 19.180 0.134 +Swift UVOT uvot::u 58541.621 19.311 0.179 +Swift UVOT uvot::u 58545.582 19.393 0.129 +Swift UVOT uvot::u 58559.918 19.285 0.142 +Swift UVOT uvot::u 58564.406 19.508 0.155 +Swift UVOT uvot::u 58569.383 19.502 0.268 +Swift UVOT uvot::u 58574.035 19.741 0.236 +Swift UVOT uvot::u 58585.160 19.616 0.083 +Swift UVOT uvot::u 58592.195 19.956 0.102 +Swift UVOT uvot::u 58599.074 20.412 0.201 +Swift UVOT uvot::u 58660.492 20.446 0.148 +Swift UVOT uvot::u 58667.695 20.467 0.151 +Swift UVOT uvot::u 58674.570 20.442 0.134 +Swift UVOT uvot::u 58681.141 20.513 0.128 +Swift UVOT uvot::u 58690.477 20.678 0.171 +Swift UVOT uvot::u 58697.148 20.974 0.175 +Swift UVOT uvot::u 58704.789 20.821 0.163 +Swift UVOT uvot::u 58716.402 21.078 0.169 +Swift UVOT uvot::u 58778.453 21.557 0.095 +Swift UVOT uvot::u 58877.633 22.631 0.146 +Swift UVOT uvot::b 58464.762 17.723 0.081 +Swift UVOT uvot::b 58472.766 17.765 0.082 +Swift UVOT uvot::b 58476.387 17.831 0.092 +Swift UVOT uvot::b 58481.172 17.730 0.101 +Swift UVOT uvot::b 58484.828 17.917 0.090 +Swift UVOT uvot::b 58493.922 17.914 0.098 +Swift UVOT uvot::b 58497.098 17.992 0.096 +Swift UVOT uvot::b 58500.660 18.153 0.148 +Swift UVOT uvot::b 58501.527 18.155 0.131 +Swift UVOT uvot::b 58505.371 18.142 0.089 +Swift UVOT uvot::b 58507.594 18.268 0.096 +Swift UVOT uvot::b 58516.656 18.460 0.115 +Swift UVOT uvot::b 58521.641 18.293 0.099 +Swift UVOT uvot::b 58528.609 18.508 0.132 +Swift UVOT uvot::b 58531.297 18.313 0.110 +Swift UVOT uvot::b 58535.578 18.299 0.214 +Swift UVOT uvot::b 58541.625 18.357 0.141 +Swift UVOT uvot::b 58545.582 18.320 0.097 +Swift UVOT uvot::b 58559.922 18.497 0.123 +Swift UVOT uvot::b 58564.406 18.639 0.128 +Swift UVOT uvot::b 58569.383 19.008 0.295 +Swift UVOT uvot::b 58574.035 18.949 0.210 +Swift UVOT uvot::b 58585.164 19.015 0.083 +Swift UVOT uvot::b 58592.199 19.084 0.090 +Swift UVOT uvot::b 58599.078 19.199 0.177 +Swift UVOT uvot::b 58660.496 19.666 0.141 +Swift UVOT uvot::b 58667.703 19.635 0.132 +Swift UVOT uvot::b 58674.574 19.655 0.121 +Swift UVOT uvot::b 58681.148 19.782 0.126 +Swift UVOT uvot::b 58690.910 20.279 0.238 +Swift UVOT uvot::b 58697.148 20.102 0.157 +Swift UVOT uvot::b 58704.793 20.041 0.162 +Swift UVOT uvot::b 58716.406 20.427 0.209 +Swift UVOT uvot::b 58871.152 21.762 0.043 +Swift UVOT uvot::b 58898.098 22.068 0.035 +Swift UVOT uvot::b 58904.059 22.141 0.032 +Palomar ZTF ztfg 58362.500 19.130 0.120 +Palomar ZTF ztfg 58365.465 19.135 0.104 +Palomar ZTF ztfg 58368.500 18.888 0.038 +Palomar ZTF ztfg 58371.500 18.782 0.034 +Palomar ZTF ztfg 58374.445 18.666 0.039 +Palomar ZTF ztfg 58378.480 18.511 0.048 +Palomar ZTF ztfg 58380.484 18.441 0.030 +Palomar ZTF ztfg 58383.480 18.371 0.027 +Palomar ZTF ztfg 58384.438 18.435 0.160 +Palomar ZTF ztfg 58387.504 18.317 0.101 +Palomar ZTF ztfg 58387.520 18.454 0.143 +Palomar ZTF ztfg 58389.438 18.311 0.074 +Palomar ZTF ztfg 58389.457 18.334 0.066 +Palomar ZTF ztfg 58390.473 18.358 0.081 +Palomar ZTF ztfg 58397.461 18.246 0.021 +Palomar ZTF ztfg 58422.438 17.846 0.032 +Palomar ZTF ztfg 58422.441 17.764 0.029 +Palomar ZTF ztfg 58423.414 17.870 0.035 +Palomar ZTF ztfg 58424.359 17.834 0.027 +Palomar ZTF ztfg 58424.359 17.821 0.027 +Palomar ZTF ztfg 58425.371 17.811 0.018 +Palomar ZTF ztfg 58425.371 17.809 0.019 +Palomar ZTF ztfg 58425.371 17.863 0.021 +Palomar ZTF ztfg 58426.375 17.802 0.023 +Palomar ZTF ztfg 58426.379 17.799 0.023 +Palomar ZTF ztfg 58427.402 17.777 0.039 +Palomar ZTF ztfg 58428.312 17.784 0.016 +Palomar ZTF ztfg 58428.328 17.792 0.014 +Palomar ZTF ztfg 58429.418 17.744 0.013 +Palomar ZTF ztfg 58430.359 17.744 0.012 +Palomar ZTF ztfg 58430.402 17.699 0.014 +Palomar ZTF ztfg 58431.414 17.760 0.038 +Palomar ZTF ztfg 58431.418 17.727 0.033 +Palomar ZTF ztfg 58432.434 17.744 0.021 +Palomar ZTF ztfg 58432.434 17.759 0.022 +Palomar ZTF ztfg 58432.434 17.774 0.025 +Palomar ZTF ztfg 58434.391 17.715 0.029 +Palomar ZTF ztfg 58434.395 17.658 0.027 +Palomar ZTF ztfg 58435.402 17.734 0.042 +Palomar ZTF ztfg 58437.418 17.654 0.027 +Palomar ZTF ztfg 58441.441 17.678 0.039 +Palomar ZTF ztfg 58443.312 17.632 0.047 +Palomar ZTF ztfg 58460.988 17.465 0.030 +Palomar ZTF ztfg 58462.273 17.375 0.040 +Palomar ZTF ztfg 58462.336 17.570 0.048 +Palomar ZTF ztfg 58462.988 17.485 0.040 +Palomar ZTF ztfg 58464.031 17.495 0.040 +Palomar ZTF ztfg 58464.941 17.505 0.030 +Palomar ZTF ztfg 58466.293 17.710 0.150 +Palomar ZTF ztfg 58466.293 17.673 0.100 +Palomar ZTF ztfg 58468.219 17.671 0.009 +Palomar ZTF ztfg 58469.172 17.661 0.035 +Palomar ZTF ztfg 58469.949 17.575 0.030 +Palomar ZTF ztfg 58471.102 17.601 0.034 +Palomar ZTF ztfg 58471.230 17.525 0.060 +Palomar ZTF ztfg 58472.230 17.672 0.050 +Palomar ZTF ztfg 58475.148 17.699 0.023 +Palomar ZTF ztfg 58477.230 17.776 0.009 +Palomar ZTF ztfg 58479.219 17.795 0.050 +Palomar ZTF ztfg 58480.234 17.755 0.090 +Palomar ZTF ztfg 58481.273 17.756 0.027 +Palomar ZTF ztfg 58482.172 17.743 0.006 +Palomar ZTF ztfg 58482.645 17.807 0.007 +Palomar ZTF ztfg 58482.910 17.715 0.030 +Palomar ZTF ztfg 58483.852 17.778 0.033 +Palomar ZTF ztfg 58485.871 17.725 0.030 +Palomar ZTF ztfg 58486.582 17.814 0.009 +Palomar ZTF ztfg 58487.199 17.765 0.025 +Palomar ZTF ztfg 58488.191 17.851 0.007 +Palomar ZTF ztfg 58491.188 17.884 0.030 +Palomar ZTF ztfg 58491.191 17.857 0.032 +Palomar ZTF ztfg 58491.602 17.862 0.007 +Palomar ZTF ztfg 58494.012 17.775 0.030 +Palomar ZTF ztfg 58494.125 17.862 0.008 +Palomar ZTF ztfg 58495.230 17.850 0.027 +Palomar ZTF ztfg 58495.617 17.886 0.008 +Palomar ZTF ztfg 58499.531 17.917 0.056 +Palomar ZTF ztfg 58500.184 17.935 0.014 +Palomar ZTF ztfg 58502.969 17.795 0.060 +Palomar ZTF ztfg 58503.230 17.744 0.101 +Palomar ZTF ztfg 58504.168 17.959 0.052 +Palomar ZTF ztfg 58506.152 18.017 0.016 +Palomar ZTF ztfg 58506.988 17.955 0.030 +Palomar ZTF ztfg 58507.188 18.058 0.035 +Palomar ZTF ztfg 58507.918 18.047 0.018 +Palomar ZTF ztfg 58510.168 18.112 0.049 +Palomar ZTF ztfg 58510.188 18.093 0.047 +Palomar ZTF ztfg 58511.113 18.190 0.006 +Palomar ZTF ztfg 58511.473 18.166 0.010 +Palomar ZTF ztfg 58516.082 18.221 0.007 +Palomar ZTF ztfg 58516.121 18.189 0.004 +Palomar ZTF ztfg 58520.074 18.252 0.008 +Palomar ZTF ztfg 58521.164 18.246 0.016 +Palomar ZTF ztfg 58526.047 18.222 0.014 +Palomar ZTF ztfg 58529.156 18.202 0.025 +Palomar ZTF ztfg 58532.051 18.149 0.016 +Palomar ZTF ztfg 58534.172 18.328 0.146 +Palomar ZTF ztfg 58535.020 18.207 0.010 +Palomar ZTF ztfg 58536.418 18.155 0.013 +Palomar ZTF ztfg 58539.148 18.213 0.036 +Palomar ZTF ztfg 58539.148 18.173 0.047 +Palomar ZTF ztfg 58540.043 18.217 0.006 +Palomar ZTF ztfg 58540.879 18.105 0.030 +Palomar ZTF ztfg 58546.859 18.115 0.020 +Palomar ZTF ztfg 58557.078 18.318 0.017 +Palomar ZTF ztfg 58564.035 18.441 0.021 +Palomar ZTF ztfg 58564.039 18.496 0.032 +Palomar ZTF ztfg 58570.043 18.582 0.008 +Palomar ZTF ztfg 58574.031 18.627 0.012 +Palomar ZTF ztfg 58578.012 18.655 0.010 +Palomar ZTF ztfg 58578.023 18.677 0.019 +Palomar ZTF ztfg 58583.992 18.765 0.013 +Palomar ZTF ztfg 58586.977 18.745 0.036 +Palomar ZTF ztfg 58587.988 18.655 0.018 +Palomar ZTF ztfg 58594.969 18.951 0.008 +Palomar ZTF ztfg 58717.383 19.757 0.044 +Palomar ZTF ztfg 58721.398 19.901 0.013 +Palomar ZTF ztfg 58728.301 20.007 0.008 +Palomar ZTF ztfg 58729.141 19.916 0.021 +Palomar ZTF ztfg 58735.730 20.008 0.035 +Palomar ZTF ztfg 58738.383 20.092 0.020 +Palomar ZTF ztfg 58748.301 20.235 0.010 +Palomar ZTF ztfg 58765.242 20.322 0.025 +Palomar ZTF ztfg 58778.266 20.336 0.027 +Palomar ZTF ztfg 58778.270 20.381 0.013 +Palomar ZTF ztfg 58778.273 20.399 0.019 +Palomar ZTF ztfg 58778.453 20.391 0.018 +Palomar ZTF ztfg 58779.102 20.175 0.050 +Palomar ZTF ztfg 58785.191 20.429 0.009 +Palomar ZTF ztfg 58793.309 20.424 0.015 +Palomar ZTF ztfg 58807.145 20.540 0.016 +Palomar ZTF ztfg 58812.090 20.475 0.070 +Palomar ZTF ztfg 58823.137 20.726 0.017 +Palomar ZTF ztfg 58836.156 20.790 0.241 +Palomar ZTF ztfg 58851.184 21.204 0.015 +Palomar ZTF ztfg 58871.141 21.380 0.023 +Palomar ZTF ztfg 58877.633 21.487 0.023 +Palomar ZTF ztfg 58898.078 21.631 0.023 +Palomar ZTF ztfg 58906.039 21.700 0.013 +Palomar ZTF ztfg 59083.602 22.705 0.204 +Palomar ZTF ztfg 59110.564 22.846 0.205 +Palomar ZTF ztfg 59132.261 23.073 0.065 +Palomar ZTF ztfg 59189.112 23.892 0.072 +Palomar ZTF ztfg 59190.050 23.941 0.060 +Palomar ZTF ztfg 59224.149 24.305 0.065 +Palomar ZTF ztfg 59278.031 24.935 0.084 +Swift UVOT uvot::v 58464.770 17.643 0.127 +Swift UVOT uvot::v 58472.770 17.877 0.144 +Swift UVOT uvot::v 58476.391 17.703 0.143 +Swift UVOT uvot::v 58481.176 17.924 0.188 +Swift UVOT uvot::v 58484.832 17.751 0.136 +Swift UVOT uvot::v 58493.926 17.804 0.156 +Swift UVOT uvot::v 58497.102 17.818 0.145 +Swift UVOT uvot::v 58505.375 17.847 0.127 +Swift UVOT uvot::v 58507.602 17.893 0.130 +Swift UVOT uvot::v 58516.656 18.081 0.150 +Swift UVOT uvot::v 58528.613 18.037 0.169 +Swift UVOT uvot::v 58531.301 18.194 0.166 +Swift UVOT uvot::v 58541.625 18.310 0.230 +Swift UVOT uvot::v 58545.586 18.448 0.180 +Swift UVOT uvot::v 58559.926 18.321 0.172 +Swift UVOT uvot::v 58564.410 18.340 0.174 +Swift UVOT uvot::v 58569.383 18.569 0.359 +Swift UVOT uvot::v 58574.039 18.661 0.319 +Swift UVOT uvot::v 58585.156 18.805 0.132 +Swift UVOT uvot::v 58592.191 18.803 0.141 +Swift UVOT uvot::v 58599.070 18.880 0.212 +Swift UVOT uvot::v 58660.484 19.251 0.182 +Swift UVOT uvot::v 58667.691 19.259 0.185 +Swift UVOT uvot::v 58674.562 19.456 0.209 +Swift UVOT uvot::v 58681.137 19.548 0.198 +Swift UVOT uvot::v 58690.473 19.520 0.198 +Swift UVOT uvot::v 58704.789 19.570 0.191 +Swift UVOT uvot::v 58898.086 21.510 0.026 +Swift UVOT uvot::v 58904.086 21.490 0.023 +Swift UVOT uvot::v 59083.609 22.419 0.205 +Swift UVOT uvot::v 59110.567 22.603 0.203 +Palomar ZTF ztfr 58359.461 18.964 0.162 +Palomar ZTF ztfr 58365.520 18.810 0.107 +Palomar ZTF ztfr 58368.477 18.780 0.042 +Palomar ZTF ztfr 58369.500 18.793 0.058 +Palomar ZTF ztfr 58371.445 18.692 0.043 +Palomar ZTF ztfr 58372.500 18.763 0.063 +Palomar ZTF ztfr 58374.484 18.679 0.044 +Palomar ZTF ztfr 58375.500 18.622 0.066 +Palomar ZTF ztfr 58377.453 18.517 0.045 +Palomar ZTF ztfr 58380.441 18.434 0.040 +Palomar ZTF ztfr 58383.414 18.458 0.070 +Palomar ZTF ztfr 58386.422 18.384 0.078 +Palomar ZTF ztfr 58387.473 18.338 0.103 +Palomar ZTF ztfr 58397.457 18.257 0.028 +Palomar ZTF ztfr 58422.363 17.933 0.073 +Palomar ZTF ztfr 58423.355 17.895 0.038 +Palomar ZTF ztfr 58423.355 17.913 0.036 +Palomar ZTF ztfr 58423.359 17.909 0.036 +Palomar ZTF ztfr 58424.336 17.826 0.084 +Palomar ZTF ztfr 58425.453 17.892 0.035 +Palomar ZTF ztfr 58425.453 17.880 0.032 +Palomar ZTF ztfr 58426.398 17.883 0.022 +Palomar ZTF ztfr 58427.441 17.884 0.060 +Palomar ZTF ztfr 58428.355 17.907 0.022 +Palomar ZTF ztfr 58429.383 17.867 0.016 +Palomar ZTF ztfr 58430.457 17.792 0.022 +Palomar ZTF ztfr 58431.336 17.821 0.086 +Palomar ZTF ztfr 58431.340 17.867 0.072 +Palomar ZTF ztfr 58432.383 17.810 0.023 +Palomar ZTF ztfr 58432.398 17.832 0.027 +Palomar ZTF ztfr 58434.332 17.771 0.046 +Palomar ZTF ztfr 58436.359 17.763 0.081 +Palomar ZTF ztfr 58437.355 17.724 0.027 +Palomar ZTF ztfr 58439.328 17.773 0.032 +Palomar ZTF ztfr 58449.312 17.671 0.032 +Palomar ZTF ztfr 58449.414 17.714 0.030 +Palomar ZTF ztfr 58456.250 17.633 0.029 +Palomar ZTF ztfr 58456.289 17.627 0.023 +Palomar ZTF ztfr 58460.988 17.614 0.030 +Palomar ZTF ztfr 58461.246 17.664 0.020 +Palomar ZTF ztfr 58461.781 17.619 0.010 +Palomar ZTF ztfr 58462.270 17.624 0.030 +Palomar ZTF ztfr 58462.312 17.746 0.042 +Palomar ZTF ztfr 58462.895 17.599 0.011 +Palomar ZTF ztfr 58462.988 17.634 0.030 +Palomar ZTF ztfr 58464.031 17.664 0.020 +Palomar ZTF ztfr 58464.227 17.654 0.020 +Palomar ZTF ztfr 58464.941 17.654 0.020 +Palomar ZTF ztfr 58466.316 17.722 0.085 +Palomar ZTF ztfr 58468.219 17.736 0.005 +Palomar ZTF ztfr 58469.961 17.714 0.020 +Palomar ZTF ztfr 58471.102 17.762 0.008 +Palomar ZTF ztfr 58471.230 17.674 0.050 +Palomar ZTF ztfr 58472.270 17.753 0.060 +Palomar ZTF ztfr 58472.273 17.868 0.054 +Palomar ZTF ztfr 58475.148 17.802 0.008 +Palomar ZTF ztfr 58476.309 17.812 0.038 +Palomar ZTF ztfr 58477.234 17.801 0.008 +Palomar ZTF ztfr 58479.215 17.914 0.040 +Palomar ZTF ztfr 58480.215 17.834 0.090 +Palomar ZTF ztfr 58480.230 17.824 0.040 +Palomar ZTF ztfr 58480.293 17.964 0.080 +Palomar ZTF ztfr 58481.316 17.922 0.049 +Palomar ZTF ztfr 58482.172 17.871 0.002 +Palomar ZTF ztfr 58482.648 17.807 0.008 +Palomar ZTF ztfr 58482.922 17.794 0.020 +Palomar ZTF ztfr 58483.844 17.834 0.023 +Palomar ZTF ztfr 58485.871 17.814 0.020 +Palomar ZTF ztfr 58486.586 17.846 0.010 +Palomar ZTF ztfr 58488.191 17.840 0.002 +Palomar ZTF ztfr 58491.605 17.853 0.008 +Palomar ZTF ztfr 58494.012 17.834 0.030 +Palomar ZTF ztfr 58494.125 17.853 0.003 +Palomar ZTF ztfr 58495.617 17.859 0.008 +Palomar ZTF ztfr 58499.535 17.862 0.066 +Palomar ZTF ztfr 58500.184 17.878 0.005 +Palomar ZTF ztfr 58502.969 17.864 0.030 +Palomar ZTF ztfr 58503.250 17.853 0.098 +Palomar ZTF ztfr 58506.152 18.028 0.005 +Palomar ZTF ztfr 58506.988 18.064 0.030 +Palomar ZTF ztfr 58507.234 18.050 0.050 +Palomar ZTF ztfr 58507.246 18.005 0.062 +Palomar ZTF ztfr 58507.922 18.011 0.019 +Palomar ZTF ztfr 58511.113 18.115 0.005 +Palomar ZTF ztfr 58511.477 18.129 0.025 +Palomar ZTF ztfr 58511.793 18.142 0.034 +Palomar ZTF ztfr 58516.082 18.088 0.012 +Palomar ZTF ztfr 58516.125 18.128 0.006 +Palomar ZTF ztfr 58519.910 18.104 0.030 +Palomar ZTF ztfr 58520.074 18.121 0.004 +Palomar ZTF ztfr 58521.168 18.100 0.019 +Palomar ZTF ztfr 58526.047 18.086 0.006 +Palomar ZTF ztfr 58527.859 18.084 0.030 +Palomar ZTF ztfr 58529.156 18.115 0.032 +Palomar ZTF ztfr 58532.051 18.086 0.005 +Palomar ZTF ztfr 58535.020 18.108 0.007 +Palomar ZTF ztfr 58540.043 18.162 0.003 +Palomar ZTF ztfr 58540.520 18.210 0.043 +Palomar ZTF ztfr 58540.879 18.154 0.030 +Palomar ZTF ztfr 58546.859 18.124 0.030 +Palomar ZTF ztfr 58557.078 18.289 0.014 +Palomar ZTF ztfr 58564.035 18.410 0.008 +Palomar ZTF ztfr 58564.039 18.447 0.030 +Palomar ZTF ztfr 58570.047 18.533 0.012 +Palomar ZTF ztfr 58574.035 18.549 0.016 +Palomar ZTF ztfr 58578.012 18.588 0.014 +Palomar ZTF ztfr 58578.027 18.597 0.030 +Palomar ZTF ztfr 58583.723 18.607 0.029 +Palomar ZTF ztfr 58583.992 18.648 0.005 +Palomar ZTF ztfr 58586.980 18.626 0.035 +Palomar ZTF ztfr 58587.988 18.695 0.006 +Palomar ZTF ztfr 58591.359 18.731 0.048 +Palomar ZTF ztfr 58594.969 18.770 0.008 +Palomar ZTF ztfr 58597.363 18.843 0.063 +Palomar ZTF ztfr 58600.711 18.848 0.058 +Palomar ZTF ztfr 58717.387 19.835 0.056 +Palomar ZTF ztfr 58721.398 19.895 0.013 +Palomar ZTF ztfr 58724.051 19.887 0.046 +Palomar ZTF ztfr 58728.312 19.962 0.006 +Palomar ZTF ztfr 58729.145 19.936 0.034 +Palomar ZTF ztfr 58735.734 19.968 0.037 +Palomar ZTF ztfr 58738.383 20.053 0.017 +Palomar ZTF ztfr 58748.301 20.204 0.016 +Palomar ZTF ztfr 58765.242 20.329 0.034 +Palomar ZTF ztfr 58775.176 20.291 0.019 +Palomar ZTF ztfr 58778.277 20.304 0.018 +Palomar ZTF ztfr 58778.453 20.303 0.016 +Palomar ZTF ztfr 58779.102 20.294 0.070 +Palomar ZTF ztfr 58785.191 20.333 0.008 +Palomar ZTF ztfr 58793.320 20.286 0.018 +Palomar ZTF ztfr 58807.156 20.442 0.018 +Palomar ZTF ztfr 58812.090 20.524 0.080 +Palomar ZTF ztfr 58823.160 20.662 0.027 +Palomar ZTF ztfr 58836.168 20.843 0.025 +Palomar ZTF ztfr 58851.195 21.111 0.023 +Palomar ZTF ztfr 58865.219 21.201 0.047 +Palomar ZTF ztfr 58877.633 21.247 0.015 +Palomar ZTF ztfr 58884.180 21.361 0.122 +Palomar ZTF ztfr 58898.043 21.369 0.047 +Palomar ZTF ztfr 58906.066 21.529 0.029 +Palomar ZTF ztfr 59083.602 22.584 0.203 +Palomar ZTF ztfr 59110.564 22.715 0.215 +Palomar ZTF ztfr 59112.291 22.864 0.065 +Palomar ZTF ztfr 59115.259 22.858 0.080 +Palomar ZTF ztfr 59189.128 23.964 0.065 +Palomar ZTF ztfr 59190.067 23.927 0.069 +Palomar ZTF ztfr 59198.038 23.868 0.071 +Palomar ZTF ztfr 59224.167 24.419 0.080 +Palomar ZTF ztfr 59278.047 24.754 0.098 +SLOAN SDSS grond::i 58461.000 17.822 0.020 +SLOAN SDSS grond::i 58461.793 17.711 0.023 +SLOAN SDSS grond::i 58462.273 17.802 0.030 +SLOAN SDSS grond::i 58462.906 17.735 0.025 +SLOAN SDSS grond::i 58462.988 17.822 0.030 +SLOAN SDSS grond::i 58464.031 17.832 0.030 +SLOAN SDSS grond::i 58464.949 17.832 0.020 +SLOAN SDSS grond::i 58468.219 17.833 0.004 +SLOAN SDSS grond::i 58469.961 17.902 0.020 +SLOAN SDSS grond::i 58471.102 17.875 0.005 +SLOAN SDSS grond::i 58471.234 17.812 0.120 +SLOAN SDSS grond::i 58475.148 17.890 0.008 +SLOAN SDSS grond::i 58477.238 17.884 0.012 +SLOAN SDSS grond::i 58482.172 17.911 0.003 +SLOAN SDSS grond::i 58482.652 17.882 0.016 +SLOAN SDSS grond::i 58482.922 17.962 0.030 +SLOAN SDSS grond::i 58483.848 17.988 0.047 +SLOAN SDSS grond::i 58485.871 17.942 0.030 +SLOAN SDSS grond::i 58488.191 17.923 0.004 +SLOAN SDSS grond::i 58494.125 17.938 0.003 +SLOAN SDSS grond::i 58495.621 17.942 0.018 +SLOAN SDSS grond::i 58498.816 17.958 0.063 +SLOAN SDSS grond::i 58500.184 17.968 0.007 +SLOAN SDSS grond::i 58502.969 18.062 0.020 +SLOAN SDSS grond::i 58506.152 18.066 0.007 +SLOAN SDSS grond::i 58506.988 18.122 0.020 +SLOAN SDSS grond::i 58507.926 18.090 0.029 +SLOAN SDSS grond::i 58511.113 18.159 0.005 +SLOAN SDSS grond::i 58511.797 18.148 0.056 +SLOAN SDSS grond::i 58516.082 18.144 0.006 +SLOAN SDSS grond::i 58516.148 18.141 0.010 +SLOAN SDSS grond::i 58519.910 18.252 0.020 +SLOAN SDSS grond::i 58520.074 18.155 0.004 +SLOAN SDSS grond::i 58521.168 18.158 0.025 +SLOAN SDSS grond::i 58526.047 18.135 0.006 +SLOAN SDSS grond::i 58532.051 18.160 0.005 +SLOAN SDSS grond::i 58535.020 18.179 0.004 +SLOAN SDSS grond::i 58540.043 18.227 0.004 +SLOAN SDSS grond::i 58540.879 18.282 0.020 +SLOAN SDSS grond::i 58546.859 18.262 0.030 +SLOAN SDSS grond::i 58557.078 18.343 0.018 +SLOAN SDSS grond::i 58564.035 18.450 0.010 +SLOAN SDSS grond::i 58564.043 18.457 0.034 +SLOAN SDSS grond::i 58570.047 18.536 0.011 +SLOAN SDSS grond::i 58578.012 18.594 0.023 +SLOAN SDSS grond::i 58583.727 18.690 0.036 +SLOAN SDSS grond::i 58583.992 18.685 0.009 +SLOAN SDSS grond::i 58587.988 18.671 0.023 +SLOAN SDSS grond::i 58591.363 18.795 0.061 +SLOAN SDSS grond::i 58594.969 18.708 0.025 +SLOAN SDSS grond::i 58597.363 18.867 0.058 +SLOAN SDSS grond::i 58600.711 18.804 0.074 +SLOAN SDSS grond::i 58717.395 19.962 0.097 +SLOAN SDSS grond::i 58721.402 19.964 0.034 +SLOAN SDSS grond::i 58728.301 20.024 0.012 +SLOAN SDSS grond::i 58729.148 19.940 0.072 +SLOAN SDSS grond::i 58735.738 20.177 0.071 +SLOAN SDSS grond::i 58738.383 20.195 0.047 +SLOAN SDSS grond::i 58748.301 20.289 0.035 +SLOAN SDSS grond::i 58765.242 20.398 0.052 +SLOAN SDSS grond::i 58775.176 20.508 0.042 +SLOAN SDSS grond::i 58778.289 20.312 0.014 +SLOAN SDSS grond::i 58778.453 20.510 0.024 +SLOAN SDSS grond::i 58779.102 20.532 0.100 +SLOAN SDSS grond::i 58785.191 20.518 0.016 +SLOAN SDSS grond::i 58793.328 20.536 0.016 +SLOAN SDSS grond::i 58807.164 20.528 0.015 +SLOAN SDSS grond::i 58812.090 20.782 0.150 +SLOAN SDSS grond::i 58823.168 20.803 0.018 +SLOAN SDSS grond::i 58836.176 20.956 0.340 +SLOAN SDSS grond::i 58851.207 21.414 0.027 +SLOAN SDSS grond::i 58865.227 21.447 0.047 +SLOAN SDSS grond::i 58877.633 21.533 0.028 +SLOAN SDSS grond::i 58898.055 21.598 0.046 +SLOAN SDSS grond::i 59083.609 22.656 0.250 +SLOAN SDSS grond::i 59110.567 22.687 0.207 +SLOAN SDSS grond::i 59132.277 23.088 0.061 +SLOAN SDSS grond::i 59189.075 23.661 0.087 +SLOAN SDSS grond::i 59225.128 23.968 0.085 +SLOAN SDSS grond::i 59278.066 24.777 0.178 +SLOAN SDSS grond::z 58464.031 17.878 0.030 +SLOAN SDSS grond::z 58468.219 17.861 0.013 +SLOAN SDSS grond::z 58469.961 17.918 0.030 +SLOAN SDSS grond::z 58471.102 17.830 0.040 +SLOAN SDSS grond::z 58475.148 17.883 0.020 +SLOAN SDSS grond::z 58482.172 17.926 0.018 +SLOAN SDSS grond::z 58482.922 17.978 0.030 +SLOAN SDSS grond::z 58488.191 17.887 0.019 +SLOAN SDSS grond::z 58494.125 17.924 0.016 +SLOAN SDSS grond::z 58498.820 17.879 0.114 +SLOAN SDSS grond::z 58500.184 17.909 0.023 +SLOAN SDSS grond::z 58506.152 18.037 0.013 +SLOAN SDSS grond::z 58506.988 18.098 0.040 +SLOAN SDSS grond::z 58511.113 18.115 0.033 +SLOAN SDSS grond::z 58511.797 18.158 0.096 +SLOAN SDSS grond::z 58516.082 18.075 0.005 +SLOAN SDSS grond::z 58519.922 18.128 0.040 +SLOAN SDSS grond::z 58520.074 18.074 0.017 +SLOAN SDSS grond::z 58526.047 18.034 0.019 +SLOAN SDSS grond::z 58532.051 18.033 0.021 +SLOAN SDSS grond::z 58535.020 18.043 0.027 +SLOAN SDSS grond::z 58540.043 18.056 0.023 +SLOAN SDSS grond::z 58540.879 18.168 0.040 +SLOAN SDSS grond::z 58546.859 18.048 0.050 +SLOAN SDSS grond::z 58557.078 18.110 0.033 +SLOAN SDSS grond::z 58564.035 18.251 0.008 +SLOAN SDSS grond::z 58570.047 18.304 0.021 +SLOAN SDSS grond::z 58578.012 18.312 0.027 +SLOAN SDSS grond::z 58583.992 18.370 0.029 +SLOAN SDSS grond::z 58587.988 18.490 0.009 +SLOAN SDSS grond::z 58594.969 18.522 0.022 +SLOAN SDSS grond::z 58721.398 19.215 0.039 +SLOAN SDSS grond::z 58728.312 19.341 0.012 +SLOAN SDSS grond::z 58738.387 19.491 0.038 +SLOAN SDSS grond::z 58748.301 19.465 0.028 +SLOAN SDSS grond::z 58765.242 19.682 0.042 +SLOAN SDSS grond::z 58775.176 19.675 0.027 +SLOAN SDSS grond::z 58778.293 19.565 0.024 +SLOAN SDSS grond::z 58778.453 19.684 0.040 +SLOAN SDSS grond::z 58779.102 19.568 0.070 +SLOAN SDSS grond::z 58785.191 19.706 0.014 +SLOAN SDSS grond::z 58793.336 19.851 0.019 +SLOAN SDSS grond::z 58807.172 19.814 0.014 +SLOAN SDSS grond::z 58812.090 19.988 0.150 +SLOAN SDSS grond::z 58823.176 20.087 0.015 +SLOAN SDSS grond::z 58836.184 20.499 0.048 +SLOAN SDSS grond::z 58851.215 20.787 0.027 +SLOAN SDSS grond::z 58865.238 20.807 0.041 +SLOAN SDSS grond::z 58877.633 20.935 0.046 +SLOAN SDSS grond::z 58907.094 20.894 0.048 +SLOAN SDSS grond::z 59132.283 22.299 0.065 +SLOAN SDSS grond::z 59189.091 22.967 0.096 +SLOAN SDSS grond::z 59225.145 23.530 0.121 +SLOAN SDSS grond::z 59278.083 23.874 0.200 +2MASS 2MASS 2massj 58468.219 18.375 0.027 +2MASS 2MASS 2massj 58471.102 18.305 0.028 +2MASS 2MASS 2massj 58475.145 18.288 0.027 +2MASS 2MASS 2massj 58482.172 18.297 0.023 +2MASS 2MASS 2massj 58483.086 18.296 0.027 +2MASS 2MASS 2massj 58483.121 18.296 0.023 +2MASS 2MASS 2massj 58488.191 18.352 0.035 +2MASS 2MASS 2massj 58494.125 18.312 0.025 +2MASS 2MASS 2massj 58500.180 18.307 0.027 +2MASS 2MASS 2massj 58500.184 18.264 0.028 +2MASS 2MASS 2massj 58506.152 18.517 0.029 +2MASS 2MASS 2massj 58511.113 18.489 0.031 +2MASS 2MASS 2massj 58516.082 18.453 0.035 +2MASS 2MASS 2massj 58520.074 18.487 0.032 +2MASS 2MASS 2massj 58526.043 18.436 0.032 +2MASS 2MASS 2massj 58532.051 18.462 0.030 +2MASS 2MASS 2massj 58535.023 18.522 0.033 +2MASS 2MASS 2massj 58540.043 18.397 0.030 +2MASS 2MASS 2massj 58557.078 18.560 0.032 +2MASS 2MASS 2massj 58564.035 18.647 0.036 +2MASS 2MASS 2massj 58570.043 18.858 0.037 +2MASS 2MASS 2massj 58578.012 18.976 0.049 +2MASS 2MASS 2massj 58583.996 18.920 0.053 +2MASS 2MASS 2massj 58587.988 18.910 0.048 +2MASS 2MASS 2massj 58594.969 19.391 0.190 +2MASS 2MASS 2massj 58721.398 20.272 0.139 +2MASS 2MASS 2massj 58728.301 19.994 0.054 +2MASS 2MASS 2massj 58738.383 19.978 0.093 +2MASS 2MASS 2massj 58748.301 20.081 0.073 +2MASS 2MASS 2massj 58765.242 20.200 0.112 +2MASS 2MASS 2massj 58775.172 20.387 0.108 +2MASS 2MASS 2massj 58775.359 20.321 0.042 +2MASS 2MASS 2massj 58785.191 20.256 0.072 +2MASS 2MASS 2massj 58876.105 21.552 0.085 +2MASS 2MASS 2massh 58468.219 18.750 0.047 +2MASS 2MASS 2massh 58471.102 18.798 0.054 +2MASS 2MASS 2massh 58475.145 18.905 0.056 +2MASS 2MASS 2massh 58482.172 18.757 0.042 +2MASS 2MASS 2massh 58483.133 18.835 0.036 +2MASS 2MASS 2massh 58488.191 18.789 0.068 +2MASS 2MASS 2massh 58494.125 18.770 0.049 +2MASS 2MASS 2massh 58500.184 18.884 0.066 +2MASS 2MASS 2massh 58500.188 18.793 0.036 +2MASS 2MASS 2massh 58506.152 19.000 0.053 +2MASS 2MASS 2massh 58511.113 19.266 0.107 +2MASS 2MASS 2massh 58516.082 19.070 0.073 +2MASS 2MASS 2massh 58520.074 19.076 0.076 +2MASS 2MASS 2massh 58526.043 18.989 0.065 +2MASS 2MASS 2massh 58532.051 19.024 0.071 +2MASS 2MASS 2massh 58535.023 19.073 0.080 +2MASS 2MASS 2massh 58540.043 18.939 0.064 +2MASS 2MASS 2massh 58557.078 19.494 0.119 +2MASS 2MASS 2massh 58564.035 19.185 0.086 +2MASS 2MASS 2massh 58570.043 19.405 0.105 +2MASS 2MASS 2massh 58583.996 19.477 0.122 +2MASS 2MASS 2massh 58587.988 19.566 0.128 +2MASS 2MASS 2massh 58721.398 20.390 0.280 +2MASS 2MASS 2massh 58728.301 21.134 0.242 +2MASS 2MASS 2massh 58748.301 20.935 0.293 +2MASS 2MASS 2massh 58775.172 20.988 0.313 +2MASS 2MASS 2massh 58775.359 21.142 0.132 +2MASS 2MASS 2massh 58785.191 21.162 0.265 +2MASS 2MASS 2massh 58876.105 21.668 0.187 +2MASS 2MASS 2massks 58483.141 18.956 0.050 +2MASS 2MASS 2massks 58500.191 18.914 0.049 +2MASS 2MASS 2massks 58876.105 21.573 0.172 +GAIA GAIA gaia::G 58346.1103 19.70 0.15 +GAIA GAIA gaia::G 58402.6010 18.19 0.15 +GAIA GAIA gaia::G 58402.7772 18.22 0.15 +GAIA GAIA gaia::G 58464.2741 17.60 0.15 +GAIA GAIA gaia::G 58464.5242 17.59 0.15 +GAIA GAIA gaia::G 58464.5982 17.61 0.15 +GAIA GAIA gaia::G 58464.7744 17.61 0.15 +GAIA GAIA gaia::G 58464.8484 17.65 0.15 +GAIA GAIA gaia::G 58465.0246 17.63 0.15 +GAIA GAIA gaia::G 58465.0986 17.62 0.15 +GAIA GAIA gaia::G 58465.2747 17.58 0.15 +GAIA GAIA gaia::G 58465.3487 17.64 0.15 +GAIA GAIA gaia::G 58465.5249 17.64 0.15 +GAIA GAIA gaia::G 58465.7750 17.65 0.15 +GAIA GAIA gaia::G 58465.8490 17.62 0.15 +GAIA GAIA gaia::G 58466.0252 17.64 0.15 +GAIA GAIA gaia::G 58466.0992 17.65 0.15 +GAIA GAIA gaia::G 58466.2753 17.66 0.15 +GAIA GAIA gaia::G 58466.3493 17.64 0.15 +GAIA GAIA gaia::G 58466.5255 17.67 0.15 +GAIA GAIA gaia::G 58466.5995 17.67 0.15 +GAIA GAIA gaia::G 58466.7757 17.67 0.15 +GAIA GAIA gaia::G 58467.0258 17.67 0.15 +GAIA GAIA gaia::G 58467.0998 17.66 0.15 +GAIA GAIA gaia::G 58467.2760 17.67 0.15 +GAIA GAIA gaia::G 58467.3500 17.67 0.15 +GAIA GAIA gaia::G 58469.2772 17.70 0.15 +GAIA GAIA gaia::G 58469.3512 17.70 0.15 +GAIA GAIA gaia::G 58469.5274 17.67 0.15 +GAIA GAIA gaia::G 58469.7776 17.71 0.15 +GAIA GAIA gaia::G 58516.7596 18.12 0.15 +GAIA GAIA gaia::G 58516.8336 18.13 0.15 +GAIA GAIA gaia::G 58548.3130 18.18 0.15 +GAIA GAIA gaia::G 58570.2348 18.48 0.15 +GAIA GAIA gaia::G 58668.8605 19.29 0.15 +GAIA GAIA gaia::G 58668.9345 19.29 0.15 +GAIA GAIA gaia::G 58702.2167 19.68 0.15 +GAIA GAIA gaia::G 58702.2907 19.61 0.15 +GAIA GAIA gaia::G 58735.2805 19.79 0.15 +GAIA GAIA gaia::G 58735.3545 19.84 0.15 +GAIA GAIA gaia::G 58757.3872 20.01 0.15 diff --git a/examples/supernova_with_unknown_explosion_date.py b/examples/supernova_with_unknown_explosion_date.py new file mode 100644 index 000000000..0604236d1 --- /dev/null +++ b/examples/supernova_with_unknown_explosion_date.py @@ -0,0 +1,223 @@ +from astropy.io import ascii +import bilby +import pandas as pd +from matplotlib import rcParams +import redback +from redback.model_library import all_models_dict +from redback.likelihoods import GaussianLikelihoodQuadratureNoise +from redback import filters + +# Switching off latex rendering for faster and prettier plots + +rcParams['text.usetex'] = False +rcParams['font.family'] = 'DejaVu Sans' +rcParams['mathtext.fontset'] = 'dejavusans' + +""" +We will fit the multi-band photometry of the SLSN 2018ibb with the Arnett +model, assuming the entire light curve is powered by radioactive Ni-56 and +Co-56. + +We will also: +-Add two filters to Redback +-Use a local data file +-Use a different likelihood function +-Modify priors +-Modify settings of the nested sampler +""" + +# 1) Adding filters to SN Cosmo + +# Filter response functions can be downloaded from +# http://svo2.cab.inta-csic.es/theory/fps/ + +import astropy.units as u +import sncosmo + +from astroquery.svo_fps import SvoFps + +filter_list = SvoFps.get_filter_list(facility='La Silla', instrument='GROND') +filter_label = ['grond::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] +plot_label = ['GROND/' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + +[filters.add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + +# 2) Read in the data and put the data into a Redback SN object + +# Load data + +data = pd.read_csv('example_data/SN2018ibb_photcat_REDBACK.ascii', sep=' ') + +# Creating a Redback supernova object + +sn=redback.transient.Supernova(name = 'SN2018ibb', + data_mode = 'magnitude', + time_mjd = data['MJD'].values, + magnitude = data['MAG'].values, + magnitude_err = data['MAG_ERR'].values, + bands = data['band'].values, + use_phase_model = True + ) + +redshift = 0.166 + +# Plot data + +fig = sn.plot_data(show=False) +fig.set_xscale('linear') +fig.legend(loc='center right', ncol=2, bbox_to_anchor=(1.3, 0.25, 0.75, 0.5)) +fig.set_xlim(-200, 800) +fig.set_ylim(25, 17) + +# 3) Fit data + +# We use the phase model family since we do not know the time of explosion. + +model = 't0_supernova_extinction' + +# Physical model + +base_model = 'arnett' + +# Putting the model family and the physical together + +model_kwargs = dict( + bands = sn.filtered_sncosmo_bands, + base_model = base_model, + output_format = 'magnitude' + ) + +function = all_models_dict[model] + +# Set priors and change some default values + +priors = redback.priors.get_priors(model=model) +priors.update(redback.priors.get_priors(model=base_model)) + +# Redshift +priors['redshift'] = redshift + +# Explosion date +priors['t0'] = bilby.core.prior.Uniform( + minimum = data['MJD'].values.min() - 200, + maximum = data['MJD'].values.min() - 1, + name = 't0', + latex_label = r'$t_{\rm expl.}~\rm (day)$', + unit = None, + boundary = None + ) + +# Opacities +# We assume powering by radioactive nickel and cobalt. Hence, we freeze +# the opacities to theoretically motivated values. + +priors['kappa'] = 0.07 +priors['kappa_gamma'] = 0.03 + + +# Ejecta mass +priors['mej'] = bilby.core.prior.Uniform( + minimum = 1, + maximum = 260, + name = 'mej', + latex_label = r'$M_{\rm{ej}}~(M_{\odot})$', + unit = None, + boundary = None + ) + +# Nickel fraction +priors['f_nickel'] = bilby.core.prior.Uniform( + minimum = 0, + maximum = 1, + name = 'fni', + latex_label = r'$f_{\rm Ni}$', + unit = None, + boundary = None + ) + +# Extinction +priors['av'] = bilby.core.prior.Uniform( + minimum = 0, + maximum = 1, + name = 'av', + latex_label = r'$A_V~\rm (mag)$', + unit = None, + boundary = None + ) + +# Ejecta velocity +priors['vej'] = bilby.core.prior.Uniform( + minimum = 1000.0, + maximum = 10000.0, + name = 'vej', + latex_label = r'$v_{\rm ej}~\rm (km/s)$', + unit = None, + boundary = None + ) + +# Temperature floor +priors['temperature_floor'] = bilby.core.prior.Uniform( + minimum = 5000, + maximum = 12000, + name = 'temperature_floor', + latex_label = r'$T~(\rm K)$', + unit = None, + boundary = None + ) + +# White noise parameter +priors['sigma'] = bilby.core.prior.Uniform( + minimum = 0.001, + maximum = 2, + name = 'sigma', + latex_label = r'σ', + unit = None, + boundary = None + ) + +# The measurement uncertainties might underestimate the true error. +# We might have a systematic error in the photometry. The model +# also has a systematic uncertainty. + +# To add such these additional source of error to our model, we +# use the following likelihood function. + +likelihood_func = GaussianLikelihoodQuadratureNoise( + x = sn.x, + y = sn.y, + function = function, + kwargs = model_kwargs, + sigma_i = sn.y_err + ) + +# We are using the nested sampler nestle. We use a larger number of life +# points for a better sampling of the posterior + +sampler = "nestle" +nlive = 500 + +# Fit the data + +result = redback.fit_model(transient = sn, + model = model, + sampler = sampler, + model_kwargs = model_kwargs, + prior = priors, + sample = 'rslice', + nlive = nlive, + resume = True, + likelihood = likelihood_func, + clean = True, + plot = False + ) + +# Create a corner plot of the posteriors + +result.plot_corner(show_titles=True, title_quantiles = [0.16, 0.5, 0.84]) + +# Display the fit to each band + +fig=result.plot_multiband(show=False, random_models=100) + +fig[0].set_xscale('linear') +fig[0].set_xlim(-200, 800) diff --git a/redback/filters.py b/redback/filters.py new file mode 100644 index 000000000..36407b1b9 --- /dev/null +++ b/redback/filters.py @@ -0,0 +1,256 @@ +from astropy.io import ascii +from astropy import units as u +from astroquery.svo_fps import SvoFps +import numpy as np +import redback +import sncosmo + +def add_to_database(LABEL, WAVELENGTH, ZEROFLUX, DATABASE, PLOT_LABEL): + + """ + Add a filter to the Redback filter database. + :param LABEL: name of the filter in the Redback filter database + :param WAVELENGTH: central wavelength of the filter as defined on SVO + :return: None + """ + + frequency = 3.0e8 / WAVELENGTH + + DATABASE.add_row([LABEL, frequency, WAVELENGTH*1e10, 'black', ZEROFLUX, LABEL, PLOT_LABEL]) + +def add_to_sncosmo(LABEL, TRANSMISSION): + + """ + Add a filter to the Redback filter database. + :param LABEL: name of the filter in the Redback filter database + :param WAVELENGTH: central wavelength of the filter as defined on SVO + :return: None + """ + + band = sncosmo.Bandpass(TRANSMISSION['Wavelength'], TRANSMISSION['Transmission'], name=LABEL, wave_unit=u.angstrom) + sncosmo.register(band, LABEL, force=True) + +def add_filter_svo(FILTER, LABEL, PLOT_LABEL=None): + + """ + Wrapper to add a filter from SVO to SNCosmo and the Redback filter database + :param FILTER: record from the SVO query + :param LABEL: name of the filter in SNCosmo + :return: None + """ + + redback_db_fname = path = redback.__path__[0] + '/tables/filters.csv' + database_filters = ascii.read(redback_db_fname) + + mask = np.where((database_filters['bands'] == LABEL) & (database_filters['sncosmo_name'] == LABEL))[0] + + # Only add filter to filter database if entry does not exist in the Redback database + + if len(mask) == 0: + + # Reference (=pivot) wavelength, unit: AA + wavelength_pivot = FILTER['WavelengthRef'] + + # Effective width + # defined as int( T(lambda), lambda ) / max( T(lambda) ), unit: AA + effective_width = FILTER['WidthEff'] + + # Zero flux + + ## Motivation: + ## Filters have a width. X-ray astronomy work in flux not flux density. To combine + ## observations from different parts of the EM spectrum, we need to be able to + ## convert Fnu to F. + + ## Solution: We use the effective width to convert Fnu to F. + + constant = 3631e-23*3e8*1e10 # AB mag ZP (erg/cm^2/s/Hz) x light speed (m/s) * wavelength (m) + zeroflux = constant * ( 1 / (wavelength_pivot - effective_width/2.) - 1 / (wavelength_pivot + effective_width/2.) ) + + # Add to Redback + + plot_label = PLOT_LABEL if PLOT_LABEL != None else LABEL + + add_to_database(LABEL, wavelength_pivot * 1.0e-10, zeroflux, database_filters, plot_label) + + # Non-standard filters always needs to be re-added to SN Cosmo even if an entry exists in filter.csv + + filter_transmission = SvoFps.get_transmission_data(FILTER['filterID']) + add_to_sncosmo(LABEL, filter_transmission) + + # Prettify output + + database_filters['wavelength [Hz]'].info.format = '.03e' + database_filters['wavelength [Angstrom]'].info.format = '.02f' + database_filters['reference_flux'].info.format = '.03e' + + database_filters.write(redback_db_fname, overwrite=True, format='csv') + +def add_filter_user(FILE, LABEL, PLOT_LABEL=None, OVERWRITE=False): + + """ + Wrapper to add a user filter from SVO to SNCosmo and the Redback filter database + :param FILE: file name that contains the transmission function + (Must have two columns, wavelength must be in AA) + :param LABEL: name of the filter + :param DATABASE: location of the Redback filter database + :param PLOT_LABEL: plot label. If none is provided, it will use LABEL (default: None). + :param OVERWRITE: overwrite any existing entry? (default: False) + :return: None + """ + + # Read Redback filter database + + redback_db_fname = path = redback.__path__[0] + '/tables/filters.csv' + database_filters = ascii.read(redback_db_fname) + + # Check whether such an entry already exists + mask = np.where((database_filters['bands'] == LABEL) & (database_filters['sncosmo_name'] == LABEL))[0] + + # Add to SNCosmo + # Needs to be done even if an entry exists in filters.csv + + filter_transmission = ascii.read(FILE) + filter_transmission.rename_columns(list(filter_transmission.keys()), ['Wavelength', 'Transmission']) + + add_to_sncosmo(LABEL, filter_transmission) + + # Add to filter.csv + + # If no entry exists or you choose to overwrite an entry + + if (len(mask) == 0) or ( (len(mask) != 0) & OVERWRITE ): + + if len(mask) > 0: + database_filters.remove_rows(mask) + + # Central wavelength as defined on SVO + # int(T*l, dl) / int(T, dl) + # unit: AA + + wavelength_pivot = np.trapz(filter_transmission['Wavelength'] * filter_transmission['Transmission'], filter_transmission['Wavelength']) + wavelength_pivot /= np.trapz(filter_transmission['Transmission'], filter_transmission['Wavelength']) + + # Effective width as defined on SVO + # int( T(lambda), lambda ) / max( T(lambda) ) + # unit: AA + effective_width = np.trapz(filter_transmission['Transmission'], filter_transmission['Wavelength']) / max(filter_transmission['Transmission']) + + # Zero flux + + ## Motivation: + ## Filters have a width. X-ray astronomy work in flux not flux density. To combine + ## observations from different parts of the EM spectrum, we need to be able to + ## convert Fnu to F. + + ## Solution: We use the effective width to convert Fnu to F. + + constant = 3631e-23*3e8*1e10 # AB mag ZP (erg/cm^2/s/Hz) x light speed (m/s) * wavelength (m) + zeroflux = constant * ( 1 / (wavelength_pivot - effective_width/2.) - 1 / (wavelength_pivot + effective_width/2.) ) + + # Add to Redback + + plot_label = PLOT_LABEL if PLOT_LABEL != None else LABEL + + print(LABEL, wavelength_pivot * 1.0e-10, zeroflux, plot_label) + + add_to_database(LABEL, wavelength_pivot * 1.0e-10, zeroflux, database_filters, plot_label) + + # Prettify output + + database_filters['wavelength [Hz]'].info.format = '.03e' + database_filters['wavelength [Angstrom]'].info.format = '.02f' + database_filters['reference_flux'].info.format = '.03e' + + database_filters.write(redback_db_fname, overwrite=True, format='csv') + + else: + + print('Filter {} already exists. Set OVERWRITE to True if you want to overwrite the existing entry'.format(LABEL)) + +def add_common_filters(): + + """ + Adds Euclid, NTT/EFOSC2, MPG/GROND, Spitzer and WISE filters from SVO + + :return: None + """ + + # GROND + + print('MPG/GROND optical and NIR filters...') + + filter_list = SvoFps.get_filter_list(facility='La Silla', instrument='GROND') + filter_label = ['grond::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + plot_label = ['GROND/' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + print('done.\n') + + # NTT/EFOSC2 + # Adding only Gunn filters + + print('NTT/EFOSC2 Gunn filters...') + + filter_list = SvoFps.get_filter_list(facility='La Silla', instrument='EFOSC') + mask = [True if ('Gunn' in filter_list['Description'][ii]) else False for ii in range(len(filter_list))] + filter_list = filter_list[mask] + filter_label = ['efosc2::' + x for x in filter_list['Band']] + plot_label = ['EFOSC/' + x for x in filter_list['Band']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + print('done.\n') + + # Euclid + + print('EUCLID optical and IR filters...') + + filter_list = SvoFps.get_filter_list(facility='Euclid', instrument='VIS') + filter_label = ['euclid::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + plot_label = ['EUCLID/' + x.split('/')[1].split('.')[1].upper() for x in filter_list['filterID']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + + filter_list = SvoFps.get_filter_list(facility='Euclid', instrument='NISP') + mask = [True if 'NISP.' in filter_list['filterID'][ii] else False for ii in range(len(filter_list))] + filter_list = filter_list[mask] + filter_label = ['euclid::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + plot_label = ['EUCLID/' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + print('done.\n') + + # Spitzer + + print('Spitzer IRAC filters...') + + filter_list = SvoFps.get_filter_list(facility='Spitzer', instrument='IRAC') + filter_label = ['irac::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + plot_label = ['IRAC/' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + print('done.\n') + + # WISE + + print('WISE filters...') + + filter_list = SvoFps.get_filter_list(facility='WISE') + filter_label = ['wise::' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + plot_label = ['WISE/' + x.split('/')[1].split('.')[1] for x in filter_list['filterID']] + + [add_filter_svo(filter_list[ii], filter_label[ii], plot_label[ii]) for ii in range(len(filter_list))] + + print('done.\n') + +def show_all_filters(): + + redback_db_fname = path = redback.__path__[0] + '/tables/filters.csv' + database_filters = ascii.read(redback_db_fname) + + return database_filters \ No newline at end of file diff --git a/redback/model_library.py b/redback/model_library.py index 8e872451b..0d1dcbbe8 100644 --- a/redback/model_library.py +++ b/redback/model_library.py @@ -1,13 +1,13 @@ from redback.transient_models import afterglow_models, \ extinction_models, kilonova_models, fireball_models, \ gaussianprocess_models, magnetar_models, magnetar_driven_ejecta_models, phase_models, phenomenological_models, \ - prompt_models, shock_powered_models, supernova_models, tde_models, integrated_flux_afterglow_models + prompt_models, shock_powered_models, supernova_models, tde_models, integrated_flux_afterglow_models, combined_models from redback.utils import get_functions_dict modules = [afterglow_models, extinction_models, fireball_models, gaussianprocess_models, integrated_flux_afterglow_models, kilonova_models, magnetar_models, magnetar_driven_ejecta_models, - phase_models, phenomenological_models, prompt_models, shock_powered_models, supernova_models, tde_models] + phase_models, phenomenological_models, prompt_models, shock_powered_models, supernova_models, tde_models, combined_models] all_models_dict = dict() modules_dict = dict() diff --git a/redback/priors/arnett.prior b/redback/priors/arnett.prior index aab3b852a..9d75025da 100644 --- a/redback/priors/arnett.prior +++ b/redback/priors/arnett.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/arnett_bolometric.prior b/redback/priors/arnett_bolometric.prior index 0a132b5b4..0e2aa7667 100644 --- a/redback/priors/arnett_bolometric.prior +++ b/redback/priors/arnett_bolometric.prior @@ -1,5 +1,7 @@ f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_{\odot})$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') + + diff --git a/redback/priors/basic_magnetar.prior b/redback/priors/basic_magnetar.prior index 84549dead..792eea314 100644 --- a/redback/priors/basic_magnetar.prior +++ b/redback/priors/basic_magnetar.prior @@ -1,4 +1,4 @@ -p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$p_{0} [ms]$') -bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}$ [10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M [M_{\odot}]$') -theta_pb = Uniform(0, 3.14, 'theta_pb', latex_label = r'$\theta_{\mathrm{PB}}$') \ No newline at end of file +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') \ No newline at end of file diff --git a/redback/priors/basic_magnetar_powered.prior b/redback/priors/basic_magnetar_powered.prior index 228f5dcfa..215202c67 100644 --- a/redback/priors/basic_magnetar_powered.prior +++ b/redback/priors/basic_magnetar_powered.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$p_{0} [ms]$') -bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}$ [10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}} [M_{\odot}]$') -theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{P-B}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_{\odot})$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/basic_magnetar_powered_bolometric.prior b/redback/priors/basic_magnetar_powered_bolometric.prior index 34dff5b46..6875a7637 100644 --- a/redback/priors/basic_magnetar_powered_bolometric.prior +++ b/redback/priors/basic_magnetar_powered_bolometric.prior @@ -1,8 +1,8 @@ -p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$p_{0} [ms]$') -bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}$ [10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}} [M_{\odot}]$') -theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{P-B}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}$ [km/s]') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_{\odot})$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/basic_mergernova.prior b/redback/priors/basic_mergernova.prior index fdcbf4660..0ce84ed06 100644 --- a/redback/priors/basic_mergernova.prior +++ b/redback/priors/basic_mergernova.prior @@ -1,11 +1,11 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$m_{\mathrm{ism}}$') -p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$p_{0} [ms]$') -bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}$ [10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M [M_{\odot}]$') -theta_pb = Uniform(0, 1.57, 'theta_pb', latex_label = r'$\theta_{\mathrm{PB}}$') -thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label='$\epsilon_{\mathrm{th}}$') \ No newline at end of file +ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}~({\mathrm{cm}})$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$n_{\mathrm{ism}}~({\mathrm{cm}}^{-3})$') +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 1.57, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label=r'$\\epsilon_{\mathrm{th}}$') \ No newline at end of file diff --git a/redback/priors/bulla_bns_kilonova.prior b/redback/priors/bulla_bns_kilonova.prior index cea2f63cc..65233ebf9 100644 --- a/redback/priors/bulla_bns_kilonova.prior +++ b/redback/priors/bulla_bns_kilonova.prior @@ -1,5 +1,5 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej_dyn = Uniform(0.001, 0.02, 'mej_dyn', latex_label = r'$M_{\mathrm{ej-dyn}} [M_{\odot}]$') -mej_disk = Uniform(0.01, 0.13, 'mej_disk', latex_label = r'$M_{\mathrm{ej-disk}} [M_{\odot}]$') -phi = Uniform(0,90, 'phi', latex_label = r'$\phi$') -costheta_obs = Uniform(0,1, 'costheta_obs', latex_label = r'$\cos\theta_{\mathrm{obs}}$') \ No newline at end of file +mej_dyn = Uniform(0.001, 0.02, 'mej_dyn', latex_label = r'$M_{\mathrm{ej-dyn}}~(M_{\odot})$') +mej_disk = Uniform(0.01, 0.13, 'mej_disk', latex_label = r'$M_{\mathrm{ej-disk}}~(M_{\odot})$') +phi = Uniform(0,90, 'phi', latex_label = r'$\\phi~(^\circ)$') +costheta_obs = Uniform(0,1, 'costheta_obs', latex_label = r'$\cos~\\theta_{\mathrm{obs}}$') \ No newline at end of file diff --git a/redback/priors/bulla_nsbh_kilonova.prior b/redback/priors/bulla_nsbh_kilonova.prior index 5b7765e5e..ee08fbbff 100644 --- a/redback/priors/bulla_nsbh_kilonova.prior +++ b/redback/priors/bulla_nsbh_kilonova.prior @@ -1,4 +1,4 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej_dyn = Uniform(0.01, 0.09, 'mej_dyn', latex_label = r'$M_{\mathrm{ej-dyn}} [M_{\odot}]$') -mej_disk = Uniform(0.01, 0.09, 'mej_disk', latex_label = r'$M_{\mathrm{ej-disk}} [M_{\odot}]$') -costheta_obs = Uniform(0,1, 'costheta_obs', latex_label = r'$\cos\theta_{\mathrm{obs}}$') \ No newline at end of file +mej_dyn = Uniform(0.01, 0.09, 'mej_dyn', latex_label = r'$M_{\mathrm{ej-dyn}}~(M_{\odot})$') +mej_disk = Uniform(0.01, 0.09, 'mej_disk', latex_label = r'$M_{\mathrm{ej-disk}}~(M_{\odot})$') +costheta_obs = Uniform(0,1, 'costheta_obs', latex_label = r'$\cos~\\theta_{\mathrm{obs}}$') \ No newline at end of file diff --git a/redback/priors/cocoon.prior b/redback/priors/cocoon.prior index 62bf039b1..97edddcc2 100644 --- a/redback/priors/cocoon.prior +++ b/redback/priors/cocoon.prior @@ -1,13 +1,13 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') umax = Uniform(0.15, 0.7, 'umax', latex_label=r'$U_{\mathrm{max}}$') umin = Uniform(0.1, 0.15, 'umin', latex_label=r'$U_{\mathrm{min}}$') -loge0 = Uniform(45, 50, 'loge0', latex_label=r'$\log_{10} E_{i}$') +loge0 = Uniform(45, 50, 'loge0', latex_label=r'$\log_{10}~E_{i} / {\mathrm{erg}}$') k = Uniform(0.5, 4, 'k', latex_label=r'$k$') -mej = Uniform(1e-3, 0.07, 'mej', latex_label=r'Ejecta mass$M_{\odot}$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +mej = Uniform(1e-3, 0.07, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(1,100, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(1,100, 'g0', latex_label=r'$\\Gamma_{0}$') #max_energy = Constraint(minimum=1e50,maximum=6e51) diff --git a/redback/priors/collapsing_magnetar.prior b/redback/priors/collapsing_magnetar.prior index bb9d8f9ab..a147edef7 100644 --- a/redback/priors/collapsing_magnetar.prior +++ b/redback/priors/collapsing_magnetar.prior @@ -1,6 +1,6 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') -tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') +tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau~({\mathrm{s}})$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -tcol = LogUniform(10, 1e8, 'tcol', latex_label= r'$t_\mathrm{col}$') +tcol = LogUniform(10, 1e8, 'tcol', latex_label= r'$t_{\mathrm{col}}~({\mathrm{s}})$') diff --git a/redback/priors/collapsing_radiative_losses.prior b/redback/priors/collapsing_radiative_losses.prior index f41243a10..ec11c6176 100644 --- a/redback/priors/collapsing_radiative_losses.prior +++ b/redback/priors/collapsing_radiative_losses.prior @@ -3,7 +3,7 @@ alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -tcol = LogUniform(10, 1e8, 'tcol', latex_label= r'$t_\mathrm{col}$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') -t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') -log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10} E_{0}$') \ No newline at end of file +tcol = LogUniform(10, 1e8, 'tcol', latex_label= r'$t_{\mathrm{col}}~({\mathrm{s}})$') +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}~({\mathrm{s}})$') +log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10}~E_{0} / {\mathrm{erg}}$') \ No newline at end of file diff --git a/redback/priors/cone_afterglow.prior b/redback/priors/cone_afterglow.prior index 7712e2e2e..d5677aa45 100644 --- a/redback/priors/cone_afterglow.prior +++ b/redback/priors/cone_afterglow.prior @@ -1,12 +1,12 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}~({\mathrm{rad}})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0}/{\mathrm{erg}}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') thw = Uniform(1, 8, 'thw', latex_label=r'$\\theta_{\mathrm{truncation}}$') beta = Uniform(0.5, 10, 'beta', latex_label=r'$\\beta$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}}/{\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') \ No newline at end of file +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') \ No newline at end of file diff --git a/redback/priors/csm_interaction.prior b/redback/priors/csm_interaction.prior index fed178c62..e802c501a 100644 --- a/redback/priors/csm_interaction.prior +++ b/redback/priors/csm_interaction.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -csm_mass = LogUniform(1e-4, 100, 'csm_mass', latex_label = r'$M_{\mathrm{csm}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -eta = Uniform(0, 1, 'eta', latex_label = r'$\\eta$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +csm_mass = LogUniform(1e-4, 100, 'csm_mass', latex_label = r'$M_{\mathrm{csm}}~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +eta = Uniform(0, 1, '\\eta', latex_label = r'$\\eta$') rho = Uniform(8, 12, 'rho', latex_label = r'$\\rho$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -r0 = Uniform(4, 8, 'r0', latex_label=r'$r_0$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +r0 = Uniform(4, 8, 'r0', latex_label=r'$r_0~({\mathrm{AU}})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/csm_nickel.prior b/redback/priors/csm_nickel.prior index 17e3fa45f..ac3f55094 100644 --- a/redback/priors/csm_nickel.prior +++ b/redback/priors/csm_nickel.prior @@ -1,11 +1,11 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -csm_mass = LogUniform(1e-4, 100, 'csm_mass', latex_label = r'$M_{\mathrm{csm}} [M_{\odot}]$') -ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{k}} [erg]$') -eta = Uniform(0, 1, 'eta', latex_label = r'$\\eta$') +csm_mass = LogUniform(1e-4, 100, 'csm_mass', latex_label = r'$M_{\mathrm{csm}}~(M_\odot)$') +ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{kin}}~(\mathrm{ erg})$') +eta = Uniform(0, 1, '\\eta', latex_label = r'$\\eta$') rho = Uniform(8, 12, 'rho', latex_label = r'$\\rho$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -r0 = Uniform(4, 8, 'r0', latex_label=r'$r_0$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +r0 = Uniform(4, 8, 'r0', latex_label=r'$r_0~({\mathrm{AU}})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/evolving_magnetar.prior b/redback/priors/evolving_magnetar.prior index 3522c1bd7..233e723f6 100644 --- a/redback/priors/evolving_magnetar.prior +++ b/redback/priors/evolving_magnetar.prior @@ -1,8 +1,8 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$a_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -p0 = Uniform(0.7e-3, 1, 'p0', latex_label = r'$P_{0} [s]$') -mu0 = Uniform(1e-3, 10, 'mu0', latex_label = r'$\mu_{0} [10^{33} G cm^{3}]$') -muinf = Uniform(1e-3, 10, 'muinf', latex_label = r'$\mu_{\inf} [10^{33} G cm^3]$') -sinalpha0 = Uniform(1e-3, 0.99, 'sinalpha0', latex_label = r'$\sin\\alpha_{0}$') -tm = Uniform(1e-3, 100, 'tm', latex_label = r'$t_{m} [days]$') -II = LogUniform(1e45, 1e46, 'II', latex_label = r'$I$') +p0 = Uniform(0.7e-3, 1, 'p0', latex_label = r'$P_{0}~(\mathrm{s})$') +mu0 = Uniform(1e-3, 10, 'mu0', latex_label = r'$\mu_{0}~(10^{33}~\mathrm{G}_{ }\,\mathrm{cm}^{3})$') +muinf = Uniform(1e-3, 10, 'muinf', latex_label = r'$\mu_{\inf}~(10^{33}~\mathrm{G}_{ }\,\mathrm{cm}^{3})$') +sinalpha0 = Uniform(1e-3, 0.99, 'sinalpha0', latex_label = r'$\sin~\\alpha_{0}$') +tm = Uniform(1e-3, 100, 'tm', latex_label = r'$t_{m}~(\mathrm{day})$') +II = LogUniform(1e45, 1e46, 'II', latex_label = r'$I~({\mathrm{g_{}cm}})^2$') diff --git a/redback/priors/evolving_magnetar_only.prior b/redback/priors/evolving_magnetar_only.prior index 50e123ffd..afbe15b82 100644 --- a/redback/priors/evolving_magnetar_only.prior +++ b/redback/priors/evolving_magnetar_only.prior @@ -1,6 +1,6 @@ -p0 = Uniform(0.7e-3, 1, 'p0', latex_label = r'$P_{0} [s]$') -mu0 = Uniform(1e-3, 10, 'mu0', latex_label = r'$\mu_{0} [10^{33} G cm^{3}]$') -muinf = Uniform(1e-3, 10, 'muinf', latex_label = r'$\mu_{\inf} [10^{33} G cm^3]$') -sinalpha0 = Uniform(1e-3, 0.99, 'sinalpha0', latex_label = r'$\sin\\alpha_{0}$') -tm = Uniform(1e-3, 100, 'tm', latex_label = r'$t_{m} [days]$') -II = LogUniform(1e45, 1e46, 'II', latex_label = r'$I$') +p0 = Uniform(0.7e-3, 1, 'p0', latex_label = r'$P_{0}~(\mathrm{s})$') +mu0 = Uniform(1e-3, 10, 'mu0', latex_label = r'$\mu_{0}~(10^{33}~\mathrm{G}_{ }\,\mathrm{cm}^{3})$') +muinf = Uniform(1e-3, 10, 'muinf', latex_label = r'$\mu_{\inf}~(10^{33}~\mathrm{G}_{ }\,\mathrm{cm}^{3})$') +sinalpha0 = Uniform(1e-3, 0.99, 'sinalpha0', latex_label = r'$\sin~\\alpha_{0}$') +tm = Uniform(1e-3, 100, 'tm', latex_label = r'$t_{m}~(\mathrm{day})$') +II = LogUniform(1e45, 1e46, 'II', latex_label = r'$I~({\mathrm{g_{}\,cm}})^2$') diff --git a/redback/priors/exponential_powerlaw_bolometric.prior b/redback/priors/exponential_powerlaw_bolometric.prior index 513ba502d..ec3cb1c8c 100644 --- a/redback/priors/exponential_powerlaw_bolometric.prior +++ b/redback/priors/exponential_powerlaw_bolometric.prior @@ -1,8 +1,8 @@ -lbol_0 = LogUniform(1e36,1e48,name='lbol_0', latex_label = r'$L_{\mathrm{bol}~0}$') +lbol_0 = LogUniform(1e36,1e48,name='lbol_0', latex_label = r'$L_{\mathrm{bol}~0}~({\mathrm{erg/s}})$') alpha_1 = Uniform(0,10,name='alpha_1',latex_label='$\\alpha_{1}$') alpha_2 = Uniform(0,10,name='alpha_2',latex_label='$\\alpha_{2}$') -tpeak_d = LogUniform(0.001,200,name='tpeak', latex_label = r'$t_{\mathrm{peak}}$~[days]') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +tpeak_d = LogUniform(0.001,200,name='tpeak', latex_label = r'$t_{\mathrm{peak}}~({\mathrm{day}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/five_component_powerlaw.prior b/redback/priors/five_component_powerlaw.prior index d4e37b3c9..5eda1e8a6 100644 --- a/redback/priors/five_component_powerlaw.prior +++ b/redback/priors/five_component_powerlaw.prior @@ -1,10 +1,10 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ }t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') -delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\Delta_{ } t_{2}$') +delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\\Delta_{ }t_{2}$') alpha_3 = Uniform(-10, 0, 'alpha_3', latex_label = r'$\\alpha_{3}$') -delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\Delta_{ } t_{3}$') +delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\\Delta_{ }t_{3}$') alpha_4 = Uniform(-10, 0, 'alpha_4', latex_label = r'$\\alpha_{4}$') -delta_time_four = LogUniform(1e-10, 1e6, 'delta_time_four', latex_label = r'$\Delta_{ } t_{4}$') +delta_time_four = LogUniform(1e-10, 1e6, 'delta_time_four', latex_label = r'$\\Delta_{ }t_{4}$') alpha_5 = Uniform(-10, 0, 'alpha_5', latex_label = r'$\\alpha_{5}$') diff --git a/redback/priors/four_component_powerlaw.prior b/redback/priors/four_component_powerlaw.prior index 418607ca1..3487a6251 100644 --- a/redback/priors/four_component_powerlaw.prior +++ b/redback/priors/four_component_powerlaw.prior @@ -1,8 +1,8 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ }t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') -delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\Delta_{ } t_{2}$') +delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\\Delta_{ }t_{2}$') alpha_3 = Uniform(-10, 0, 'alpha_3', latex_label = r'$\\alpha_{3}$') -delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\Delta_{ } t_{3}$') +delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\\Delta_{ }t_{3}$') alpha_4 = Uniform(-10, 0, 'alpha_4', latex_label = r'$\\alpha_{4}$') diff --git a/redback/priors/gaussian.prior b/redback/priors/gaussian.prior index 5be0f655e..1bd41c0e1 100644 --- a/redback/priors/gaussian.prior +++ b/redback/priors/gaussian.prior @@ -1,11 +1,11 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(name='thV', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +thv = Sine(name='thV', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}~({\mathrm{rad}})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0}/{\mathrm{erg}}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') thw = Uniform(1, 8, 'thw', latex_label=r'$\\theta_{\mathrm{truncation}}$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}}/{\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') diff --git a/redback/priors/gaussiancore.prior b/redback/priors/gaussiancore.prior index 620bf4475..527ea1171 100644 --- a/redback/priors/gaussiancore.prior +++ b/redback/priors/gaussiancore.prior @@ -1,11 +1,11 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(maximum=np.pi/2, name='thv', latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +thv = Sine(maximum=np.pi/2, name='thv', latex_label=r'$\\theta_{\mathrm{observer}}~({\mathrm{rad}})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0}/{\mathrm{erg}}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') thw = Uniform(1, 8, 'thw', latex_label=r'$\\theta_{\mathrm{truncation}}$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}}/{\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') diff --git a/redback/priors/gaussianrise_cooling_envelope.prior b/redback/priors/gaussianrise_cooling_envelope.prior index e22ff3b61..493836907 100644 --- a/redback/priors/gaussianrise_cooling_envelope.prior +++ b/redback/priors/gaussianrise_cooling_envelope.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-6, 3, 'redshift', latex_label = r'$z$') -peak_time = LogUniform(0.1,60, name='peak_time', latex_label = r'$t_{\mathrm{peak}}$~[days]') -sigma_t = LogUniform(10,60, name='sigma_t', latex_label = r'$\sigma$~[days]') -mbh_6 = LogUniform(0.01, 20, name='mbh_6', latex_label = r'$M_{\mathrm{BH}}~[10^{6}~M_{\odot}]$') -stellar_mass = LogUniform(0.1, 10, name='stellar_mass', latex_label = r'$M_{\mathrm{star}} [M_{\odot}]$') -eta = LogUniform(1e-4, 0.1, name='eta', latex_label=r'$\eta$') +peak_time = LogUniform(0.1,60, name='peak_time', latex_label = r'$t_{\mathrm{peak}}~(\mathrm{day})$') +sigma_t = LogUniform(10,60, name='sigma_t', latex_label = r'$\\sigma~(\mathrm{day})$') +mbh_6 = LogUniform(0.01, 20, name='mbh_6', latex_label = r'$M_{\mathrm{BH}}~(10^{6}~M_\odot)$') +stellar_mass = LogUniform(0.1, 10, name='stellar_mass', latex_label = r'$M_{\mathrm{star}}~(M_\odot)$') +eta = LogUniform(1e-4, 0.1, name='eta', latex_label=r'$\\eta$') alpha = LogUniform(0.1, 1, name='alpha', latex_label=r'$\\alpha$') beta = LogUniform(0.5, 1, name='beta', latex_label=r'$\\beta$') beta = 0.9 diff --git a/redback/priors/gaussianrise_cooling_envelope_bolometric.prior b/redback/priors/gaussianrise_cooling_envelope_bolometric.prior index e68a68301..47a606a32 100644 --- a/redback/priors/gaussianrise_cooling_envelope_bolometric.prior +++ b/redback/priors/gaussianrise_cooling_envelope_bolometric.prior @@ -1,8 +1,8 @@ -peak_time = LogUniform(0.1,60, name='peak_time', latex_label = r'$t_{\mathrm{peak}}$~[days]') -sigma_t = LogUniform(10,60, name='sigma_t', latex_label = r'$\sigma$~[days]') -mbh_6 = LogUniform(0.01, 20, name='mbh_6', latex_label = r'$M_{\mathrm{BH}}~[10^{6}~M_{\odot}]$') -stellar_mass = LogUniform(0.1, 10, name='stellar_mass', latex_label = r'$M_{\mathrm{star}} [M_{\odot}]$') -eta = LogUniform(1e-4, 0.1, name='eta', latex_label=r'$\eta$') +peak_time = LogUniform(0.1,60, name='peak_time', latex_label = r'$t_{\mathrm{peak}}~(\mathrm{day})$') +sigma_t = LogUniform(10,60, name='sigma_t', latex_label = r'$\\sigma~(\mathrm{day})$') +mbh_6 = LogUniform(0.01, 20, name='mbh_6', latex_label = r'$M_{\mathrm{BH}}~(10^{6}~M_\odot)$') +stellar_mass = LogUniform(0.1, 10, name='stellar_mass', latex_label = r'$M_{\mathrm{star}}~(M_\odot)$') +eta = LogUniform(1e-4, 0.1, name='eta', latex_label=r'$\\eta$') alpha = LogUniform(0.1, 1, name='alpha', latex_label=r'$\\alpha$') beta = LogUniform(0.5, 1, name='beta', latex_label=r'$\\beta$') beta = 0.9 diff --git a/redback/priors/general_magnetar.prior b/redback/priors/general_magnetar.prior index a681a09d6..add4eac7d 100644 --- a/redback/priors/general_magnetar.prior +++ b/redback/priors/general_magnetar.prior @@ -1,5 +1,5 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-5, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ }t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') -delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\Delta_{ } t_{2}$') +delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\\Delta_{ }t_{2}$') diff --git a/redback/priors/general_magnetar_slsn.prior b/redback/priors/general_magnetar_slsn.prior index 3f5a9f1a4..025664a77 100644 --- a/redback/priors/general_magnetar_slsn.prior +++ b/redback/priors/general_magnetar_slsn.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-6,3,name='redshift', latex_label = r'$z$') -l0 = LogUniform(1e-40, 1e48, 'l0', latex_label = r'$L_{0}$') -tsd = LogUniform(1e2, 1e6, 'tsd', latex_label = r'$\\tau_{sd}$') +l0 = LogUniform(1e-40, 1e48, 'l0', latex_label = r'$L_{0}~({\mathrm{erg/s}})$') +tsd = LogUniform(1e2, 1e6, 'tsd', latex_label = r'$\\tau_{sd}~({\mathrm{s}})$') nn = Uniform(1.1, 7, 'nn', latex_label = r'$n$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_{\odot})$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/general_mergernova.prior b/redback/priors/general_mergernova.prior index 2a3394285..f7b64a181 100644 --- a/redback/priors/general_mergernova.prior +++ b/redback/priors/general_mergernova.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$m_{\mathrm{ism}}$') +ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}~({\mathrm{cm}})$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$n_{\mathrm{ism}}~({\mathrm{cm}}^{-3})$') l0 = LogUniform(1e40, 1e50, 'l0', latex_label = r'$l_0$') -tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}$') +tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = r'$\\tau_{\mathrm{sd}}~({\mathrm{s}})$') nn = Uniform(2, 7, 'nn', latex_label='$n$') -thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label='$\epsilon_{\mathrm{th}}$') \ No newline at end of file +thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label=r'$\epsilon_{\mathrm{th}}$') \ No newline at end of file diff --git a/redback/priors/general_mergernova_evolution.prior b/redback/priors/general_mergernova_evolution.prior index 45370e6c3..db5e241f0 100644 --- a/redback/priors/general_mergernova_evolution.prior +++ b/redback/priors/general_mergernova_evolution.prior @@ -1,13 +1,13 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$m_{\mathrm{ism}}$') -logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10} B_{\mathrm{int}} [G]$') -logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10} B_{\mathrm{ext}} [G]$') -p0 = LogUniform(0.7e-3, 10, 'p0', latex_label = r'$p_{0} [s]$') -chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}$') -radius = Uniform(10, 13, 'radius', latex_label = r'$R [\mathrm{km}]$') -logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10} I$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}~({\mathrm{cm}})$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$n_{\mathrm{ism}}~({\mathrm{cm}}^{-3})$') +logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10}~B_{\mathrm{int}}~(\mathrm{G})$') +logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10}~B_{\mathrm{ext}}~(\mathrm{G})$') +p0 = LogUniform(0.7e-3, 10, 'p0', latex_label = r'$P_{0}~(\mathrm{s})$') +chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}~({\mathrm{rad}})$') +radius = Uniform(10, 13, 'radius', latex_label = r'$R~(\mathrm{km})$') +logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10}~I$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/general_mergernova_thermalisation.prior b/redback/priors/general_mergernova_thermalisation.prior index 98f46ab7f..022262e59 100644 --- a/redback/priors/general_mergernova_thermalisation.prior +++ b/redback/priors/general_mergernova_thermalisation.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$m_{\mathrm{ism}}$') +ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}~({\mathrm{cm}})$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$n_{\mathrm{ism}}~({\mathrm{cm}}^{-3})$') l0 = LogUniform(1e40, 1e50, 'l0', latex_label = r'$l_0$') -tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}$') +tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = r'$\\tau_{\mathrm{sd}}~({\mathrm{s}})$') nn = Uniform(2, 7, 'nn', latex_label='$n$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/general_metzger_magnetar_driven.prior b/redback/priors/general_metzger_magnetar_driven.prior index 39f79be2f..8f2264dff 100644 --- a/redback/priors/general_metzger_magnetar_driven.prior +++ b/redback/priors/general_metzger_magnetar_driven.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') beta = Uniform(3, 5, 'beta', latex_label=r'$\\beta$') -kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\kappa$') +kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') l0 = LogUniform(1e40, 1e50, 'l0', latex_label = r'$l_0$') -tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}$') -nn = Uniform(2, 7, 'nn', latex_label='$n$') -thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label='$\epsilon_{\mathrm{th}}$') \ No newline at end of file +tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = r'$\\tau_{\mathrm{sd}}~({\mathrm{s}})$') +nn = Uniform(2, 7, 'nn', latex_label=r'$n$') +thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label=r'$\epsilon_{\mathrm{th}}$') \ No newline at end of file diff --git a/redback/priors/general_metzger_magnetar_driven_evolution.prior b/redback/priors/general_metzger_magnetar_driven_evolution.prior index 414075d7e..e5eb3260b 100644 --- a/redback/priors/general_metzger_magnetar_driven_evolution.prior +++ b/redback/priors/general_metzger_magnetar_driven_evolution.prior @@ -1,12 +1,12 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') beta = Uniform(3, 5, 'beta', latex_label=r'$\\beta$') -kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\kappa$') -logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10} B_{\mathrm{int}} [G]$') -logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10} B_{\mathrm{ext}} [G]$') -p0 = LogUniform(0.7e-3, 10, 'p0', latex_label = r'$p_{0} [s]$') -chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}$') -radius = Uniform(10, 13, 'radius', latex_label = r'$R [\mathrm{km}]$') -logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10} I$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10}~B_{\mathrm{int}}~(\mathrm{G})$') +logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10}~B_{\mathrm{ext}}~(\mathrm{G})$') +p0 = LogUniform(0.7e-3, 10, 'p0', latex_label = r'$P_{0}~(\mathrm{s})$') +chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}~({\mathrm{rad}})$') +radius = Uniform(10, 13, 'radius', latex_label = r'$R~(\mathrm{km})$') +logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10}~I$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/general_metzger_magnetar_driven_thermalisation.prior b/redback/priors/general_metzger_magnetar_driven_thermalisation.prior index f1bbde752..b70945355 100644 --- a/redback/priors/general_metzger_magnetar_driven_thermalisation.prior +++ b/redback/priors/general_metzger_magnetar_driven_thermalisation.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') beta = Uniform(3, 5, 'beta', latex_label=r'$\\beta$') -kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\kappa$') +kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') l0 = LogUniform(1e40, 1e50, 'l0', latex_label = r'$l_0$') -tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}$') +tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}~({\mathrm{s}})$') nn = Uniform(2, 7, 'nn', latex_label='$n$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/gw_magnetar.prior b/redback/priors/gw_magnetar.prior index b9d987c8e..ec6eddf96 100644 --- a/redback/priors/gw_magnetar.prior +++ b/redback/priors/gw_magnetar.prior @@ -1,6 +1,6 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') fgw0 = LogUniform(100, 3000, 'fgw0', latex_label = r'$f_{gw-0}$') -tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') +tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau~({\mathrm{s}})$') nn = Uniform(1.1, 7, 'nn', latex_label = r'$n$') -log_ii = Uniform(44, 46, 'log_ii', latex_label = r'$\log_{10}I$') \ No newline at end of file +log_ii = Uniform(44, 46, 'log_ii', latex_label = r'$\log_{10}~I / ({\mathrm{g\,cm}}^{2})$') \ No newline at end of file diff --git a/redback/priors/homologous_expansion_supernova.prior b/redback/priors/homologous_expansion_supernova.prior index 924bd9ce2..440b78fcc 100644 --- a/redback/priors/homologous_expansion_supernova.prior +++ b/redback/priors/homologous_expansion_supernova.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{k}} [erg]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{kin}}~(\mathrm{erg})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/kasen_bns_kilonova.prior b/redback/priors/kasen_bns_kilonova.prior index 9ef0c1d0c..70c9cf0b5 100644 --- a/redback/priors/kasen_bns_kilonova.prior +++ b/redback/priors/kasen_bns_kilonova.prior @@ -1,4 +1,4 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') -chi = Uniform(0,1, 'chi', latex_label = r'$\chi$') \ No newline at end of file +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') +chi = Uniform(0,1, 'chi', latex_label = r'$\\chi~({\mathrm{rad}})$') \ No newline at end of file diff --git a/redback/priors/kilonova_afterglow.prior b/redback/priors/kilonova_afterglow.prior index 0fc8a4a7b..1d8ee94ea 100644 --- a/redback/priors/kilonova_afterglow.prior +++ b/redback/priors/kilonova_afterglow.prior @@ -1,13 +1,13 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') umax = Uniform(0.15, 0.7, 'umax', latex_label=r'$U_{\mathrm{max}}$') umin = Uniform(0.1, 0.15, 'umin', latex_label=r'$U_{\mathrm{min}}$') -loge0 = Uniform(45, 50, 'loge0', latex_label=r'$\log_{10} E_{i}$') +loge0 = Uniform(45, 50, 'loge0', latex_label=r'$\log_{10}~E_{i}/{\mathrm{erg}}$') k = Uniform(0.5, 4, 'k', latex_label=r'$k$') -mej = Uniform(1e-3, 0.07, 'mej', latex_label=r'Ejecta mass$M_{\odot}$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +mej = Uniform(1e-3, 0.07, 'mej', latex_label=r'$M_{\mathrm{ej}}~(M_\odot)$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}}/{\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(1,4, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(1,4, 'g0', latex_label=r'$\\Gamma_{0}$') #max_energy = Constraint(minimum=1e50,maximum=6e51) diff --git a/redback/priors/magnetar_luminosity_evolution.prior b/redback/priors/magnetar_luminosity_evolution.prior index 4aa990185..ea30850fe 100644 --- a/redback/priors/magnetar_luminosity_evolution.prior +++ b/redback/priors/magnetar_luminosity_evolution.prior @@ -1,6 +1,6 @@ -logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10} B_{\mathrm{int}} [G]$') -logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10} B_{\mathrm{ext}} [G]$') -p0 = LogUniform(0.7e-3, 10e-3, 'p0', latex_label = r'$p_{0} [s]$') -chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}$') -radius = Uniform(10, 13, 'radius', latex_label = r'$R [\mathrm{km}]$') -logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10} I$') \ No newline at end of file +logbint = Uniform(14, 18, 'logbint', latex_label = r'$\log_{10}~B_{\mathrm{int}}~(\mathrm{G})$') +logbext = Uniform(14, 18, 'logbext', latex_label = r'$\log_{10}~B_{\mathrm{ext}}~(\mathrm{G})$') +p0 = LogUniform(0.7e-3, 10e-3, 'p0', latex_label = r'$P_{0}~(\mathrm{s})$') +chi0 = Uniform(0., np.pi/2, 'chi0', latex_label = r'$\chi_{0}~({\mathrm{rad}})$') +radius = Uniform(10, 13, 'radius', latex_label = r'$R~(\mathrm{km})$') +logmoi = Uniform(44, 46, 'logmoi', latex_label = r'$\log_{10}~I / ({\mathrm{g\,cm}^{2}})$') \ No newline at end of file diff --git a/redback/priors/magnetar_nickel.prior b/redback/priors/magnetar_nickel.prior index feaa2a000..8b7a62c19 100644 --- a/redback/priors/magnetar_nickel.prior +++ b/redback/priors/magnetar_nickel.prior @@ -1,11 +1,11 @@ redshift = Uniform(1e-6,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -p0 = Uniform(1, 10, 'p0', latex_label = r'$P_{0}$ [ms]') -bp = LogUniform(0.1,10,'bp',latex_label = r'$B_{p}$~[10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}} [M_{\odot}]$') -theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{P-B}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = Uniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_{\odot})$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/magnetar_only.prior b/redback/priors/magnetar_only.prior index 3ae17a8e5..de73876a7 100644 --- a/redback/priors/magnetar_only.prior +++ b/redback/priors/magnetar_only.prior @@ -1,3 +1,3 @@ l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') -tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') +tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau~({\mathrm{s}})$') nn = Uniform(1.1, 7, 'nn', latex_label = r'$n$') diff --git a/redback/priors/metzger_kilonova_model.prior b/redback/priors/metzger_kilonova_model.prior index b10489044..a1332d43e 100644 --- a/redback/priors/metzger_kilonova_model.prior +++ b/redback/priors/metzger_kilonova_model.prior @@ -1,5 +1,5 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') beta = Uniform(3, 5, 'beta', latex_label=r'$\\beta$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') diff --git a/redback/priors/metzger_magnetar_driven_kilonova_model.prior b/redback/priors/metzger_magnetar_driven_kilonova_model.prior index d666cab41..db5eeaf44 100644 --- a/redback/priors/metzger_magnetar_driven_kilonova_model.prior +++ b/redback/priors/metzger_magnetar_driven_kilonova_model.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') beta = Uniform(3, 5, 'beta', latex_label=r'$\\beta$') -kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\kappa$') -p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$p_{0} [ms]$') -bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}$ [10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M [M_{\odot}]$') -theta_pb = Uniform(0, 1.57, 'theta_pb', latex_label = r'$\theta_{\mathrm{PB}}$') +kappa_r = Uniform(1, 30, 'kappa_r', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +p0 = LogUniform(0.7, 10e3, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(1e-4,1e4,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M~(M_\odot)$') +theta_pb = Uniform(0, 1.57, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}$') thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label='$\epsilon_{\mathrm{th}}$') diff --git a/redback/priors/mosfit_kilonova.prior b/redback/priors/mosfit_kilonova.prior index 581064c49..452a4a0af 100644 --- a/redback/priors/mosfit_kilonova.prior +++ b/redback/priors/mosfit_kilonova.prior @@ -1,14 +1,14 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej_1 = Uniform(1e-2, 0.03, 'mej_1', latex_label = r'$M_{\mathrm{ej}-1} [M_{\odot}]$') -vej_1 = Uniform(0.1, 0.4, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_{1}$') -temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}-1}$') -mej_2 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') -vej_2 = Uniform(0.1, 0.4, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') -temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-2}$') -mej_3 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') -vej_3 = Uniform(0.1, 0.7, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_3 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') -temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-3}$') -kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') \ No newline at end of file +mej_1 = Uniform(1e-2, 0.03, 'mej_1', latex_label = r'$M_{\mathrm{ej}~1}~(M_\odot)$') +vej_1 = Uniform(0.1, 0.4, 'vej_1', latex_label = r'$v_{\mathrm{ej}~1}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_{1}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}~1}~({\mathrm{K}})$') +mej_2 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}~2}~(M_\odot)$') +vej_2 = Uniform(0.1, 0.4, 'vej_2', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_{2}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~2}~({\mathrm{K}})$') +mej_3 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}~2}~(M_\odot)$') +vej_3 = Uniform(0.1, 0.7, 'vej_2', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa_3 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_{2}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~3}~({\mathrm{K}})$') +kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/mosfit_rprocess.prior b/redback/priors/mosfit_rprocess.prior index 8fce1fca5..d6726073f 100644 --- a/redback/priors/mosfit_rprocess.prior +++ b/redback/priors/mosfit_rprocess.prior @@ -1,6 +1,6 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$') \ No newline at end of file +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/nicholl_bns.prior b/redback/priors/nicholl_bns.prior index b1c1d693c..2841cc6ad 100644 --- a/redback/priors/nicholl_bns.prior +++ b/redback/priors/nicholl_bns.prior @@ -1,15 +1,15 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'mass$_1$') -mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'mass$_2$') +mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'$M_1~(M_\odot)$') +mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'$M_2~(M_\odot)$') lambda_s = Uniform(50, 1000, 'lambda_s', latex_label = r'$\Lambda_s$') -kappa_red = Uniform(1e-2, 1, 'kappa_red', latex_label = r'$\kappa_{\mathrm{red}}$') -kappa_blue = Uniform(1, 30, 'kappa_blue', latex_label = r'$\kappa_{\mathrm{blue}}$') -mtov = Uniform(2.05, 2.4, 'mtov', latex_label = r'$M_{\mathrm{TOV}} M\odot$') +kappa_red = Uniform(1e-2, 1, 'kappa_red', latex_label = r'$\\kappa_{\mathrm{red}}~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_blue = Uniform(1, 30, 'kappa_blue', latex_label = r'$\\kappa_{\mathrm{blue}}~(\mathrm{cm}^{2}/\mathrm{g})$') +mtov = Uniform(2.05, 2.4, 'mtov', latex_label = r'$M_{\mathrm{TOV}}~(M_\odot)$') epsilon = Uniform(0.05, 0.6, 'zeta', latex_label = r'$\\epsilon$') alpha = Uniform(0.1, 1, 'alpha', latex_label = r'$\\alpha$') -cos_theta = Uniform(0.0, 1.0, 'cos_theta', latex_label = r'$\cos\theta$') -cos_theta_cocoon = Uniform(0.707, 1.0, 'cos_theta_cocoon', latex_label = r'$\cos\theta_{\mathrm{cocoon}}$') -temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-1}$') -temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-2}$') -temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-3}$') -kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +cos_theta = Uniform(0.0, 1.0, 'cos_theta', latex_label = r'$\cos~\\theta$') +cos_theta_cocoon = Uniform(0.707, 1.0, 'cos_theta_cocoon', latex_label = r'$\cos~\\theta_{\mathrm{cocoon}}$') +temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}~1}$ (K)') +temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~2}$ (K)') +temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_3', latex_label = r'$T_{\mathrm{floor}~3}$ (K)') +kappa_gamma = DeltaFunction(10, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') diff --git a/redback/priors/one_component_ejecta_relation.prior b/redback/priors/one_component_ejecta_relation.prior index 6c28dc177..9d14ba87e 100644 --- a/redback/priors/one_component_ejecta_relation.prior +++ b/redback/priors/one_component_ejecta_relation.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'mass$_1$') -mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'mass$_2$') -lambda_1 = Uniform(0, 5000, 'lambda_1', latex_label = r'$\\Lambda_1$') -lambda_2 = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_2$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$') \ No newline at end of file +mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'$M_1~(M_\odot)$') +mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'$M_2~(M_\odot)$') +lambda_1 = Uniform(0, 5000, 'lambda_1', latex_label = r'$\Lambda_1$') +lambda_2 = Uniform(0, 5000, 'lambda_2', latex_label = r'$\Lambda_2$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/one_component_ejecta_relation_projection.prior b/redback/priors/one_component_ejecta_relation_projection.prior index 6c28dc177..4dc2c6b7d 100644 --- a/redback/priors/one_component_ejecta_relation_projection.prior +++ b/redback/priors/one_component_ejecta_relation_projection.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'mass$_1$') -mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'mass$_2$') -lambda_1 = Uniform(0, 5000, 'lambda_1', latex_label = r'$\\Lambda_1$') -lambda_2 = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_2$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$') \ No newline at end of file +mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'$M_1~(M_\odot)$') +mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'$M_2~(M_\odot)$') +lambda_1 = Uniform(0, 5000, 'lambda_1', latex_label = r'$\Lambda_1$') +lambda_2 = Uniform(0, 5000, 'lambda_2', latex_label = r'$\Lambda_2$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/one_component_kilonova_model.prior b/redback/priors/one_component_kilonova_model.prior index 5320f81b1..4956d4664 100644 --- a/redback/priors/one_component_kilonova_model.prior +++ b/redback/priors/one_component_kilonova_model.prior @@ -1,5 +1,5 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$') +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/one_component_nsbh_ejecta_relation.prior b/redback/priors/one_component_nsbh_ejecta_relation.prior index 28f360e85..0c78c0992 100644 --- a/redback/priors/one_component_nsbh_ejecta_relation.prior +++ b/redback/priors/one_component_nsbh_ejecta_relation.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_bh = Uniform(2.5, 35, 'mass_bh', latex_label = r'mass$_1$') -mass_ns = Uniform(1.1, 2.1, 'mass_ns', latex_label = r'mass$_2$') -chi_eff = Uniform(0, 1, 'chi_eff', latex_label = r'$\\chi_{\mathrm{eff}}$') -lambda_ns = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_\mathrm{ns}$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$') \ No newline at end of file +mass_bh = Uniform(2.5, 35, 'mass_bh', latex_label = r'$M_1~(M_\odot)$') +mass_ns = Uniform(1.1, 2.1, 'mass_ns', latex_label = r'$M_2~(M_\odot)$') +chi_eff = Uniform(0, 1, 'chi_eff', latex_label = r'$\chi_{\mathrm{eff}}$') +lambda_ns = Uniform(0, 5000, 'lambda_2', latex_label = r'$\Lambda_{\mathrm{NS}}$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(100, 6000, 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/piecewise_radiative_losses.prior b/redback/priors/piecewise_radiative_losses.prior index d5a437e86..e5cb6610f 100644 --- a/redback/priors/piecewise_radiative_losses.prior +++ b/redback/priors/piecewise_radiative_losses.prior @@ -3,5 +3,5 @@ alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') diff --git a/redback/priors/polytrope_eos_two_component_bns.prior b/redback/priors/polytrope_eos_two_component_bns.prior index 7c1427dc8..bd2041806 100644 --- a/redback/priors/polytrope_eos_two_component_bns.prior +++ b/redback/priors/polytrope_eos_two_component_bns.prior @@ -1,13 +1,13 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'mass$_1$') -mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'mass$_2$') -log_p = Uniform(32.6,33.8,name='log_p',latex_label='$\log_{10} p_0$') +mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'$M_1~(M_\odot)$') +mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'$M_2~(M_\odot)$') +log_p = Uniform(32.6,33.8,name='log_p',latex_label='$\log_{10}~\\rho_0/(\mathrm{g}/\mathrm{cm}^3)$') gamma_1 = Uniform(2,4.5,name='gamma_1',latex_label='$\\Gamma_1$') -gamma_2 = Uniform(2,4.5,name='gamma_2',latex_label='$\\Gamma_1$') -gamma_3 = Uniform(2,4.5,name='gamma_3',latex_label='$\\Gamma_1$') +gamma_2 = Uniform(2,4.5,name='gamma_2',latex_label='$\\Gamma_2$') +gamma_3 = Uniform(2,4.5,name='gamma_3',latex_label='$\\Gamma_3$') zeta = Uniform(0.05, 0.6, 'zeta', latex_label = r'$\\zeta$') -vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_1$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_1$') -tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor}-1}$') -tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor}-2}$') \ No newline at end of file +vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_1~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_2~(\mathrm{cm}^{2}/\mathrm{g})$') +tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor}~1}~(\mathrm{K})$') +tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor}~2}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/power_law_stratified_kilonova.prior b/redback/priors/power_law_stratified_kilonova.prior index c692c4695..d84863347 100644 --- a/redback/priors/power_law_stratified_kilonova.prior +++ b/redback/priors/power_law_stratified_kilonova.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -voffset = Uniform(0.1, 0.4, 'voffset', latex_label = r'$v_{\mathrm{offset}}$') -v0 = DeltaFunction(0.1, 'v0', latex_label = r'$v_0$') +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +voffset = Uniform(0.1, 0.4, 'voffset', latex_label = r'$v_{\mathrm{offset}}~(c)$') +v0 = DeltaFunction(0.1, 'v0', latex_label = r'$v_0~(c)$') alpha = Uniform(0.5, 8, 'alpha', latex_label = r'$\\alpha$') -kappa_offset = Uniform(0.1, 5, 'kappa_offset', latex_label = r'$\kappa_{\mathrm{offset}}$') -kappa_0 = DeltaFunction(0.1, 'kappa_0', latex_label = r'$\kappa_0$') +kappa_offset = Uniform(0.1, 5, 'kappa_offset', latex_label = r'$\\kappa_{\mathrm{offset}}~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_0 = DeltaFunction(0.1, 'kappa_0', latex_label = r'$\\kappa_0~(\mathrm{cm}^{2}/\mathrm{g})$') zeta = Uniform(0.1, 5, 'zeta', latex_label = r'$\\zeta$') beta = DeltaFunction(4.5, 'beta', latex_label = r'$\\beta$') \ No newline at end of file diff --git a/redback/priors/powerlawcore.prior b/redback/priors/powerlawcore.prior index 7e646a04d..308bca634 100644 --- a/redback/priors/powerlawcore.prior +++ b/redback/priors/powerlawcore.prior @@ -1,12 +1,12 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}~(\mathrm{rad})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0}/\mathrm{erg}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') thw = Uniform(1, 8, 'thw', latex_label=r'$\\theta_{\mathrm{truncation}}$') beta = Uniform(0.5, 10, 'beta', latex_label=r'$\\beta$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') diff --git a/redback/priors/radiative_losses.prior b/redback/priors/radiative_losses.prior index 630375c9b..97ad8e2cd 100644 --- a/redback/priors/radiative_losses.prior +++ b/redback/priors/radiative_losses.prior @@ -3,6 +3,6 @@ alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') -t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') -log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10} E_{0}$') \ No newline at end of file +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}~(\mathrm{s})$') +log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10}~E_{0}$') \ No newline at end of file diff --git a/redback/priors/radiative_losses_mdr.prior b/redback/priors/radiative_losses_mdr.prior index 2925fdaa4..97ae04292 100644 --- a/redback/priors/radiative_losses_mdr.prior +++ b/redback/priors/radiative_losses_mdr.prior @@ -2,6 +2,6 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') -t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') -log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10} E_{0}$') \ No newline at end of file +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}~(\mathrm{s})$') +log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10}~E_{0}$') \ No newline at end of file diff --git a/redback/priors/radiative_losses_smoothness.prior b/redback/priors/radiative_losses_smoothness.prior index 630375c9b..97ad8e2cd 100644 --- a/redback/priors/radiative_losses_smoothness.prior +++ b/redback/priors/radiative_losses_smoothness.prior @@ -3,6 +3,6 @@ alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') -t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') -log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10} E_{0}$') \ No newline at end of file +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}~(\mathrm{s})$') +log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10}~E_{0}$') \ No newline at end of file diff --git a/redback/priors/radiative_only.prior b/redback/priors/radiative_only.prior index 577f4f734..aad8d717e 100644 --- a/redback/priors/radiative_only.prior +++ b/redback/priors/radiative_only.prior @@ -1,6 +1,6 @@ l0 = LogUniform(1e-20, 1e5, 'l0', latex_label = r'$L_{0}$') tau = LogUniform(1e2, 1e6, 'tau', latex_label = r'$\\tau$') nn = Uniform(1.1, 7, 'nn', latex_label= r'$n$') -kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\kappa$') -t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}$') -log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10} E_{0}$') \ No newline at end of file +kappa = LogUniform(1e-2, 10, 'kappa', latex_label= r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +t0_s = Uniform(1, 1000, 't0_s', latex_label= r'$T_{0}~(\mathrm{s})$') +log_e0 = Uniform(-10, 2, 'log_e0', latex_label = r'$\log_{10}~E_{0}$') \ No newline at end of file diff --git a/redback/priors/shock_cooling.prior b/redback/priors/shock_cooling.prior index 5479d0b09..cb75df41d 100644 --- a/redback/priors/shock_cooling.prior +++ b/redback/priors/shock_cooling.prior @@ -1,6 +1,6 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10} m_{\mathrm{en}}$') -log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10} R_{\mathrm{en}}$') -log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10} E_{\mathrm{en}}$') +log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10}~m_{\mathrm{en}} / M_\odot$') +log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10}~R_{\mathrm{en}} / {\mathrm{cm}}$') +log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10}~E_{\mathrm{en}} / {\mathrm{erg}}$') nn = Uniform(8, 12, 'nn', latex_label=r'$nn$') -delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\delta$') \ No newline at end of file +delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\Delta$') \ No newline at end of file diff --git a/redback/priors/shock_cooling_and_arnett.prior b/redback/priors/shock_cooling_and_arnett.prior index 39803d909..6e5a4f9d7 100644 --- a/redback/priors/shock_cooling_and_arnett.prior +++ b/redback/priors/shock_cooling_and_arnett.prior @@ -1,12 +1,12 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10} m_{\mathrm{en}}$') -log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10} R_{\mathrm{en}}$') -log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10} E_{\mathrm{en}}$') +log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10}~m_{\mathrm{en}} / M_\odot$') +log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10}~R_{\mathrm{en}} / {\mathrm{cm}}^{-3}$') +log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10}~E_{\mathrm{en}} / {\mathrm{erg}}$') nn = Uniform(8, 12, 'nn', latex_label=r'$nn$') -delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\delta$') +delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\Delta$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_\\gamma~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/shock_cooling_bolometric.prior b/redback/priors/shock_cooling_bolometric.prior index a946507f9..be9ac130e 100644 --- a/redback/priors/shock_cooling_bolometric.prior +++ b/redback/priors/shock_cooling_bolometric.prior @@ -1,5 +1,5 @@ -log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10} m_{\mathrm{en}}$') -log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10} R_{\mathrm{en}}$') -log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10} E_{\mathrm{en}}$') +log10_mass = Uniform(-2, 3, 'log10_mass', latex_label=r'$\log_{10}~m_{\mathrm{en}} / M_\odot$') +log10_radius = Uniform(10, 14, 'log10_radius', latex_label=r'$\log_{10}~R_{\mathrm{en}} / {\mathrm{cm}}$') +log10_energy = Uniform(40, 52, 'log10_energy', latex_label=r'$\log_{10}~E_{\mathrm{en}} / {\mathrm{erg}}$') nn = Uniform(8, 12, 'nn', latex_label=r'$nn$') -delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\delta$') \ No newline at end of file +delta = Uniform(1, 1.5, 'delta', latex_label=r'$\\Delta$') \ No newline at end of file diff --git a/redback/priors/shocked_cocoon.prior b/redback/priors/shocked_cocoon.prior index 070832772..d5abced4e 100644 --- a/redback/priors/shocked_cocoon.prior +++ b/redback/priors/shocked_cocoon.prior @@ -1,8 +1,8 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') -eta = Uniform(1, 5, 'eta', latex_label = r'$\\eta$') -tshock = Uniform(1, 2, 'tshock', latex_label = r'$t_{\mathrm{shock}} [s]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') +eta = Uniform(1, 5, '\\eta', latex_label = r'$\\eta$') +tshock = Uniform(1, 2, 'tshock', latex_label = r'$t_{\mathrm{shock}}~(\mathrm{s})$') shocked_fraction = Uniform(0.1, 1, 'shocked_fraction', latex_label = r'$f_{\mathrm{shocked}}$') -cos_theta_cocoon = Uniform(0.2, 0.9, 'cos_theta_cocoon', latex_label = r'$\cos \\theta_{mathrm{cocoon}}$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') \ No newline at end of file +cos_theta_cocoon = Uniform(0.2, 0.9, 'cos_theta_cocoon', latex_label = r'$\cos~\\theta_{\mathrm{cocoon}}$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/shocked_cocoon_bolometric.prior b/redback/priors/shocked_cocoon_bolometric.prior index a3d2dfcce..0404858fb 100644 --- a/redback/priors/shocked_cocoon_bolometric.prior +++ b/redback/priors/shocked_cocoon_bolometric.prior @@ -1,7 +1,7 @@ -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{\mathrm{ej}} [c]$') -eta = Uniform(1, 5, 'eta', latex_label = r'$\\eta$') -tshock = Uniform(1, 2, 'tshock', latex_label = r'$t_{\mathrm{shock}} [s]$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{\mathrm{ej}}~(c)$') +eta = Uniform(1, 5, '\\eta', latex_label = r'$\\eta$') +tshock = Uniform(1, 2, 'tshock', latex_label = r'$t_{\mathrm{shock}}~(\mathrm{s})$') shocked_fraction = Uniform(0.1, 1, 'shocked_fraction', latex_label = r'$f_{\mathrm{shocked}}$') -cos_theta_cocoon = Uniform(0.2, 0.9, 'cos_theta_cocoon', latex_label = r'$\cos \\theta_{mathrm{cocoon}}$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') \ No newline at end of file +cos_theta_cocoon = Uniform(0.2, 0.9, 'cos_theta_cocoon', latex_label = r'$\cos~\\theta_{\mathrm{cocoon}}$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') \ No newline at end of file diff --git a/redback/priors/six_component_powerlaw.prior b/redback/priors/six_component_powerlaw.prior index 36d567f4b..21a159fe4 100644 --- a/redback/priors/six_component_powerlaw.prior +++ b/redback/priors/six_component_powerlaw.prior @@ -1,12 +1,12 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ }t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') -delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\Delta_{ } t_{2}$') +delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\\Delta_{ }t_{2}$') alpha_3 = Uniform(-10, 0, 'alpha_3', latex_label = r'$\\alpha_{3}$') -delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\Delta_{ } t_{3}$') +delta_time_three = LogUniform(1e-10, 1e6, 'delta_time_three', latex_label = r'$\\Delta_{ }t_{3}$') alpha_4 = Uniform(-10, 0, 'alpha_4', latex_label = r'$\\alpha_{4}$') -delta_time_four = LogUniform(1e-10, 1e6, 'delta_time_four', latex_label = r'$\Delta_{ } t_{4}$') +delta_time_four = LogUniform(1e-10, 1e6, 'delta_time_four', latex_label = r'$\\Delta_{ }t_{4}$') alpha_5 = Uniform(-10, 0, 'alpha_5', latex_label = r'$\\alpha_{5}$') -delta_time_five = LogUniform(1e-10, 1e6, 'delta_time_five', latex_label = r'$\Delta_{ } t_{5}$') +delta_time_five = LogUniform(1e-10, 1e6, 'delta_time_five', latex_label = r'$\\Delta_{ }t_{5}$') alpha_6 = Uniform(-10, 0, 'alpha_six', latex_label = r'$\\alpha_{6}$') diff --git a/redback/priors/slsn.prior b/redback/priors/slsn.prior index 6dbe3ce77..fcd78437e 100644 --- a/redback/priors/slsn.prior +++ b/redback/priors/slsn.prior @@ -1,12 +1,12 @@ redshift = Uniform(1e-6,3,name='redshift', latex_label = r'$z$') -p0 = Uniform(1, 10, 'p0', latex_label = r'$P_{0}$ [ms]') -bp = LogUniform(0.1,10,'bp',latex_label = r'$B_{p}$~[10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}} [M_{\odot}]$') -theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{P-B}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') +p0 = Uniform(1, 10, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(0.1,10,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') e_rot_constraint = Constraint(name='e_rot_constraint', minimum=10, maximum=1e10) t_nebula_min = Constraint(name='t_nebula_min', minimum=0.1,maximum=500) \ No newline at end of file diff --git a/redback/priors/slsn_bolometric.prior b/redback/priors/slsn_bolometric.prior index 2a689c069..4d11ba648 100644 --- a/redback/priors/slsn_bolometric.prior +++ b/redback/priors/slsn_bolometric.prior @@ -1,10 +1,10 @@ -p0 = Uniform(1, 10, 'p0', latex_label = r'$P_{0}$ [ms]') -bp = LogUniform(0.1,10,'bp',latex_label = r'$B_{p}$~[10$^{14}$G]') -mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}} [M_{\odot}]$') -theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{P-B}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +p0 = Uniform(1, 10, 'p0', latex_label = r'$P_{0}~(\mathrm{ms})$') +bp = LogUniform(0.1,10,'bp',latex_label = r'$B_{p}~(10^{14}~\mathrm{G})$') +mass_ns = Uniform(1.1, 2.2, 'mass_ns', latex_label = r'$M_{\mathrm{NS}}~(M_\odot)$') +theta_pb = Uniform(0, 3.14/2, 'theta_pb', latex_label = r'$\\theta_{\mathrm{PB}}~({\mathrm{rad}})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') e_rot_constraint = Constraint(name='e_rot_constraint', minimum=10, maximum=1e10) t_nebula_min = Constraint(name='t_nebula_min', minimum=0.1,maximum=500) \ No newline at end of file diff --git a/redback/priors/smoothpowerlaw.prior b/redback/priors/smoothpowerlaw.prior index 7e646a04d..248b8d24f 100644 --- a/redback/priors/smoothpowerlaw.prior +++ b/redback/priors/smoothpowerlaw.prior @@ -1,12 +1,12 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}~(\mathrm{rad})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0} / \mathrm{erg}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') thw = Uniform(1, 8, 'thw', latex_label=r'$\\theta_{\mathrm{truncation}}$') beta = Uniform(0.5, 10, 'beta', latex_label=r'$\\beta$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') diff --git a/redback/priors/sn_exponential_powerlaw.prior b/redback/priors/sn_exponential_powerlaw.prior index 98bb03cf9..b411f4b08 100644 --- a/redback/priors/sn_exponential_powerlaw.prior +++ b/redback/priors/sn_exponential_powerlaw.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-6,3,name='redshift', latex_label = r'$z$') -lbol_0 = LogUniform(1e36,1e48,name='lbol_0', latex_label = r'$L_{\mathrm{bol}-0}$') -alpha_1 = Uniform(0,10,name='alpha_1',latex_label='$\\alpha_{1}$') -alpha_2 = Uniform(0,10,name='alpha_2',latex_label='$\\alpha_{2}$') -tpeak_d = LogUniform(0.001,200,name='tpeak', latex_label = r'$t_{\mathrm{peak}}$~[days]') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +lbol_0 = LogUniform(1e36,1e48,name='lbol_0', latex_label = r'$L_{\mathrm{bol}~0}~(\mathrm{erg})$') +alpha_1 = Uniform(0,10,name='alpha_1',latex_label='$\\alpha_1$') +alpha_2 = Uniform(0,10,name='alpha_2',latex_label='$\\alpha_2$') +tpeak_d = LogUniform(0.001,200,name='tpeak', latex_label = r'$t_{\mathrm{peak}}~(\mathrm{day})$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/tde_analytical.prior b/redback/priors/tde_analytical.prior index 995277fae..aa2298709 100644 --- a/redback/priors/tde_analytical.prior +++ b/redback/priors/tde_analytical.prior @@ -1,8 +1,8 @@ -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') l0 = LogUniform(1e51, 1e58, "l0", latex_label="$l_0$") t_0_turn = LogUniform(1e-4, 1e2, "t_0_turn", latex_label="$t_{0 t}$") \ No newline at end of file diff --git a/redback/priors/tde_analytical_bolometric.prior b/redback/priors/tde_analytical_bolometric.prior index d0bdf0ea1..1e308e89e 100644 --- a/redback/priors/tde_analytical_bolometric.prior +++ b/redback/priors/tde_analytical_bolometric.prior @@ -1,6 +1,6 @@ -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') l0 = LogUniform(1e51, 1e58, "l0", latex_label="$l_0$") t_0_turn = LogUniform(1e-4, 1e2, "t_0_turn", latex_label="$t_{0 t}$") \ No newline at end of file diff --git a/redback/priors/thermal_synchrotron_fluxdensity.prior b/redback/priors/thermal_synchrotron_fluxdensity.prior index 108f659bf..c81a5129a 100644 --- a/redback/priors/thermal_synchrotron_fluxdensity.prior +++ b/redback/priors/thermal_synchrotron_fluxdensity.prior @@ -1,9 +1,9 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') -v0 = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{0} [c]$') -logr0 = Uniform(14, 18, 'logr0', latex_label=r'$\log_{10} R_{0}~\mathrm{cm}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') +v0 = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{0}~(c)$') +logr0 = Uniform(14, 18, 'logr0', latex_label=r'$\log_{10}~R_{0} / \mathrm{cm}$') eta = Uniform(0.1, 0.9, 'eta', latex_label=r'$\\eta$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') xi = Uniform(0.01, 1., 'xi', latex_label=r'$\\xi_{N}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') \ No newline at end of file diff --git a/redback/priors/thermal_synchrotron_lnu.prior b/redback/priors/thermal_synchrotron_lnu.prior index 50f3e2de6..a50c7e02b 100644 --- a/redback/priors/thermal_synchrotron_lnu.prior +++ b/redback/priors/thermal_synchrotron_lnu.prior @@ -1,8 +1,8 @@ -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') -v0 = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{0} [c]$') -logr0 = Uniform(14, 18, 'logr0', latex_label=r'$\log_{10} R_{0}~\mathrm{cm}$') -eta = Uniform(0.1, 0.9, 'eta', latex_label=r'$\\eta$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') +v0 = Uniform(0.1, 0.7, 'vej', latex_label = r'$v_{0}~(c)$') +logr0 = Uniform(14, 18, 'logr0', latex_label=r'$\log_{10}~R_{0} / \mathrm{cm}$') +eta = Uniform(0.1, 0.9, '\\eta', latex_label=r'$\\eta$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') xi = Uniform(0.01, 1., 'xi', latex_label=r'$\\xi_{N}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') \ No newline at end of file diff --git a/redback/priors/thin_shell_supernova.prior b/redback/priors/thin_shell_supernova.prior index 7e13d25b3..6771f3c1a 100644 --- a/redback/priors/thin_shell_supernova.prior +++ b/redback/priors/thin_shell_supernova.prior @@ -1,7 +1,7 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{k}} [erg]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +ek = LogUniform(1e48, 1e52, 'ek', latex_label = r'$E_{\mathrm{kin}}~(\mathrm{erg})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/three_component_kilonova_model.prior b/redback/priors/three_component_kilonova_model.prior index 1ebf71e9c..22a7d2fd9 100644 --- a/redback/priors/three_component_kilonova_model.prior +++ b/redback/priors/three_component_kilonova_model.prior @@ -1,13 +1,13 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej_1 = Uniform(1e-2, 0.02, 'mej_1', latex_label = r'$M_{\mathrm{ej}-1} [M_{\odot}]$') -vej_1 = Uniform(0.1, 0.3, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_{1}$') -temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}-1}$') -mej_2 = Uniform(1e-2, 0.025, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') -vej_2 = Uniform(0.1, 0.3, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') -temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-2}$') -mej_3 = Uniform(1e-2, 0.025, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') -vej_3 = Uniform(0.1, 0.3, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_3 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') -temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-3}$') \ No newline at end of file +mej_1 = Uniform(1e-2, 0.02, 'mej_1', latex_label = r'$M_{\mathrm{ej}~1}~(M_\odot)$') +vej_1 = Uniform(0.1, 0.3, 'vej_1', latex_label = r'$v_{\mathrm{ej}~1}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_{1}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}~1}~(\mathrm{K})$') +mej_2 = Uniform(1e-2, 0.025, 'mej_2', latex_label = r'$M_{\mathrm{ej}~2}~(M_\odot)$') +vej_2 = Uniform(0.1, 0.3, 'vej_2', latex_label = r'$v_{\mathrm{ej}~-2}~(c)$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_{2}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~2}~(\mathrm{K})$') +mej_3 = Uniform(1e-2, 0.025, 'mej_2', latex_label = r'$M_{\mathrm{ej}_{ }3}~(M_\odot)$') +vej_3 = Uniform(0.1, 0.3, 'vej_2', latex_label = r'$v_{\mathrm{ej}~3}~(c)$') +kappa_3 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_{3}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_3 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~3}~(\mathrm{K})$') \ No newline at end of file diff --git a/redback/priors/three_component_powerlaw.prior b/redback/priors/three_component_powerlaw.prior index 57f4e12d5..77c5da0e1 100644 --- a/redback/priors/three_component_powerlaw.prior +++ b/redback/priors/three_component_powerlaw.prior @@ -1,6 +1,6 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ } t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') -delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\Delta_{ } t_{2}$') +delta_time_two = LogUniform(10, 1e6, 'delta_time_two', latex_label = r'$\\Delta_{ } t_{2}$') alpha_3 = Uniform(-10, 0, 'alpha_3', latex_label = r'$\\alpha_{3}$') diff --git a/redback/priors/tophat.prior b/redback/priors/tophat.prior index 6ceb5cd9d..5e48f8feb 100644 --- a/redback/priors/tophat.prior +++ b/redback/priors/tophat.prior @@ -1,10 +1,10 @@ redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') -thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') -loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') -thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') -logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}~(\mathrm{rad})$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10}~E_{0} / {\mathrm{erg}}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}~({\mathrm{rad}})$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10}~n_{\mathrm{ism}} / {\mathrm{cm}}^{-3}$') p = Uniform(2, 3, 'p', latex_label=r'$p$') -logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') -logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10}~\\epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10}~\\epsilon_{B}$') ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') -g0 = Uniform(100,2000, 'g0', latex_label=r'$\Gamma_{0}$') +g0 = Uniform(100,2000, 'g0', latex_label=r'$\\Gamma_{0}$') diff --git a/redback/priors/tophat_and_arnett.prior b/redback/priors/tophat_and_arnett.prior new file mode 100644 index 000000000..71e900fa4 --- /dev/null +++ b/redback/priors/tophat_and_arnett.prior @@ -0,0 +1,17 @@ +redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') +av= Uniform(0, 2, 'av', latex_label=r'$av$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +p = Uniform(2, 3, 'p', latex_label=r'$p$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') +g0 = Uniform(100, 2000, 'g0', latex_label=r'$\Gamma_{0}$') +f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') \ No newline at end of file diff --git a/redback/priors/tophat_and_twocomponent.prior b/redback/priors/tophat_and_twocomponent.prior new file mode 100644 index 000000000..e933b6a32 --- /dev/null +++ b/redback/priors/tophat_and_twocomponent.prior @@ -0,0 +1,19 @@ +redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') +av= Uniform(0, 2, 'av', latex_label=r'$av$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +p = Uniform(2, 3, 'p', latex_label=r'$p$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') +g0 = Uniform(100, 2000, 'g0', latex_label=r'$\Gamma_{0}$') +mej_1 = Uniform(1e-2, 0.03, 'mej_1', latex_label = r'$M_{\mathrm{ej}-1} [M_{\odot}]$') +vej_1 = Uniform(0.1, 0.5, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_{1}$') +temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}-1}$') +mej_2 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') +vej_2 = Uniform(0.1, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') +temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-2}$') \ No newline at end of file diff --git a/redback/priors/tophat_and_twolayerstratified.prior b/redback/priors/tophat_and_twolayerstratified.prior new file mode 100644 index 000000000..72bd02438 --- /dev/null +++ b/redback/priors/tophat_and_twolayerstratified.prior @@ -0,0 +1,16 @@ +redshift = Uniform(0.01, 3, 'redshift', latex_label=r'$z$') +av= Uniform(0, 2, 'av', latex_label=r'$av$') +thv = Sine(name='thv', maximum=np.pi/2, latex_label=r'$\\theta_{\mathrm{observer}}$') +loge0 = Uniform(44, 54, 'loge0', latex_label=r'$\log_{10} E_{0}$') +thc = Uniform(0.01, 0.1, 'thc', latex_label=r'$\\theta_{\mathrm{core}}$') +logn0 = Uniform(-5, 2, 'logn0', latex_label=r'$\log_{10} n_{\mathrm{ism}}$') +p = Uniform(2, 3, 'p', latex_label=r'$p$') +logepse = Uniform(-5, 0, 'logepse', latex_label=r'$\log_{10} \epsilon_{e}$') +logepsb = Uniform(-5, 0, 'logepsb', latex_label=r'$\log_{10} \epsilon_{B}$') +ksin = Uniform(0., 1., 'ksin', latex_label=r'$\\xi_{N}$') +g0 = Uniform(100, 2000, 'g0', latex_label=r'$\Gamma_{0}$') +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') +vej_1 = Uniform(0.05, 0.2, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') +vej_2 = Uniform(0.3, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') +beta = Uniform(1.5, 8, 'beta', latex_label = r'$\\beta$') \ No newline at end of file diff --git a/redback/priors/trapped_magnetar.prior b/redback/priors/trapped_magnetar.prior index 978a9c2a2..853d29267 100644 --- a/redback/priors/trapped_magnetar.prior +++ b/redback/priors/trapped_magnetar.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-6, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}} [c]$') -ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') -n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$m_{\mathrm{ism}}$') +mej = Uniform(1e-4, 0.1, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +beta = Uniform(0.1, 0.7, 'beta', latex_label = r'$v_{\mathrm{ej}}~(c)$') +ejecta_radius = LogUniform(1e9, 1e10, 'ejecta_radius', latex_label = r'$R_{\mathrm{ejecta}}~({\mathrm{cm}})$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +n_ism = LogUniform(1e-4, 1, 'n_ism', latex_label = r'$n_{\mathrm{ism}}~({\mathrm{cm}}^{-3})$') l0 = LogUniform(1e40, 1e50, 'l0', latex_label = r'$l_0$') -tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}$') +tau_sd = LogUniform(10, 1e5, 'tau_sd', latex_label = '$\\tau_{\mathrm{sd}}~({\mathrm{s}})$') nn = Uniform(2, 7, 'nn', latex_label='$n$') thermalisation_efficiency = Uniform(0.1, 1, 'thermalisation_efficiency', latex_label='$\epsilon_{\mathrm{th}}$') \ No newline at end of file diff --git a/redback/priors/two_component_bns_ejecta_relation.prior b/redback/priors/two_component_bns_ejecta_relation.prior index 0e3dcec7d..819910a1d 100644 --- a/redback/priors/two_component_bns_ejecta_relation.prior +++ b/redback/priors/two_component_bns_ejecta_relation.prior @@ -1,12 +1,12 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'mass$_1$') -mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'mass$_2$') +mass_1 = Uniform(1.1, 2.1, 'mass_1', latex_label = r'$M_1~(M_\odot)$') +mass_2 = Uniform(1.1, 2.1, 'mass_2', latex_label = r'$M_2~(M_\odot)$') lambda_1 = Uniform(0, 5000, 'lambda_1', latex_label = r'$\\Lambda_1$') lambda_2 = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_2$') -mtov = Uniform(2.05, 2.4, 'mtov', latex_label = r'$M_{\mathrm{TOV}} M\odot$') +mtov = Uniform(2.05, 2.4, 'mtov', latex_label = r'$M_{\mathrm{TOV}}~(M_\odot)$') zeta = Uniform(0.05, 0.6, 'zeta', latex_label = r'$\\zeta$') -vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej-2}} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_1$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_1$') -tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor-1}}$') -tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor-2}}$') \ No newline at end of file +vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej-2}}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_1~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_2~(\mathrm{cm}^{2}/\mathrm{g})$') +tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor-1}}~({\mathrm{K}})$') +tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor-2}}~({\mathrm{K}})$') \ No newline at end of file diff --git a/redback/priors/two_component_kilonova_model.prior b/redback/priors/two_component_kilonova_model.prior index d3f2acdaf..ac140cfe1 100644 --- a/redback/priors/two_component_kilonova_model.prior +++ b/redback/priors/two_component_kilonova_model.prior @@ -1,9 +1,9 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej_1 = Uniform(1e-2, 0.03, 'mej_1', latex_label = r'$M_{\mathrm{ej}-1} [M_{\odot}]$') -vej_1 = Uniform(0.1, 0.5, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_{1}$') -temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}-1}$') -mej_2 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}-2} [M_{\odot}]$') -vej_2 = Uniform(0.1, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_{2}$') -temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}-2}$') +mej_1 = Uniform(1e-2, 0.03, 'mej_1', latex_label = r'$M_{\mathrm{ej}~1}~(M_\odot)$') +mej_2 = Uniform(1e-2, 0.03, 'mej_2', latex_label = r'$M_{\mathrm{ej}~2}~(M_\odot)$') +vej_1 = Uniform(0.1, 0.5, 'vej_1', latex_label = r'$v_{\mathrm{ej}~1}~(c)$') +vej_2 = Uniform(0.1, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_{1}~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_{2}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor_1 = LogUniform(100, 6000, 'temperature_floor_1', latex_label = r'$T_{\mathrm{floor}~1}~({\mathrm{K}})$') +temperature_floor_2 = LogUniform(100, 6000, 'temperature_floor_2', latex_label = r'$T_{\mathrm{floor}~2}~({\mathrm{K}})$') \ No newline at end of file diff --git a/redback/priors/two_component_nsbh_ejecta_relation.prior b/redback/priors/two_component_nsbh_ejecta_relation.prior index 49b29a0e5..a10c5d042 100644 --- a/redback/priors/two_component_nsbh_ejecta_relation.prior +++ b/redback/priors/two_component_nsbh_ejecta_relation.prior @@ -1,11 +1,11 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mass_bh = Uniform(2.5, 35, 'mass_bh', latex_label = r'mass$_1$') -mass_ns = Uniform(1.1, 2.1, 'mass_ns', latex_label = r'mass$_2$') +mass_bh = Uniform(2.5, 35, 'mass_bh', latex_label = r'$M(\mathrm{BH})~(M_\odot)$') +mass_ns = Uniform(1.1, 2.1, 'mass_ns', latex_label = r'$M(\mathrm{NS})~(M_\odot)$') chi_eff = Uniform(0, 1, 'chi_eff', latex_label = r'$\\chi_{\mathrm{eff}}$') -lambda_ns = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_\mathrm{ns}$') +lambda_ns = Uniform(0, 5000, 'lambda_2', latex_label = r'$\\Lambda_{\mathrm{NS}}$') zeta = Uniform(0.05, 0.6, 'zeta', latex_label = r'$\\zeta$') -vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\kappa_1$') -kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\kappa_1$') -tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor}-1}$') -tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor}-2}$') \ No newline at end of file +vej_2 = Uniform(0.01, 0.3, 'vej', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa_1 = Uniform(1, 30, 'kappa_1', latex_label = r'$\\kappa_1~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_2 = Uniform(1, 30, 'kappa_2', latex_label = r'$\\kappa_2~(\mathrm{cm}^{2}/\mathrm{g})$') +tf_1 = LogUniform(100, 6000, 'tf_1', latex_label = r'$T_{\mathrm{floor}~1}~({\mathrm{K}})$') +tf_2 = LogUniform(100, 6000, 'tf_2', latex_label = r'$T_{\mathrm{floor}~2}~({\mathrm{K}})$') \ No newline at end of file diff --git a/redback/priors/two_component_powerlaw.prior b/redback/priors/two_component_powerlaw.prior index d7e65090d..d4ddb0ddc 100644 --- a/redback/priors/two_component_powerlaw.prior +++ b/redback/priors/two_component_powerlaw.prior @@ -1,4 +1,4 @@ a_1 = LogUniform(1e-20, 1e20, 'a_1', latex_label = r'$A_{1}$') alpha_1 = Uniform(-10, -0.5, 'alpha_1', latex_label = r'$\\alpha_{1}$') -delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\Delta_{ } t_{1}$') +delta_time_one = LogUniform(1e-10, 1e6, 'delta_time_one', latex_label = r'$\\Delta_{ }t_{1}$') alpha_2 = Uniform(-10, 0, 'alpha_2', latex_label = r'$\\alpha_{2}$') diff --git a/redback/priors/two_layer_stratified_kilonova.prior b/redback/priors/two_layer_stratified_kilonova.prior index cd03794b2..452a6850d 100644 --- a/redback/priors/two_layer_stratified_kilonova.prior +++ b/redback/priors/two_layer_stratified_kilonova.prior @@ -1,6 +1,6 @@ redshift = Uniform(1e-3, 0.1, 'redshift', latex_label = r'$z$') -mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej_1 = Uniform(0.05, 0.2, 'vej_1', latex_label = r'$v_{\mathrm{ej}-1} [c]$') -vej_2 = Uniform(0.3, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}-2} [c]$') -kappa = Uniform(1, 30, 'kappa', latex_label = r'$\kappa$') +mej = Uniform(1e-2, 0.05, 'mej', latex_label = r'$M_{\mathrm{ej}}~(M_\odot)$') +vej_1 = Uniform(0.05, 0.2, 'vej_1', latex_label = r'$v_{\mathrm{ej}~1}~(c)$') +vej_2 = Uniform(0.3, 0.5, 'vej_2', latex_label = r'$v_{\mathrm{ej}~2}~(c)$') +kappa = Uniform(1, 30, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') beta = Uniform(1.5, 8, 'beta', latex_label = r'$\\beta$') diff --git a/redback/priors/type_1a.prior b/redback/priors/type_1a.prior index f2cf6f6ce..36e260d1f 100644 --- a/redback/priors/type_1a.prior +++ b/redback/priors/type_1a.prior @@ -1,10 +1,10 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') line_wavelength = 6.5e3 line_width = 500 line_amplitude = 0.3 \ No newline at end of file diff --git a/redback/priors/type_1c.prior b/redback/priors/type_1c.prior index d45421f17..5c7a539da 100644 --- a/redback/priors/type_1c.prior +++ b/redback/priors/type_1c.prior @@ -1,8 +1,8 @@ redshift = Uniform(1e-3,3,name='redshift', latex_label = r'$z$') f_nickel = LogUniform(1e-3,1,name='f_nickel', latex_label = r'$f_{\mathrm{Ni}}$') -mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej}} [M_{\odot}]$') -vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}} [km/s]$') -kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\kappa$') -kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\kappa_{\gamma}$') -temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}$ [k]') +mej = LogUniform(1e-4, 100, 'mej', latex_label = r'$M_{\mathrm{ej} }~(M_\odot)$') +vej = LogUniform(1e3, 1e5, 'vej', latex_label = r'$v_{\mathrm{ej}}~(\mathrm{km}/\mathrm{s})$') +kappa = Uniform(0.05, 2, 'kappa', latex_label = r'$\\kappa~(\mathrm{cm}^{2}/\mathrm{g})$') +kappa_gamma = LogUniform(1e-4, 1e4, 'kappa_gamma', latex_label = r'$\\kappa_{\\gamma}~(\mathrm{cm}^{2}/\mathrm{g})$') +temperature_floor = LogUniform(1e3,1e5,name = 'temperature_floor', latex_label = r'$T_{\mathrm{floor}}~(\mathrm{K})$') pp = Uniform(1.1, 4, 'pp', latex_label = r'$p$') \ No newline at end of file diff --git a/redback/tables/filters.csv b/redback/tables/filters.csv index ef217f870..ce7f29831 100644 --- a/redback/tables/filters.csv +++ b/redback/tables/filters.csv @@ -1,221 +1,240 @@ -bands,wavelength [Hz],wavelength [Angstrom],color,reference_flux,sncosmo_name -F110W,257913110025249.16,11623.777402034775,black,2.090117568932865e-06,f110w -F160W,194770377372101.4,15392.097199013884,black,6.860338886338166e-07,f160w -F336W,892605528103010.9,3358.6220179156508,black,9.799281702505016e-07,f336w -F475W,629296351005638.9,4763.931294388097,black,2.5503487520969313e-06,f475w -F606W,503181785352830.9,5957.935416715961,black,3.060408613426672e-06,f606w -F625W,477845245368038.4,6273.8399284291,black,1.6344417220550179e-06,f625w -F775W,387954642996941.1,7727.5130846253,black,1.067557962038323e-06,f775w -F814W,380437917436566.75,7880.1939622642,black,6.266371568153224e-07,f814w -F850W,329115003958550.56,9109.0486423936,black,1.7035196416676153e-07,f850w -B,684480498953712.4,4379.8538958854,black,5.3407838622709666e-06,bessellb -U,864325961556385.2,3468.511549279,black,5.647092720353555e-06,bessellux -G,637811616674135.2,4700.3292220243,black,2.349194478568022e-06,sdssg -V,550068327615079.1,5450.0948872989,black,3.1702798613495837e-06,bessellv -W1,1140175493081727.8,2629.3536373923,black,0.00023881047144131277,uvot::uvw1 -W2,1523824767963972.2,1967.3683241188,black,0.0003123430308647404,uvot::uvw2 -M2,1326607904620774.8,2259.8422409197,black,0.0004580432607408996,uvot::uvm2 -H,183819021543569.56,16309.109660283,black,1.005032578876226e-06,2massh -I,383314176282732.3,7821.0636743806,black,2.4830389241126147e-06,besselli -Y,304702449397188.25,9838.8594707098,black,4.478394480055995e-07,desy -R,467430389423112.5,6413.6278852129,black,3.836844843312584e-06,bessellr -J,239114850431738.03,12537.592602831,black,1.176695849779112e-06,2massj -K,139069259261106.5,21557.061538462,black,6.146263912768975e-07,2massks -Ks,139069259261106.5,21557.061538462,black,6.146263912768975e-07,2massks -u,840919666913125.2,3565.0546633127,black,4.2233790008173515e-07,sdssu -g,637811616674135.2,4700.3292220243,black,2.349194478568022e-06,sdssg -r,485534389417638.75,6174.4845377395,black,1.6003859416452628e-06,sdssr -i,397938911632591.6,7533.6301436335,black,9.591663918870038e-07,sdssi -z,341383633782885.6,8781.6880580357,black,1.310766285584106e-07,sdssz -y,315245939850950.06,9509.7960069444,black,478394480055995e-07,swope2::y -u',840919666913125.2,3565.0546633127,black,4.2233790008173515e-07,sdssu -g',637811616674135.2,4700.3292220243,black,2.349194478568022e-06,sdssg -r',485534389417638.75,6174.4845377395,black,1.6003859416452628e-06,sdssr -i',397938911632591.6,7533.6301436335,black,9.591663918870038e-07,sdssi -z',341383633782885.6,8781.6880580357,black,1.310766285584106e-07,sdssz -y',315245939850950.06,9509.7960069444,black,478394480055995e-07,swope2::y -J1,284224664371030.9,10547.728455003,black,1.176695849779112e-06,2massj -w,480914280862152.2,6233.8023620873,black,8.67808759889126e-06,uvot::white -o,4.52097235e+14,6632.15,orange,1.0964579386727118e-05,ps1::open -orange,436616572048166.06,6866.263838627909,black,4.2461524229031545e-06,atlaso -c,554281947972151.25,5408.663570891946,black,6.042609661990494e-06,atlasc -UVW1,1116903209221575.6,2684.14,violet,0.00023881047144131277,uvot::uvw1 -UVW2,1437350270648645.8,2085.73,violet,0.0003123430308647404,uvot::uvw2 -UVM2,1334914630996802.8,2245.78,violet,0.0004580432607408996,uvot::uvm2 -2massh,181544400626420.22,16513.451087753958,black,1.005032578876226e-06,2massh -2massj,241567696383041.7,12410.287571092875,black,1.176695849779112e-06,2massj -2massks,138433317307933.44,21656.09145471364,black,6.146263912768975e-07,2massks -4shooter2::b,687873511230455.6,4358.249781471257,black,6.013324134712128e-06,4shooter2::b -4shooter2::i,373814715785601.4,8019.814237916296,black,2.2649006531648206e-06,4shooter2::i -4shooter2::r,457120375286172.06,6558.282548930798,black,3.870590421999708e-06,4shooter2::r -4shooter2::us,841601554141873.2,3562.1661643160696,black,5.73569343962823e-06,4shooter2::us -4shooter2::v,553348940189899.2,5417.783178497038,black,3.601760730243548e-06,4shooter2::v -F110W,257913110025249.16,11623.777402034775,black,2.090117568932865e-06,f110w -F160W,194770377372101.4,15392.097199013884,black,6.860338886338166e-07,f160w -F336W,892605528103010.9,3358.6220179156508,black,9.799281702505016e-07,f336w -F475W,629296351005638.9,4763.931294388097,black,2.5503487520969313e-06,f475w -F606W,503181785352830.9,5957.935416715961,black,3.060408613426672e-06,f606w -acswf::f606w,503181785352830.9,5957.935416715961,black,3.060408613426672e-06,acswf::f606w -acswf::f775w,389054222320953.3,7705.672906248112,black,1.067557962038323e-06,acswf::f775w -acswf::f850lp,331169552168755.4,9052.536866288769,black,4.344654063562589e-07,acswf::f850lp -atlasc,554281947972151.25,5408.663570891946,black,6.042609661990494e-06,atlasc -atlaso,436616572048166.06,6866.263838627909,black,4.2461524229031545e-06,atlaso -bessellb,683712648648914.8,4384.772734458257,black,5.3407838622709666e-06,bessellb -besselli,373184092365073.5,8033.366484086974,black,2.4830389241126147e-06,besselli -bessellr,458816901979980.8,6534.032567376529,black,3.836844843312584e-06,bessellr -bessellux,834708519753240.4,3591.582581289882,black,5.647092720353555e-06,bessellux -bessellv,546180129136141.2,5488.893535437894,black,3.1702798613495837e-06,bessellv -cspb,680491978233553.0,4405.52523158631,black,2.2073586305229347e-06,cspb -cspg,625343893346573.1,4794.041505636825,black,4.6168200670464365e-06,cspg -csphd,184330015100950.9,16263.898087124575,black,1.0629858518872203e-06,csphd -csphs,184179582437639.47,16277.18197816554,black,1.0715429285791026e-06,csphs -cspi,392873480125849.3,7630.7634178811795,black,1.7191345229590535e-06,cspi -cspjd,240867249898953.53,12446.376920306358,black,1.2934455716849411e-06,cspjd -cspjs,240748279060848.97,12452.527559884555,black,1.2599769665644512e-06,cspjs -cspk,138707921721926.8,21613.218212655916,black,3.0536162757376323e-07,cspk -cspr,480487365244624.0,6239.341129133972,black,2.9285203193328184e-06,cspr -cspu,826176739704008.1,3628.6722149476836,black,8.223965479407042e-07,cspy -cspv3009,552875604782020.7,5422.421524968488,black,2.0827836356833953e-06,cspv3009 -cspv3014,556452141306217.44,5387.569491533741,black,2.1905579947463704e-06,cspv3014 -cspv9844,556277051880250.2,5389.265240884614,black,2.1831161413270414e-06,cspv9844 -cspyd,286445389911332.1,10465.955067135112,black,1.1091282915309966e-06,cspyd -cspys,288577848124775.1,10388.616449533434,black,1.269058189658021e-06,cspys -desg,620930121198611.0,4828.11910334284,black,2.2212943474053863e-06,desg -desi,382926133257431.3,7828.989247867741,black,1.4786532469972641e-06,desi -desr,465963100826282.3,6433.823997402036,black,1.8871449570190595e-06,desr -desy,302343082438223.56,9915.638075207335,black,3.257136549336751e-07,desy -desz,326672163378618.0,9177.165721724992,black,1.016507905125435e-06,desz -f062,472863681570598.7,6339.9341011822,black,3.654667995804782e-06,f062 -f070w,431138441378100.06,6953.507950757928,black,3.5434347918590828e-06,f070w -f087,343834630656119.9,8719.088517288768,black,1.911959893084923e-06,f087 -f090w,332111240050333.4,9026.868767060238,black,2.6550724008119857e-06,f090w -f098m,303579380318104.7,9875.257591140195,black,8.270255724212669e-07,f098m -f1000w,30075280713789.703,99680.68489633189,black,8.224949844858544e-08,f1000w -f105w,283245882338867.94,10584.177094632434,black,1.3538445432979942e-06,f105w -f106,282952827287061.5,10595.139157095407,black,1.6608187784481626e-06,f106 -f1065c,28149526572769.953,106499.99999999997,black,5.0960930566924425e-08,f1065c -f110w,257913110025249.16,11623.777402034775,black,2.090117568932865e-06,f110w -f1130w,23364018589218.586,128313.73886097672,black,5.7787767136450294e-08,f1130w -f1140c,26297584035087.715,114000.0,black,4.783311411036155e-08,f1140c -f115w,260407576384632.16,11512.432248023182,black,1.9904065987857595e-06,f115w -f125w,239522855733189.78,12516.235959291747,black,1.1010549868702053e-06,f125w -f127m,235270336144973.5,12742.467363810281,black,2.473410552896684e-07,f127m -f1280w,26504373288451.406,113110.56282573062,black,2.1664756976621644e-08,f1280w -f129,231749598135626.38,12936.050824327773,black,1.3798794004731619e-06,f129 -f139m,216563202050180.12,13843.185507135911,black,1.960235257329525e-07,f139m -f140m,214039216003098.6,14006.426653873556,black,7.826545932752332e-07,f140m -f140w,214601847762543.28,13969.70534623355,black,1.2144685710982425e-06,f140w -f146,203603943595259.84,14724.295252156377,black,4.104577946051559e-06,f146 -f1500w,19865149056573.395,150913.772228051,black,5.223277477655887e-08,f1500w -f150w,199638431158316.72,15016.770882268624,black,1.595005900085123e-06,f150w -f153m,195504083312288.3,15334.332302467907,black,1.7417313590721095e-07,f153m -f1550c,19341448903225.805,154999.99999999997,black,3.540823637303967e-08,f1550c -f158,189849058592414.66,15791.095316602115,black,1.1666039062547851e-06,f158 -f160w,194770377372101.4,15392.097199013884,black,6.860338886338166e-07,f160w -f162m,184424157002830.38,16255.595951857813,black,6.881136087303551e-07,f162m -f1800w,16649388916367.08,180062.13892048062,black,3.4878109775767176e-08,f1800w -f182m,162984289875946.5,18393.948166917395,black,7.669273634495982e-07,f182m -f184,162770051633890.25,18418.15831540723,black,6.557844336435536e-07,f184 -f200w,150606580269818.88,19905.667963704338,black,1.2957564156918624e-06,f200w -f2100w,14383715367716.436,208424.90993173423,black,3.678234310640988e-08,f2100w -f210m,143403992676759.22,20905.44708024617,black,5.054914090239136e-07,f210m -f213,141043013464477.84,21255.39228325575,black,5.46029880502286e-07,f213 -f218w,1346339514759955.0,2226.7225667327407,black,3.239560201178833e-07,f218w -f225w,1267979391453779.8,2364.3322598191294,black,8.231662759455611e-07,f225w -f2300c,13034454695667.484,229999.99999972977,black,9.754423476976515e-08,f2300c -f250m,120042307156856.16,24973.900044112695,black,2.633604626615216e-07,f250m -f2550w,11799015772352.965,254082.59789131142,black,1.4466567538572002e-08,f2550w -f275w,1106890482622235.2,2708.4202340396714,black,7.676534136645101e-07,f275w -f277w,107684630555132.55,27839.855739349146,black,8.643104525679392e-07,f277w -f300m,100152659405977.97,29933.549421265365,black,3.598365202108833e-07,f300m -f300x,1060737560393359.8,2826.264188182665,black,1.633096770255274e-06,f300x -f335m,89415273146233.23,33528.104030919596,black,3.2736733857055253e-07,f335m -f336w,892605528103010.9,3358.6220179156508,black,9.799281702505016e-07,f336w -f350lp,494314925996387.3,6064.806912227266,black,5.187518961490083e-06,f350lp -f356w,84227392627955.55,35593.22551087698,black,6.65793767400338e-07,f356w -f360m,82821893941256.78,36197.247338081186,black,2.881735450713518e-07,f360m -f390w,762418722260376.2,3932.1235070302587,black,1.5900001142491503e-06,f390w -f410m,73605559975890.22,40729.59408205006,black,2.621863764736677e-07,f410m -f430m,70105601343790.64,42762.98216598252,black,1.2127045688793555e-07,f430m -f435w,691186912113771.5,4337.357272625168,black,1.945967749771663e-06,f435w -f438w,692376963211923.9,4329.902263201657,black,8.69021008763123e-07,f438w -f444w,67432801145626.016,44457.95709310316,black,5.456367193148507e-07,f444w -f460m,64646516632869.664,46374.10855445378,black,9.723703246851558e-08,f460m -f475w,629296351005638.9,4763.931294388097,black,2.5503487520969313e-06,f475w -f480m,62459567744318.414,47997.84385752019,black,1.091909024320217e-07,f480m -f555w,558028923881694.6,5372.346220239252,black,1.6289244259029962e-06,f555w -f560w,53105008050037.914,56452.76575751991,black,1.1787864179847144e-07,f560w -f606w,503181785352830.9,5957.935416715961,black,3.060408613426672e-06,f606w -f625w,474005700387155.44,6324.659339647968,black,1.6344417220550179e-06,f625w -f689m,435781082944315.1,6879.42799110231,black,3.9599541487888995e-07,f689m -f763m,393646579628259.25,7615.777032360079,black,2.8750657601603537e-07,f763m -f770w,39120502847575.625,76633.07886610631,black,1.4796064556003136e-07,f770w -f775w,389054222320953.3,7705.672906248112,black,1.067557962038323e-06,f775w -f845m,355191272963564.25,8440.310357252298,black,1.7181466763315823e-07,f845m -f850lp,331169552168755.4,9052.536866288769,black,4.344654063562589e-07,f850lp -kepler,467202064176594.5,6416.762274549444,black,7.560322680316976e-06,kepler -keplercam::b,688255231045061.4,4355.832610887515,black,6.055619169161638e-06,keplercam::b -keplercam::i,390655795915160.06,7674.081919038182,black,2.5439002755168935e-06,keplercam::i -keplercam::r,480255029140432.3,6242.3595758398,black,4.0114448929459825e-06,keplercam::r -keplercam::us,841601554141873.2,3562.1661643160696,black,5.73569343962823e-06,keplercam::us -keplercam::v,554170946316083.9,5409.746938068575,black,3.561017331824685e-06,keplercam::v -lsstg,621093082892117.8,4826.852306968504,black,2.621315361958164e-06,lsstg -lssti,397287890568202.3,7545.97522645948,black,1.0545805083077881e-06,lssti -lsstr,481730482385753.06,6223.240358701996,black,1.7353725758152557e-06,lsstr -lsstu,816711949886849.0,3670.7245197224624,black,6.193205527223998e-07,lsstu -lssty,308738116672272.25,9710.25091528403,black,2.6706474638146216e-07,lssty -lsstz,344949774531146.6,8690.901694528597,black,6.396218343153672e-07,lsstz -nicf110w,262976747689153.8,11399.960667030658,black,4.3217073351184184e-07,nicf110w -nicf160w,186188681695542.7,16101.54039815498,black,2.6090110348852947e-07,nicf160w -nicmos2::f110w,262976747689153.8,11399.960667030658,black,4.3217073351184184e-07,nicmos2::f110w -nicmos2::f160w,186188681695542.7,16101.54039815498,black,2.6090110348852947e-07,nicmos2::f160w -ps1::g,616038330049151.9,4866.45787082892,black,2.76726283022054e-06,ps1::g -ps1::i,397361869284026.25,7544.570356994026,black,2.085165720493733e-06,ps1::i -ps1::open,420649779148059.9,7126.889703999566,black,1.0964579386727118e-05,ps1::open -ps1::r,482398459481104.94,6214.623038441575,black,2.5951631975629004e-06,ps1::r -ps1::w,469206370623602.0,6389.351824050442,black,8.67808759889126e-06,ps1::w -ps1::y,311205999842720.94,9633.248014225652,black,4.478394480055995e-07,ps1::y -ps1::z,345404184868017.06,8679.468030028474,black,1.2348847721065606e-06,ps1::z -sdss::g,635476872166453.0,4717.598249924572,black,2.349194478568022e-06,sdss::g -sdss::i,399392699819130.75,7506.207753315575,black,9.591663918870038e-07,sdss::i -sdss::r,484568019946127.0,6186.798254522246,black,1.6003859416452628e-06,sdss::r -sdss::u,834071563918157.1,3594.3253668988164,black,4.2233790008173515e-07,sdss::u -sdss::z,336154208875072.5,8918.301484406344,black,1.310766285584106e-07,sdss::z -sdssg,635476872166453.0,4717.598249924572,black,2.349194478568022e-06,sdssg -sdssi,399392699819130.75,7506.207753315575,black,9.591663918870038e-07,sdssi -sdssr,484568019946127.0,6186.798254522246,black,1.6003859416452628e-06,sdssr -sdssu,834071563918157.1,3594.3253668988164,black,4.2233790008173515e-07,sdssu -sdssz,336154208875072.5,8918.301484406344,black,1.310766285584106e-07,sdssz -standard::b,682390986255234.4,4393.265210684784,black,5.288283406481628e-06,standard::b -standard::i,372660819227513.4,8044.646566855033,black,2.476005042099257e-06,standard::i -standard::r,458019285978635.75,6545.41123436413,black,3.7907477719292707e-06,standard::r -standard::u,841601554141873.2,3562.1661643160696,black,5.73569343962823e-06,standard::u -standard::v,545893784328716.6,5491.772696563188,black,3.1450011953880658e-06,standard::v -swope2::b,680491978233553.0,4405.52523158631,black,2.2073586305229347e-06,swope2::b -swope2::g,625343893346573.1,4794.041505636825,black,4.6168200670464365e-06,swope2::g -swope2::h,184179582437639.47,16277.18197816554,black,1.0715429285791026e-06,swope2::h -swope2::i,392873480125849.3,7630.7634178811795,black,1.7191345229590535e-06,swope2::i -swope2::j,240748279060848.97,12452.527559884555,black,1.2599769665644512e-06,swope2::j -swope2::r,480487365244624.0,6239.341129133972,black,2.9285203193328184e-06,swope2::r -swope2::u,826176739704008.1,3628.6722149476836,black,8.223965479407042e-07,swope2::u -swope2::v,556452141306217.44,5387.569491533741,black,2.1905579947463704e-06,swope2::v -swope2::v1,552875604782020.7,5422.421524968488,black,2.0827836356833953e-06,swope2::v1 -swope2::v2,556277051880250.2,5389.265240884614,black,2.1831161413270414e-06,swope2::v2 -swope2::y,288577848124775.1,10388.616449533434,black,1.269058189658021e-06,swope2::y -uvf475w,625659796000296.8,4791.620940269874,black,1.7515872444977517e-06,uvf475w -uvf555w,561983697661481.6,5334.540116510353,black,1.7509649707511728e-06,uvf555w -uvf606w,505992685240357.94,5924.837784119187,black,2.0527888190916526e-06,uvf606w -uvf625w,479055546650254.0,6257.989498217221,black,1.1605957214272798e-06,uvf625w -uvf775w,391455847013278.3,7658.397755132544,black,5.175302311078495e-07,uvf775w -uvf814w,372288013331352.56,8052.702404177907,black,6.266371568153224e-07,uvf814w -uvf850lp,326640599276275.9,9178.052534321752,black,1.7035196416676153e-07,uvf850lp -uvot::b,687747962370905.0,4359.045382941037,black,0.00018247120655547834,uvot::b -uvot::u,862593203132994.0,3475.4790196715494,black,0.00032220369210792584,uvot::u -uvot::uvm2,1329540337960905.5,2254.857934282662,black,0.00023881047144131277,uvot::uvm2 -uvot::uvw1,1146839759677006.2,2614.0745075356726,black,0.0003123430308647404,uvot::uvw1 -uvot::uvw2,1441988975059226.5,2079.0204584448134,black,0.0004580432607408996,uvot::uvw2 -uvot::v,552091703135354.06,5430.120690049585,black,5.248633568332721e-05,uvot::v -uvot::white,845112566257401.2,3547.367178879343,black,0.0020259448974808253,uvot::white -ztfg,622757983577125.8,4813.948048935322,black,5.282685683075786e-06,ztfg -ztfi,380301183700524.6,7883.027212349599,black,1.6916288919974418e-06,ztfi -ztfr,466834474565581.4,6421.814890148709,black,3.47587225668618e-06,ztfr \ No newline at end of file +bands,wavelength [Hz],wavelength [Angstrom],color,reference_flux,sncosmo_name,label +U,8.369e+14,3584.78,black,5.472e-06,bessellux,Bessell/U +B,6.863e+14,4371.07,black,5.535e-06,bessellb,Bessell/B +V,5.477e+14,5477.70,black,3.264e-06,bessellv,Bessell/V +R,4.617e+14,6498.09,black,4.167e-06,bessellr,Bessell/R +I,3.741e+14,8020.14,black,2.554e-06,besselli,Bessell/I +bessellux,8.369e+14,3584.78,black,5.472e-06,bessellux,Bessell/U +bessellb,6.863e+14,4371.07,black,5.535e-06,bessellb,Bessell/B +bessellv,5.477e+14,5477.70,black,3.264e-06,bessellv,Bessell/V +bessellr,4.617e+14,6498.09,black,4.167e-06,bessellr,Bessell/R +besselli,3.741e+14,8020.14,black,2.554e-06,besselli,Bessell/I +standard::u,8.369e+14,3584.78,black,5.472e-06,standard::u,Bessell/U +standard::b,6.863e+14,4371.07,black,5.535e-06,standard::b,Bessell/B +standard::v,5.477e+14,5477.70,black,3.264e-06,standard::v,Bessell/V +standard::r,4.617e+14,6498.09,black,4.167e-06,standard::r,Bessell/R +standard::i,3.741e+14,8020.14,black,2.554e-06,standard::i,Bessell/I +J1,2.844e+14,10550.25,black,2.351e-06,f105w,WFC3/F105W +J,2.429e+14,12350.00,black,1.165e-06,2massj,2MASS/J +H,1.805e+14,16620.00,black,9.953e-07,2massh,2MASS/H +K,1.390e+14,21590.00,black,6.143e-07,2massks,2MASS/K +Ks,1.390e+14,21590.00,black,6.143e-07,2massks,2MASS/K +2massj,2.429e+14,12350.00,black,1.165e-06,2massj,2MASS/J +2massh,1.805e+14,16620.00,black,9.953e-07,2massh,2MASS/H +2massks,1.390e+14,21590.00,black,6.143e-07,2massks,2MASS/K +ps1::g,6.187e+14,4849.11,black,4.937e-06,ps1::g,PS1/g +ps1::r,4.838e+14,6201.20,black,3.584e-06,ps1::r,PS1/r +ps1::w,4.773e+14,6285.91,black,7.368e-06,ps1::w,PS1/w +ps1::open,4.320e+14,6943.76,black,9.811e-06,ps1::open,PS1/open +ps1::i,3.981e+14,7534.96,black,2.330e-06,ps1::i,PS1/i +ps1::z,3.458e+14,8674.20,black,1.449e-06,ps1::z,PS1/z +ps1::y,3.116e+14,9627.79,black,7.517e-07,ps1::y,PS1/y +u',8.435e+14,3556.52,black,4.686e-06,sdssu,SDSS/u +g',6.380e+14,4702.50,black,5.313e-06,sdssg,SDSS/g +r',4.858e+14,6175.58,black,3.037e-06,sdssr,SDSS/r +i',4.005e+14,7489.98,black,2.153e-06,sdssi,SDSS/i +z',3.353e+14,8946.71,black,1.591e-06,sdssz,SDSS/z +u,8.435e+14,3556.52,black,4.686e-06,sdssu,SDSS/u +g,6.380e+14,4702.50,black,5.313e-06,sdssg,SDSS/g +r,4.858e+14,6175.58,black,3.037e-06,sdssr,SDSS/r +i,4.005e+14,7489.98,black,2.153e-06,sdssi,SDSS/i +z,3.353e+14,8946.71,black,1.591e-06,sdssz,SDSS/z +sdss::u,8.435e+14,3556.52,black,4.686e-06,sdss::u,SDSS/u +sdss::g,6.380e+14,4702.50,black,5.313e-06,sdss::g,SDSS/g +sdss::r,4.858e+14,6175.58,black,3.037e-06,sdss::r,SDSS/r +sdss::i,4.005e+14,7489.98,black,2.153e-06,sdss::i,SDSS/i +sdss::z,3.353e+14,8946.71,black,1.591e-06,sdss::z,SDSS/z +sdssu,8.435e+14,3556.52,black,4.686e-06,sdssu,SDSS/u +sdssg,6.380e+14,4702.50,black,5.313e-06,sdssg,SDSS/g +sdssr,4.858e+14,6175.58,black,3.037e-06,sdssr,SDSS/r +sdssi,4.005e+14,7489.98,black,2.153e-06,sdssi,SDSS/i +sdssz,3.353e+14,8946.71,black,1.591e-06,sdssz,SDSS/z +lsstu,8.152e+14,3680.04,black,3.822e-06,lsstu,Rubin/u +lsstg,6.273e+14,4782.26,black,6.074e-06,lsstg,Rubin/g +lsstr,4.825e+14,6217.82,black,3.433e-06,lsstr,Rubin/r +lssti,3.983e+14,7532.28,black,2.269e-06,lssti,Rubin/i +lsstz,3.454e+14,8685.06,black,1.445e-06,lsstz,Rubin/z +lssty,3.083e+14,9730.05,black,1.005e-06,lssty,Rubin/y +desg,6.239e+14,4808.49,black,4.781e-06,desg,DES/g +desr,4.675e+14,6417.65,black,3.409e-06,desr,DES/r +desi,3.839e+14,7814.58,black,2.300e-06,desi,DES/i +desz,3.272e+14,9168.85,black,1.679e-06,desz,DES/z +desy,3.032e+14,9896.11,black,7.511e-07,desy,DES/y +ztfg,6.272e+14,4783.50,black,5.785e-06,ztfg,ZTF/g +ztfr,4.675e+14,6417.10,black,3.796e-06,ztfr,ZTF/r +ztfi,3.813e+14,7867.41,black,2.340e-06,ztfi,ZTF/i +cspu,8.276e+14,3624.80,black,3.363e-06,cspy,CSP/u +cspb,6.830e+14,4392.06,black,5.473e-06,cspb,CSP/B +cspg,6.284e+14,4774.12,black,5.689e-06,cspg,CSP/g +cspv3009,5.542e+14,5412.96,black,3.457e-06,cspv3009,CSP/V3009 +cspv3014,5.579e+14,5377.47,black,3.684e-06,cspv3014,CSP/V3014 +cspv9844,5.575e+14,5380.76,black,3.350e-06,cspv9844,CSP/V9844 +cspr,4.817e+14,6227.46,black,3.201e-06,cspr,CSP/r +cspi,3.937e+14,7620.51,black,2.374e-06,cspi,CSP/i +cspyd,2.868e+14,10458.72,black,1.088e-06,cspyd,CSP/WIRC/Y +cspys,2.890e+14,10380.39,black,1.269e-06,cspys,CSP/Y +cspjd,2.413e+14,12431.54,black,1.262e-06,cspjd,CSP/WIRC/J +cspjs,2.412e+14,12437.23,black,1.227e-06,cspjs,CSP/J +csphd,1.847e+14,16242.63,black,9.958e-07,csphd,CSP/WIRC/H +csphs,1.846e+14,16255.91,black,1.015e-06,csphs,CSP/H +cspk,1.389e+14,21593.57,black,6.758e-07,cspk,CSP/K +kepler,4.759e+14,6303.36,black,1.126e-05,kepler,Kepler/K +keplercam::us,8.247e+14,3637.49,black,4.332e-06,keplercam::us,Keplercam/u +keplercam::b,6.893e+14,4352.04,black,5.662e-06,keplercam::b,Keplercam/B +keplercam::v,5.537e+14,5417.67,black,3.434e-06,keplercam::v,Keplercam/V +keplercam::r,4.813e+14,6233.01,black,4.006e-06,keplercam::r,Keplercam/r +keplercam::i,3.890e+14,7711.00,black,2.604e-06,keplercam::i,Keplercam/i +uvot::uvw2,1.464e+15,2049.89,black,1.792e-05,uvot::uvw2,UVOT/w2 +uvot::uvm2,1.334e+15,2248.59,black,1.162e-05,uvot::uvm2,UVOT/m2 +uvot::uvw1,1.141e+15,2628.38,black,1.345e-05,uvot::uvw1,UVOT/w1 +uvot::u,8.647e+14,3469.55,black,6.013e-06,uvot::u,UVOT/u +uvot::white,8.930e+14,3359.46,black,4.736e-05,uvot::white,UVOT/white +uvot::b,6.896e+14,4350.30,black,5.070e-06,uvot::b,UVOT/b +uvot::v,5.529e+14,5426.26,black,2.450e-06,uvot::v,UVOT/v +W2,1.464e+15,2049.89,black,1.792e-05,uvot::uvw2,UVOT/w2 +M2,1.334e+15,2248.59,black,1.162e-05,uvot::uvm2,UVOT/m2 +W1,1.141e+15,2628.38,black,1.345e-05,uvot::uvw1,UVOT/w1 +UVW2,1.464e+15,2049.89,violet,1.792e-05,uvot::uvw2,UVOT/w2 +UVM2,1.334e+15,2248.59,violet,1.162e-05,uvot::uvm2,UVOT/m2 +UVW1,1.141e+15,2628.38,violet,1.345e-05,uvot::uvw1,UVOT/w1 +w,8.930e+14,3359.46,black,4.736e-05,uvot::white,UVOT/white +c,5.674e+14,5287.72,black,8.713e-06,atlasc,ATLAS/c +o,4.444e+14,6750.15,black,5.841e-06,atlaso,ATLAS/o +cyan,5.674e+14,5287.72,black,8.713e-06,atlasc,ATLAS/c +orange,4.444e+14,6750.15,black,5.841e-06,atlaso,ATLAS/o +atlasc,5.674e+14,5287.72,black,8.713e-06,atlasc,ATLAS/c +atlaso,4.444e+14,6750.15,black,5.841e-06,atlaso,ATLAS/o +4shooter2::us,8.247e+14,3637.49,black,4.332e-06,4shooter2::us,4shooter/u +4shooter2::b,6.893e+14,4352.04,black,5.662e-06,4shooter2::b,4shooter/b +4shooter2::v,5.537e+14,5417.67,black,3.434e-06,4shooter2::v,4shooter/v +4shooter2::r,4.688e+14,6399.40,black,3.798e-06,4shooter2::r,4shooter/r +4shooter2::i,3.890e+14,7711.00,black,2.604e-06,4shooter2::i,4shooter/i +swope2::u,8.276e+14,3624.80,black,3.363e-06,swope2::u,CSP/u +swope2::b,6.830e+14,4392.06,black,5.473e-06,swope2::b,CSP/B +swope2::g,6.284e+14,4774.12,black,5.689e-06,swope2::g,CSP/g +swope2::v,5.579e+14,5377.47,black,3.684e-06,swope2::v,CSP/V3014 +swope2::v1,5.542e+14,5412.96,black,3.457e-06,swope2::v1,CSP/V3009 +swope2::v2,5.575e+14,5380.76,black,3.350e-06,swope2::v2,CSP/V9844 +swope2::r,4.817e+14,6227.46,black,3.201e-06,swope2::r,CSP/r +swope2::i,3.937e+14,7620.51,black,2.374e-06,swope2::i,CSP/i +swope2::y,2.890e+14,10380.39,black,1.269e-06,swope2::y,CSP/Y +swope2::j,2.412e+14,12437.23,black,1.227e-06,swope2::j,CSP/J +swope2::h,1.846e+14,16255.91,black,1.015e-06,swope2::h,CSP/H +acswf::f606w,5.066e+14,5921.88,black,5.630e-06,acswf::f606w,ACS/F606W +acswf::f775w,3.899e+14,7693.47,black,2.559e-06,acswf::f775w,ACS/F775W +acswf::f850lp,3.322e+14,9031.48,black,1.775e-06,acswf::f850lp,ACS/F850LP +nicf110w,2.670e+14,11234.92,black,3.213e-06,nicf110w,NICMOS2/F110W +nicmos2::f110w,2.670e+14,11234.92,black,3.213e-06,nicmos2::f110w,NICMOS2/F110W +nicf160w,1.871e+14,16030.37,black,1.325e-06,nicf160w,NICMOS2/F160W +nicmos2::f160w,1.871e+14,16030.37,black,1.325e-06,nicmos2::f160w,NICMOS2/F160W +uvf475w,6.285e+14,4773.10,black,6.161e-06,uvf475w,WFC3/F475W +uvf555w,5.651e+14,5308.42,black,6.295e-06,uvf555w,WFC3/F555W +uvf606w,5.094e+14,5889.16,black,6.600e-06,uvf606w,WFC3/F606W +uvf625w,4.806e+14,6242.56,black,4.075e-06,uvf625w,WFC3/F625W +uvf775w,3.921e+14,7651.37,black,2.358e-06,uvf775w,WFC3/F775W +uvf814w,3.732e+14,8039.03,black,3.019e-06,uvf814w,WFC3/F814W +uvf850lp,3.269e+14,9176.14,black,1.599e-06,uvf850lp,WFC3/F850LP +f218w,1.348e+15,2225.17,black,7.304e-06,f218w,WFC3/F218W +f225w,1.265e+15,2371.15,black,9.049e-06,f225w,WFC3/F225W +f275w,1.107e+15,2709.29,black,6.327e-06,f275w,WFC3/F275W +f300x,1.064e+15,2819.96,black,1.123e-05,f300x,WFC3/F300X +f336w,8.943e+14,3354.43,black,4.990e-06,f336w,WFC3/F336W +F336W,8.943e+14,3354.43,black,4.990e-06,f336w,WFC3/F336W +f390w,7.646e+14,3923.67,black,5.823e-06,f390w,WFC3/F390W +f438w,6.934e+14,4326.24,black,3.445e-06,f438w,WFC3/F438W +f435w,6.929e+14,4329.85,black,4.818e-06,f435w,ACS/F435W +f475w,6.285e+14,4773.10,black,6.161e-06,f475w,WFC3/F475W +F475W,6.285e+14,4773.10,black,6.161e-06,f475w,WFC3/F475W +f555w,5.651e+14,5308.42,black,6.295e-06,f555w,WFC3/F555W +f606w,5.094e+14,5889.16,black,6.600e-06,f606w,WFC3/F606W +F606W,5.094e+14,5889.16,black,6.600e-06,f606w,WFC3/F606W +f350lp,5.107e+14,5873.90,black,1.704e-05,f350lp,WFC3/F350LP +F625W,4.806e+14,6242.56,black,4.075e-06,f625w,WFC3/F625W +f625w,4.806e+14,6242.56,black,4.075e-06,f625w,WFC3/F625W +f062,4.769e+14,6290.80,black,6.013e-06,f062,Roman/F062 +f689m,4.362e+14,6876.76,black,1.596e-06,f689m,WFC3/F689M +f070w,4.262e+14,7039.12,black,2.686e-06,f070w,NIRCAM/F070W +f763m,3.940e+14,7614.39,black,1.392e-06,f763m,WFC3/F763M +f775w,3.921e+14,7651.37,black,2.358e-06,f775w,WFC3/F775W +F775W,3.921e+14,7651.37,black,2.358e-06,f775w,WFC3/F775W +F814W,3.732e+14,8039.03,black,3.019e-06,f814w,WFC3/F814W +f845m,3.555e+14,8439.08,black,1.266e-06,f845m,WFC3/F845M +f087,3.450e+14,8695.98,black,2.758e-06,f087,Roman/F087 +f090w,3.325e+14,9021.53,black,2.396e-06,f090w,NIRCAM/F090W +f850lp,3.269e+14,9176.14,black,1.599e-06,f850lp,WFC3/F850LP +F850W,3.269e+14,9176.14,black,1.599e-06,f850lp,WFC3/F850LP +f098m,3.042e+14,9862.72,black,1.672e-06,f098m,WFC3/F098M +f105w,2.844e+14,10550.25,black,2.351e-06,f105w,WFC3/F105W +f106,2.839e+14,10566.52,black,2.414e-06,f106,Roman/F106 +f115w,2.599e+14,11542.61,black,1.694e-06,f115w,NIRCAM/F115W +f110w,2.601e+14,11534.46,black,3.249e-06,f110w,WFC3/F110W +F110W,2.601e+14,11534.46,black,3.249e-06,f110w,WFC3/F110W +f125w,2.403e+14,12486.07,black,1.890e-06,f125w,WFC3/F125W +f127m,2.355e+14,12741.07,black,4.522e-07,f127m,WFC3/F127M +f129,2.325e+14,12901.34,black,1.949e-06,f129,Roman/F129 +f139m,2.167e+14,13841.81,black,3.588e-07,f139m,WFC3/F139M +f140w,2.155e+14,13923.21,black,2.039e-06,f140w,WFC3/F140W +f140m,2.135e+14,14053.23,black,7.560e-07,f140m,NIRCAM/F140M +f146,2.086e+14,14377.83,black,4.496e-06,f146,Roman/F146 +f150w,1.999e+14,15007.44,black,1.411e-06,f150w,NIRCAM/F150W +f153m,1.957e+14,15332.75,black,3.209e-07,f153m,WFC3/F153M +f160w,1.952e+14,15370.34,black,1.278e-06,f160w,WFC3/F160W +F160W,1.952e+14,15370.34,black,1.278e-06,f160w,WFC3/F160W +f158,1.905e+14,15748.67,black,1.578e-06,f158,Roman/F158 +f162m,1.844e+14,16272.47,black,6.707e-07,f162m,NIRCAM/F162M +f182m,1.626e+14,18451.67,black,7.228e-07,f182m,NIRCAM/F182M +f184,1.631e+14,18394.10,black,9.797e-07,f184,Roman/F184 +f200w,1.509e+14,19886.48,black,1.167e-06,f200w,NIRCAM/F200W +f210m,1.432e+14,20954.51,black,5.111e-07,f210m,NIRCAM/F210M +f213,1.413e+14,21229.96,black,8.119e-07,f213,Roman/F213 +f250m,1.198e+14,25032.33,black,3.103e-07,f250m,NIRCAM/F250M +f277w,1.086e+14,27617.40,black,9.584e-07,f277w,NIRCAM/F277W +f300m,1.004e+14,29891.21,black,3.981e-07,f300m,NIRCAM/F300M +f335m,8.923e+13,33620.67,black,3.275e-07,f335m,NIRCAM/F335M +f356w,8.407e+13,35683.62,black,6.257e-07,f356w,NIRCAM/F356W +f360m,8.278e+13,36241.76,black,2.980e-07,f360m,NIRCAM/F360M +f410m,7.349e+13,40822.38,black,2.794e-07,f410m,NIRCAM/F410M +f430m,7.007e+13,42812.58,black,1.365e-07,f430m,NIRCAM/F430M +f444w,6.812e+13,44043.15,black,6.085e-07,f444w,NIRCAM/F444W +f460m,6.480e+13,46299.28,black,1.174e-07,f460m,NIRCAM/F460M +f480m,6.226e+13,48181.95,black,1.476e-07,f480m,NIRCAM/F480M +f560w,5.324e+13,56352.56,black,3.268e-07,f560w,MIRI/F560W +f770w,3.927e+13,76393.34,black,3.461e-07,f770w,MIRI/F770W +f1000w,3.014e+13,99531.16,black,1.887e-07,f1000w,MIRI/F1000W +f1065c,2.840e+13,105628.39,black,5.517e-08,f1065c,MIRI/F1065C +f1280w,2.342e+13,128101.38,black,1.630e-07,f1280w,MIRI/F1280W +f1140c,2.652e+13,113103.03,black,5.144e-08,f1140c,MIRI/F1140C +f1130w,2.653e+13,113085.01,black,6.164e-08,f1130w,MIRI/F1130W +f1500w,1.992e+13,150635.06,black,1.426e-07,f1500w,MIRI/F1500W +f1550c,1.933e+13,155167.74,black,3.186e-08,f1550c,MIRI/F1550C +f1800w,1.668e+13,179837.22,black,9.882e-08,f1800w,MIRI/F1800W +f2100w,1.443e+13,207950.05,black,1.122e-07,f2100w,MIRI/F2100W +f2300c,1.325e+13,226446.44,black,9.225e-08,f2300c,MIRI/F2300C +f2550w,1.183e+13,253640.02,black,6.601e-08,f2550w,MIRI/F2550W +G,4.799e+14,6251.50,black,1.321e-05,gaia::G,Gaia/G +gaia::G,4.799e+14,6251.50,black,1.321e-05,gaia::G,Gaia/G +y',3.116e+14,9627.79,black,7.517e-07,ps1::y,PS1/y +y,3.116e+14,9627.79,black,7.517e-07,ps1::y,PS1/y +Y,3.116e+14,9627.79,black,7.517e-07,ps1::y,PS1/y +grond::g,6.627e+14,4527.24,black,7.469e-06,grond::g,GROND/g +grond::r,4.869e+14,6160.99,black,4.549e-06,grond::r,GROND/r +grond::i,3.935e+14,7623.46,black,1.773e-06,grond::i,GROND/i +grond::z,3.353e+14,8948.00,black,1.748e-06,grond::z,GROND/z +grond::J,2.432e+14,12334.41,black,1.656e-06,grond::J,GROND/J +grond::H,1.828e+14,16407.47,black,1.074e-06,grond::H,GROND/H +grond::K,1.386e+14,21643.32,black,7.075e-07,grond::K,GROND/K +spitzer::I1,8.480e+13,35378.41,black,6.006e-07,spitzer::I1,IRAC/I1 +spitzer::I2,6.699e+13,44780.49,black,4.743e-07,spitzer::I2,IRAC/I2 +spitzer::I3,5.267e+13,56961.78,black,4.269e-07,spitzer::I3,IRAC/I3 +spitzer::I4,3.847e+13,77978.40,black,4.653e-07,spitzer::I4,IRAC/I4 +wise::W1,8.948e+13,33526.00,black,6.485e-07,wise::W1,WISE/W1 +wise::W2,6.518e+13,46028.00,black,5.429e-07,wise::W2,WISE/W2 +wise::W3,2.595e+13,115608.00,black,4.757e-07,wise::W3,WISE/W3 +wise::W4,1.358e+13,220883.00,black,9.237e-08,wise::W4,WISE/W4 +euclid::Y,2.782e+14,10785.39,black,2.210e-06,euclid::Y,EUCLID/Y +euclid::J,2.202e+14,13620.63,black,2.123e-06,euclid::J,EUCLID/J +euclid::H,1.700e+14,17648.80,black,1.623e-06,euclid::H,EUCLID/H +euclid::VIS,4.223e+14,7103.37,black,7.577e-06,euclid::VIS,EUCLID/VIS +efosc2::g,5.866e+14,5114.66,black,3.302e-06,efosc2::g,EFOSC2/g +efosc2::r,4.493e+14,6677.40,black,2.342e-06,efosc2::r,EFOSC2/r +efosc2::i,3.758e+14,7983.20,black,2.435e-06,efosc2::i,EFOSC2/i diff --git a/redback/transient_models/__init__.py b/redback/transient_models/__init__.py index 52315786e..3d1085b5d 100644 --- a/redback/transient_models/__init__.py +++ b/redback/transient_models/__init__.py @@ -1,4 +1,4 @@ from redback.transient_models import afterglow_models, \ extinction_models, kilonova_models, fireball_models, \ gaussianprocess_models, magnetar_models, magnetar_driven_ejecta_models, phase_models, prompt_models, \ - shock_powered_models, supernova_models, tde_models, integrated_flux_afterglow_models, phenomenological_models + shock_powered_models, supernova_models, tde_models, integrated_flux_afterglow_models, phenomenological_models, combined_models diff --git a/redback/transient_models/combined_models.py b/redback/transient_models/combined_models.py new file mode 100644 index 000000000..364c1de36 --- /dev/null +++ b/redback/transient_models/combined_models.py @@ -0,0 +1,182 @@ +import redback.transient_models.extinction_models +def tophat_and_twolayerstratified(time, redshift, av, thv, loge0, thc, logn0, p, logepse, logepsb, ksin, g0, mej, vej_1, vej_2, kappa, beta, **kwargs): + + """ + function to combine the flux density signals of a tophat afterglow and a two layer stratified kilonova with extinction + + :param time: time in days in observer frame + :param redshift: source redshift + :param av: absolute mag extinction + :param thv: viewing angle in radians + :param loge0: log10 on axis isotropic equivalent energy + :param thc: half width of jet core/jet opening angle in radians + :param beta: index for power-law structure, theta^-b + :param logn0: log10 number density of ISM in cm^-3 + :param p: electron distribution power law index. Must be greater than 2. + :param logepse: log10 fraction of thermal energy in electrons + :param logepsb: log10 fraction of thermal energy in magnetic field + :param ksin: fraction of electrons that get accelerated + :param g0: initial lorentz factor + :param mej: ejecta mass in solar masses + :param vej_1: velocity of inner shell in c + :param vej_2: velocity of outer shell in c + :param kappa: constant gray opacity + :param beta: power law index of density profile + :param kwargs: Additional keyword arguments + :param r_v: extinction parameter, defaults to 3.1 + :param spread: whether jet can spread, defaults to False + :param latres: latitudinal resolution for structured jets, defaults to 2 + :param tres: time resolution of shock evolution, defaults to 100 + :param spectype: whether to have inverse compton, defaults to 0, i.e., no inverse compton. + Change to 1 for including inverse compton emission. + :param l0, ts, q: energy injection parameters, defaults to 0 + :param frequency: frequency to calculate - Must be same length as time array or a single number + :return: flux density signal with extinction added + + """ + kwargs['output_format']='flux_density' + kwargs['base_model']='tophat' + afterglow = redback.transient_models.extinction_models.extinction_with_afterglow_base_model(time=time, redshift=redshift, av=av, + thv=thv, loge0=loge0 , thc= thc, logn0=logn0, p=p, logepse=logepse, logepsb=logepsb, ksin=ksin, g0=g0, + **kwargs) + kwargs['base_model']='two_layer_stratified_kilonova' + kilonova = redback.transient_models.extinction_models.extinction_with_kilonova_base_model(time=time, redshift=redshift, av=av, + mej=mej, vej_1=vej_1, vej_2=vej_2, kappa=kappa, beta=beta, **kwargs) + + combined = afterglow+kilonova + return combined + + +def tophat_and_twocomponent(time, redshift, av, thv, loge0, thc, logn0, p, logepse, logepsb, ksin, g0, mej_1, vej_1, temperature_floor_1, kappa_1, mej_2, vej_2, temperature_floor_2, kappa_2, **kwargs): + + """ + function to combine the flux density signals of a tophat afterglow and a two component kilonova with extinction added + + :param time: time in days in observer frame + :param redshift: source redshift + :param av: absolute mag extinction + :param thv: viewing angle in radians + :param loge0: log10 on axis isotropic equivalent energy + :param thc: half width of jet core/jet opening angle in radians + :param beta: index for power-law structure, theta^-b + :param logn0: log10 number density of ISM in cm^-3 + :param p: electron distribution power law index. Must be greater than 2. + :param logepse: log10 fraction of thermal energy in electrons + :param logepsb: log10 fraction of thermal energy in magnetic field + :param ksin: fraction of electrons that get accelerated + :param g0: initial lorentz factor + :param mej_1: ejecta mass in solar masses of first component + :param vej_1: minimum initial velocity of first component + :param kappa_1: gray opacity of first component + :param temperature_floor_1: floor temperature of first component + :param mej_2: ejecta mass in solar masses of second component + :param vej_2: minimum initial velocity of second component + :param temperature_floor_2: floor temperature of second component + :param kappa_2: gray opacity of second component + :param kwargs: Additional keyword arguments + :param r_v: extinction parameter, defaults to 3.1 + :param spread: whether jet can spread, defaults to False + :param latres: latitudinal resolution for structured jets, defaults to 2 + :param tres: time resolution of shock evolution, defaults to 100 + :param spectype: whether to have inverse compton, defaults to 0, i.e., no inverse compton. + Change to 1 for including inverse compton emission. + :param l0, ts, q: energy injection parameters, defaults to 0 + :param frequency: frequency to calculate - Must be same length as time array or a single number + :return: flux density signal with extinction added + """ + + kwargs['output_format']='flux_density' + kwargs['base_model']='tophat' + afterglow = redback.transient_models.extinction_models.extinction_with_afterglow_base_model(time=time, redshift=redshift, av=av, + thv=thv, loge0=loge0 , thc= thc, logn0=logn0, p=p, logepse=logepse, logepsb=logepsb, ksin=ksin, g0=g0, + **kwargs) + kwargs['base_model']='two_component_kilonova_model' + kilonova = redback.transient_models.extinction_models.extinction_with_kilonova_base_model(time=time, redshift=redshift, av=av, + mej_1=mej_1, vej_1=vej_2, temperature_floor_1=temperature_floor_1, kappa_1=kappa_1, mej_2=mej_2, vej_2=vej_2, temperature_floor_2=temperature_floor_2, kappa_2=kappa_2, **kwargs) + + combined = afterglow + kilonova + return combined + + +def tophat_and_arnett(time, av, redshift, thv, loge0, thc, logn0, p, logepse, logepsb, ksin, g0, f_nickel, mej, **kwargs): + + """ + function to combine the flux density signals of a tophat afterglow and an arnett supernova with extinction added + + :param time: time in days in observer frame + :param redshift: source redshift + :param av: absolute mag extinction + :param thv: viewing angle in radians + :param loge0: log10 on axis isotropic equivalent energy + :param thc: half width of jet core/jet opening angle in radians + :param beta: index for power-law structure, theta^-b + :param logn0: log10 number density of ISM in cm^-3 + :param p: electron distribution power law index. Must be greater than 2. + :param logepse: log10 fraction of thermal energy in electrons + :param logepsb: log10 fraction of thermal energy in magnetic field + :param ksin: fraction of electrons that get accelerated + :param g0: initial lorentz factor + :param f_nickel: fraction of nickel mass + :param mej: total ejecta mass in solar masses + :param kwargs: Additional keyword arguments + Must include all the kwargs required by the specific interaction_process, photosphere, sed methods used + e.g., for Diffusion and TemperatureFloor: kappa, kappa_gamma, vej (km/s), temperature_floor + :param r_v: extinction parameter, defaults to 3.1 + :param spread: whether jet can spread, defaults to False + :param latres: latitudinal resolution for structured jets, defaults to 2 + :param tres: time resolution of shock evolution, defaults to 100 + :param spectype: whether to have inverse compton, defaults to 0, i.e., no inverse compton. + Change to 1 for including inverse compton emission. + :param l0, ts, q: energy injection parameters, defaults to 0 + :param interaction_process: Default is Diffusion. + Can also be None in which case the output is just the raw engine luminosity, or another interaction process. + :param photosphere: Default is TemperatureFloor. + kwargs must have vej or relevant parameters if using different photosphere model + :param sed: Default is blackbody. + :param frequency: frequency to calculate - Must be same length as time array or a single number + :return: flux density with extinction added + """ + + kwargs['output_format']='flux_density' + kwargs['base_model']='tophat' + afterglow = redback.transient_models.extinction_models.extinction_with_afterglow_base_model(time=time, redshift=redshift, av=av, + thv=thv, loge0=loge0 , thc= thc, logn0=logn0, p=p, logepse=logepse, logepsb=logepsb, ksin=ksin, g0=g0, + **kwargs) + kwargs['base_model']='arnett' + supernova = redback.transient_models.extinction_models.extinction_with_supernova_base_model(time=time, redshift=redshift, av=av, + f_nickel=f_nickel, mej=mej, **kwargs) + + combined = afterglow + supernova + return combined + +def afterglow_and_optical(time, redshift, av, model_type, afterglow_kwargs, optical_kwargs, **shared_kwargs): + + """ + function to combine the signals of any afterglow and any other optical transient with extinction added + + :param time: time in days in observer frame + :param redshift: source redshift + :param av: absolute mag extinction + :param model_type: specify type of optical transient model- 'supernova', 'tde', 'kilonova', 'magnetar_driven', 'shock_powered' + :param afterglow_kwargs: dictionary of parameters required by the afterglow transient model specified by 'base_model' + and any additional keyword arguments. Refer to model documentation for details. + :param optical_kwargs: dictionary of parameters required by the optical transient model specifed by 'base_model' + and any additional keyword arguments. Note the base model must correspond to the given model type. Refer to model documentation + for details. + :param shared_kwargs: kwargs shared by models e.g. output_format, frequency, bands, r_v (extinction paramater defaults to 3.1) + :return: set by shared_kwargs output format - 'flux_density' or 'magnitude' with extinction added + note that only afterglow_models_sed allow for magnitude outputs + """ + + afterglow_kwargs.update(shared_kwargs) + optical_kwargs.update(shared_kwargs) + + afterglow = redback.transient_models.extinction_models._evaluate_extinction_model(time=time, redshift=redshift, av=av, + model_type='afterglow', **afterglow_kwargs) + + optical= redback.transient_models.extinction_models._evaluate_extinction_model(time=time, redshift=redshift, av=av, + model_type=model_type, **optical_kwargs) + + combined= afterglow + optical + return combined + \ No newline at end of file diff --git a/redback/transient_models/extinction_models.py b/redback/transient_models/extinction_models.py index 8bf65ec73..da1317052 100644 --- a/redback/transient_models/extinction_models.py +++ b/redback/transient_models/extinction_models.py @@ -80,9 +80,13 @@ def _perform_extinction(flux_density, angstroms, av, r_v): :return: flux """ import extinction # noqa + import numpy.ma as ma if isinstance(angstroms, float): - angstroms = np.array([angstroms]) + angstroms = np.array([angstroms]) mag_extinction = extinction.fitzpatrick99(angstroms, av, r_v=r_v) + if av < 10: + mask= mag_extinction > 10 + mag_extinction[mask]=0 flux_density = extinction.apply(mag_extinction, flux_density) return flux_density @@ -222,6 +226,7 @@ def extinction_with_afterglow_base_model(time, av, **kwargs): :param kwargs: Must be all the parameters required by the base_model specified using kwargs['base_model'] and r_v, default is 3.1 :return: flux_density or magnitude depending on kwargs['output_format'] + Note that only sed varient models can take magnitude as an output """ output = _evaluate_extinction_model(time=time, av=av, model_type='afterglow', **kwargs) return output diff --git a/redback/utils.py b/redback/utils.py index f7828065a..34119de85 100644 --- a/redback/utils.py +++ b/redback/utils.py @@ -807,3 +807,20 @@ def velocity_from_lorentz_factor(gamma): :return: velocity in cgs """ return speed_of_light * np.sqrt(1 - 1 / gamma ** 2) + +class user_cosmology(): + """ + Cosmology class similar to the Astropy cosmology class. + Needed if the user wants to provide a distance instead + of using the luminosity distance inferred from a particular + cosmology model. + """ + + def __init__(self, dl=0): + self.dl = 0 + + def set_luminosity_distance(cls, dl): + cls.dl = dl + + def luminosity_distance(self, redshift): + return self.dl \ No newline at end of file diff --git a/test/model_test.py b/test/model_test.py index e678df8b2..1f6c48abd 100644 --- a/test/model_test.py +++ b/test/model_test.py @@ -91,6 +91,9 @@ def test_models(self): model_name = f.replace(".prior", "") if model_name == 'trapped_magnetar': kwargs['output_format'] = 'luminosity' + elif model_name in ['tophat_and_twocomponent', 'tophat_and_twolayerstratified,', + 'tophat_and_arnett']: + pass else: kwargs['output_format'] = 'magnitude' prior = self.get_prior(file=f)