Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated meanz summary metric #405

Open
wants to merge 39 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
e3e62a6
Added sky fraction metric and added remove_monopole to totalpowermetric
ixkael Mar 15, 2024
550815d
Added metric for linear combination of depth fluctuations
ixkael Mar 15, 2024
dcb8b30
Removed unnecessary fsky metric since AreaThresholdMetric does the job
ixkael Mar 20, 2024
69fb816
fixed unit and logical operator
ixkael Mar 20, 2024
f349b2d
Added prototype of nested metric, untested for now
ixkael Mar 20, 2024
fb0b41f
working summary metric
ixkael Mar 21, 2024
c3d20bb
Nested metric now working and returning arrays working with the sigma…
ixkael Mar 21, 2024
7b51a43
Added doc and reformated with black
ixkael Mar 28, 2024
30c7c54
Reformatting and minor changes
rhiannonlynne Mar 29, 2024
0d66452
Make sure we import the uniformity metrics, add to end of metric cla…
rhiannonlynne Mar 29, 2024
5ce660e
Merge pull request #1 from rhiannonlynne/main
ixkael Apr 5, 2024
4799ba5
Merge branch 'main' into main
ixkael Apr 5, 2024
595377f
copied rachel's FOM ratio metric
ixkael Apr 9, 2024
e62e418
added ancillary code needed for metrics
reneehlozek Apr 10, 2024
9865169
updated summary metric
reneehlozek Apr 10, 2024
85aced6
updated summary metric
reneehlozek Apr 10, 2024
dd30472
working version of FOM ratio metric
ixkael Apr 12, 2024
a42ea4c
fixed imports
ixkael Apr 12, 2024
caf2e9f
updated models to fix import error
ixkael Apr 12, 2024
6109b07
added nested RIZexptime and Exgal metric for the FOM ratio summary
ixkael Apr 12, 2024
f6b551a
fixed bug that col wasn't set
ixkael Apr 12, 2024
69a2cdf
Tidied up FOM ratio metrics
ixkael Apr 12, 2024
de63676
merged
ixkael Apr 12, 2024
a1fb585
Merge branch 'lsst:main' into main
ixkael Apr 12, 2024
f6a2d0c
updated nested metric
reneehlozek Apr 16, 2024
4c86798
Merge branch 'main' into main
ixkael Apr 16, 2024
47ed7e7
exp time only calculated for i
ixkael Apr 16, 2024
ce9fe21
Merge pull request #2 from reneehlozek/main
ixkael Apr 16, 2024
d613522
Minor edits
ixkael Apr 16, 2024
174cb11
minor edits to areaatrisk
ixkael Apr 18, 2024
29185d1
added docstrings
ixkael Apr 19, 2024
76313fb
Added docstring for UniformAreaFoMFractionMetric, written by Rachel
ixkael May 3, 2024
194a168
added meanz tomoography
reneehlozek May 8, 2024
1a57bc0
updated comments
reneehlozek May 8, 2024
7171a45
cleaned up multibandmetric meanz metric
reneehlozek May 8, 2024
184a253
draft stripiness metric
ixkael Aug 13, 2024
dad7105
working stripiness metric
ixkael Aug 14, 2024
a6c1258
Merge branch 'main' into main
ixkael Aug 27, 2024
0851b53
Merge pull request #3 from reneehlozek/main
ixkael Aug 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion rubin_sim/maf/maf_contrib/lss_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
import numpy as np
import scipy

from rubin_sim.maf.metrics import BaseMetric, ExgalM5
from rubin_sim.maf.metrics.base_metric import BaseMetric
from rubin_sim.maf.metrics.simple_metrics import Coaddm5Metric
from rubin_sim.maf.metrics.exgal_m5 import ExgalM5


class GalaxyCountsMetric(BaseMetric):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
power_law_const_a,
power_law_const_b,
)
from rubin_sim.maf.metrics import BaseMetric, Coaddm5Metric, ExgalM5
from rubin_sim.maf.metrics.base_metric import BaseMetric
from rubin_sim.maf.metrics.simple_metrics import Coaddm5Metric
from rubin_sim.maf.metrics.exgal_m5 import ExgalM5


class GalaxyCountsMetricExtended(BaseMetric):
Expand Down
6 changes: 5 additions & 1 deletion rubin_sim/maf/maf_contrib/lv_dwarfs/lv_dwarfs_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@
from rubin_scheduler.data import get_data_dir

from rubin_sim.maf.maf_contrib.lss_obs_strategy import GalaxyCountsMetricExtended
from rubin_sim.maf.metrics import BaseMetric, ExgalM5, StarDensityMetric

from rubin_sim.maf.metrics.base_metric import BaseMetric
from rubin_sim.maf.metrics.simple_metrics import Coaddm5Metric
from rubin_sim.maf.metrics.exgal_m5 import ExgalM5
from rubin_sim.maf.metrics.star_density import StarDensityMetric
from rubin_sim.maf.slicers import UserPointsSlicer


Expand Down
2 changes: 2 additions & 0 deletions rubin_sim/maf/maf_contrib/static_probes_fom_summary_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ def __init__(
super().__init__(col=col, **kwargs)
if col is None:
self.col = "metricdata"
else:
self.col = col
self.shear_m = shear_m
self.sigma_z = sigma_z
self.sig_delta_z = sig_delta_z
Expand Down
3 changes: 2 additions & 1 deletion rubin_sim/maf/maf_contrib/young_stellar_objects_metric.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
import scipy.integrate as integrate

from rubin_sim.maf.maps import DustMap, DustMap3D, StellarDensityMap
from rubin_sim.maf.metrics import BaseMetric, CrowdingM5Metric
from rubin_sim.maf.metrics.base_metric import BaseMetric
from rubin_sim.maf.metrics.crowding_metric import CrowdingM5Metric
from rubin_sim.phot_utils import DustValues


Expand Down
3 changes: 3 additions & 0 deletions rubin_sim/maf/metrics/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .cadence_metrics import *
from .calibration_metrics import *
from .chip_vendor_metric import *
from .cosmology_summary_metrics import *
from .coverage_metric import *
from .crowding_metric import *
from .cumulative_metric import *
Expand Down Expand Up @@ -40,8 +41,10 @@
from .surfb_metric import *
from .technical_metrics import *
from .tgaps import *
from .tomography_models import *
from .transient_metrics import *
from .use_metrics import *
from .uniformity_metrics import *
from .vector_metrics import *
from .visit_groups_metric import *
from .weak_lensing_systematics_metric import *
4 changes: 2 additions & 2 deletions rubin_sim/maf/metrics/area_summary_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
self.lower_threshold = lower_threshold
self.mask_val = np.nan # Include so all values get passed
self.col = col
self.units = "degrees"
self.units = "square degrees"

def run(self, data_slice, slice_point=None):
# find out what nside we have
Expand All @@ -113,7 +113,7 @@ def run(self, data_slice, slice_point=None):
npix = len(
np.where(
(data_slice[self.col] > self.lower_threshold)
and (data_slice[self.col] < self.upper_threshold)
& (data_slice[self.col] < self.upper_threshold)
)[0]
)
area = pix_area * npix
Expand Down
Loading