rubin-sim 2.6.1.dev2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- batch/compile_prenight_metadata_cache.sh +34 -0
- batch/run_auxtel_prenight_sims.sh +163 -0
- batch/run_prenight_sims.sh +239 -0
- docs/.gitignore +3 -0
- docs/Makefile +32 -0
- docs/api.rst +25 -0
- docs/conf.py +8 -0
- docs/data-api.rst +12 -0
- docs/data-download.rst +70 -0
- docs/developer.rst +14 -0
- docs/documenteer.toml +11 -0
- docs/index.rst +22 -0
- docs/installation.rst +76 -0
- docs/introduction.rst +37 -0
- docs/maf-api-batches.rst +12 -0
- docs/maf-api-db.rst +12 -0
- docs/maf-api-maf-contrib.rst +12 -0
- docs/maf-api-maps.rst +12 -0
- docs/maf-api-metricbundles.rst +12 -0
- docs/maf-api-metrics.rst +12 -0
- docs/maf-api-plots.rst +12 -0
- docs/maf-api-run-comparison.rst +12 -0
- docs/maf-api-slicers.rst +12 -0
- docs/maf-api-stackers.rst +12 -0
- docs/maf-api-utils.rst +12 -0
- docs/maf-api.rst +22 -0
- docs/maf.rst +60 -0
- docs/metric_list.py +49 -0
- docs/moving-objects-api.rst +12 -0
- docs/moving-objects.rst +22 -0
- docs/phot-utils-api.rst +12 -0
- docs/phot-utils.rst +11 -0
- docs/prenight.rst +117 -0
- docs/protoarchive.rst +276 -0
- docs/satellite-constellations-api.rst +12 -0
- docs/satellite-constellations.rst +13 -0
- docs/selfcal-api.rst +12 -0
- docs/selfcal.rst +15 -0
- docs/sim-archive-api.rst +12 -0
- docs/skybrightness-api.rst +12 -0
- docs/skybrightness.rst +23 -0
- docs/user-guide.rst +28 -0
- docs/vseqarchive-architecture.rst +438 -0
- docs/vseqarchive-setup.rst +238 -0
- docs/vseqarchive.rst +225 -0
- rubin_sim/__init__.py +7 -0
- rubin_sim/data/__init__.py +1 -0
- rubin_sim/data/rs_download_data.py +155 -0
- rubin_sim/maf/__init__.py +34 -0
- rubin_sim/maf/batches/__init__.py +18 -0
- rubin_sim/maf/batches/altaz_batch.py +161 -0
- rubin_sim/maf/batches/col_map_dict.py +274 -0
- rubin_sim/maf/batches/common.py +388 -0
- rubin_sim/maf/batches/ddf_batch.py +728 -0
- rubin_sim/maf/batches/filterchange_batch.py +182 -0
- rubin_sim/maf/batches/glance_batch.py +591 -0
- rubin_sim/maf/batches/hourglass_batch.py +79 -0
- rubin_sim/maf/batches/info_batch.py +114 -0
- rubin_sim/maf/batches/metadata_batch.py +558 -0
- rubin_sim/maf/batches/moving_objects_batch.py +1587 -0
- rubin_sim/maf/batches/openshutter_batch.py +100 -0
- rubin_sim/maf/batches/radar_limited.py +1100 -0
- rubin_sim/maf/batches/science_radar_batch.py +1910 -0
- rubin_sim/maf/batches/skycoverage.py +155 -0
- rubin_sim/maf/batches/slew_batch.py +146 -0
- rubin_sim/maf/batches/srd_batch.py +637 -0
- rubin_sim/maf/batches/time_batch.py +757 -0
- rubin_sim/maf/batches/time_sci_batch.py +105 -0
- rubin_sim/maf/batches/visitdepth_batch.py +485 -0
- rubin_sim/maf/db/__init__.py +2 -0
- rubin_sim/maf/db/add_run.py +34 -0
- rubin_sim/maf/db/results_db.py +1074 -0
- rubin_sim/maf/db/tracking_db.py +332 -0
- rubin_sim/maf/ddf_dir.py +53 -0
- rubin_sim/maf/generate_ss.py +218 -0
- rubin_sim/maf/glance_dir.py +58 -0
- rubin_sim/maf/maf_contrib/__init__.py +25 -0
- rubin_sim/maf/maf_contrib/calculate_lsst_field_visibility_astropy.py +170 -0
- rubin_sim/maf/maf_contrib/depth_limited_num_gal_metric.py +109 -0
- rubin_sim/maf/maf_contrib/example_new_metrics.py +40 -0
- rubin_sim/maf/maf_contrib/filter_pair_t_gaps_metric.py +208 -0
- rubin_sim/maf/maf_contrib/grb_transient_metric.py +249 -0
- rubin_sim/maf/maf_contrib/gw170817_det_metric.py +72 -0
- rubin_sim/maf/maf_contrib/intervals_between_obs_metric.py +68 -0
- rubin_sim/maf/maf_contrib/kne_metrics.py +473 -0
- rubin_sim/maf/maf_contrib/lss_metrics.py +45 -0
- rubin_sim/maf/maf_contrib/lss_obs_strategy/__init__.py +3 -0
- rubin_sim/maf/maf_contrib/lss_obs_strategy/constants_for_pipeline.py +73 -0
- rubin_sim/maf/maf_contrib/lss_obs_strategy/galaxy_counts_metric_extended.py +205 -0
- rubin_sim/maf/maf_contrib/lss_obs_strategy/galaxy_counts_with_pixel_calibration.py +171 -0
- rubin_sim/maf/maf_contrib/lv_dwarfs/__init__.py +1 -0
- rubin_sim/maf/maf_contrib/lv_dwarfs/lv_dwarfs_metrics.py +388 -0
- rubin_sim/maf/maf_contrib/microlensing_metric.py +593 -0
- rubin_sim/maf/maf_contrib/num_obs_in_survey_time_overlap_metric.py +43 -0
- rubin_sim/maf/maf_contrib/periodic_metric.py +51 -0
- rubin_sim/maf/maf_contrib/periodic_star_metric.py +186 -0
- rubin_sim/maf/maf_contrib/periodic_star_modulation_metric.py +236 -0
- rubin_sim/maf/maf_contrib/presto_color_kne_pop_metric.py +441 -0
- rubin_sim/maf/maf_contrib/selfcal_uniformity_metric.py +171 -0
- rubin_sim/maf/maf_contrib/star_count_mass_metric.py +64 -0
- rubin_sim/maf/maf_contrib/star_count_metric.py +56 -0
- rubin_sim/maf/maf_contrib/star_counts/__init__.py +8 -0
- rubin_sim/maf/maf_contrib/star_counts/abs_mag.py +324 -0
- rubin_sim/maf/maf_contrib/star_counts/coords.py +99 -0
- rubin_sim/maf/maf_contrib/star_counts/readme.txt +1 -0
- rubin_sim/maf/maf_contrib/star_counts/spec_type.py +91 -0
- rubin_sim/maf/maf_contrib/star_counts/starcount.py +30 -0
- rubin_sim/maf/maf_contrib/star_counts/starcount_bymass.py +93 -0
- rubin_sim/maf/maf_contrib/star_counts/stellardensity.py +59 -0
- rubin_sim/maf/maf_contrib/static_probes_fom_summary_metric.py +386 -0
- rubin_sim/maf/maf_contrib/tdes_pop_metric.py +362 -0
- rubin_sim/maf/maf_contrib/transient_ascii_sed_metric.py +652 -0
- rubin_sim/maf/maf_contrib/triplet_metric.py +156 -0
- rubin_sim/maf/maf_contrib/var_depth_metric.py +157 -0
- rubin_sim/maf/maf_contrib/xrb_metrics.py +523 -0
- rubin_sim/maf/maf_contrib/young_stellar_objects_metric.py +200 -0
- rubin_sim/maf/maf_night_report.py +200 -0
- rubin_sim/maf/make_fbs_tracking_db.py +90 -0
- rubin_sim/maf/maps/__init__.py +8 -0
- rubin_sim/maf/maps/base_map.py +72 -0
- rubin_sim/maf/maps/create_gaia_density_map.py +158 -0
- rubin_sim/maf/maps/dust_map.py +66 -0
- rubin_sim/maf/maps/dust_map_3d.py +190 -0
- rubin_sim/maf/maps/ebv_3d_hp.py +170 -0
- rubin_sim/maf/maps/ebv_hp.py +64 -0
- rubin_sim/maf/maps/gal_coords_map.py +22 -0
- rubin_sim/maf/maps/galactic_plane_priority_maps.py +210 -0
- rubin_sim/maf/maps/stellar_density_map.py +73 -0
- rubin_sim/maf/maps/trilegal_map.py +82 -0
- rubin_sim/maf/metadata_dir.py +90 -0
- rubin_sim/maf/metric_bundles/__init__.py +3 -0
- rubin_sim/maf/metric_bundles/metric_bundle.py +816 -0
- rubin_sim/maf/metric_bundles/metric_bundle_group.py +834 -0
- rubin_sim/maf/metric_bundles/mo_metric_bundle.py +646 -0
- rubin_sim/maf/metrics/__init__.py +52 -0
- rubin_sim/maf/metrics/agn_time_lag_metric.py +118 -0
- rubin_sim/maf/metrics/agnstructure.py +141 -0
- rubin_sim/maf/metrics/area_summary_metrics.py +120 -0
- rubin_sim/maf/metrics/base_metric.py +215 -0
- rubin_sim/maf/metrics/brown_dwarf_metric.py +162 -0
- rubin_sim/maf/metrics/cadence_metrics.py +400 -0
- rubin_sim/maf/metrics/calibration_metrics.py +618 -0
- rubin_sim/maf/metrics/chip_vendor_metric.py +43 -0
- rubin_sim/maf/metrics/color_slope_metrics.py +189 -0
- rubin_sim/maf/metrics/cosmology_summary_metrics.py +1212 -0
- rubin_sim/maf/metrics/coverage_metric.py +48 -0
- rubin_sim/maf/metrics/crowding_metric.py +255 -0
- rubin_sim/maf/metrics/cumulative_metric.py +46 -0
- rubin_sim/maf/metrics/dcr_metric.py +93 -0
- rubin_sim/maf/metrics/exgal_m5.py +57 -0
- rubin_sim/maf/metrics/fft_metric.py +27 -0
- rubin_sim/maf/metrics/galactic_plane_metrics.py +375 -0
- rubin_sim/maf/metrics/galplane_time_sampling_metrics.py +236 -0
- rubin_sim/maf/metrics/hourglass_metric.py +130 -0
- rubin_sim/maf/metrics/incremental_template_metric.py +255 -0
- rubin_sim/maf/metrics/kuiper_metrics.py +26 -0
- rubin_sim/maf/metrics/mo_metrics.py +1496 -0
- rubin_sim/maf/metrics/mo_summary_metrics.py +464 -0
- rubin_sim/maf/metrics/night_pointing_metric.py +70 -0
- rubin_sim/maf/metrics/optimal_m5_metric.py +94 -0
- rubin_sim/maf/metrics/pair_metric.py +69 -0
- rubin_sim/maf/metrics/periodic_detect_metric.py +133 -0
- rubin_sim/maf/metrics/phase_gap_metric.py +172 -0
- rubin_sim/maf/metrics/qso_number_counts_metric.py +138 -0
- rubin_sim/maf/metrics/scaling_metrics.py +148 -0
- rubin_sim/maf/metrics/schedview_metrics.py +39 -0
- rubin_sim/maf/metrics/season_metrics.py +344 -0
- rubin_sim/maf/metrics/simple_metrics.py +546 -0
- rubin_sim/maf/metrics/sky_sat_metric.py +18 -0
- rubin_sim/maf/metrics/sn_cadence_metric.py +104 -0
- rubin_sim/maf/metrics/sn_n_sn_metric.py +1364 -0
- rubin_sim/maf/metrics/sn_sl_metric.py +216 -0
- rubin_sim/maf/metrics/sn_snr_metric.py +715 -0
- rubin_sim/maf/metrics/snr_weight.py +24 -0
- rubin_sim/maf/metrics/star_density.py +77 -0
- rubin_sim/maf/metrics/string_count_metric.py +95 -0
- rubin_sim/maf/metrics/summary_metrics.py +201 -0
- rubin_sim/maf/metrics/surfb_metric.py +175 -0
- rubin_sim/maf/metrics/technical_metrics.py +271 -0
- rubin_sim/maf/metrics/tgaps.py +412 -0
- rubin_sim/maf/metrics/tomography_models.py +2034 -0
- rubin_sim/maf/metrics/transient_metrics.py +268 -0
- rubin_sim/maf/metrics/uniformity_metrics.py +418 -0
- rubin_sim/maf/metrics/use_metrics.py +55 -0
- rubin_sim/maf/metrics/vector_metrics.py +190 -0
- rubin_sim/maf/metrics/visit_groups_metric.py +341 -0
- rubin_sim/maf/metrics/weak_lensing_systematics_metric.py +210 -0
- rubin_sim/maf/plots/__init__.py +14 -0
- rubin_sim/maf/plots/hg_plotters.py +1117 -0
- rubin_sim/maf/plots/hourglass_plotters.py +120 -0
- rubin_sim/maf/plots/mo_plotters.py +358 -0
- rubin_sim/maf/plots/nd_plotters.py +220 -0
- rubin_sim/maf/plots/neo_distance_plotter.py +140 -0
- rubin_sim/maf/plots/night_pointing_plotter.py +96 -0
- rubin_sim/maf/plots/oned_plotters.py +114 -0
- rubin_sim/maf/plots/perceptual_rainbow.py +30 -0
- rubin_sim/maf/plots/plot_handler.py +766 -0
- rubin_sim/maf/plots/skyproj_plotters.py +540 -0
- rubin_sim/maf/plots/spatial_plotters.py +1029 -0
- rubin_sim/maf/plots/special_plotters.py +256 -0
- rubin_sim/maf/plots/two_d_plotters.py +177 -0
- rubin_sim/maf/plots/xyplotter.py +37 -0
- rubin_sim/maf/run_comparison/__init__.py +5 -0
- rubin_sim/maf/run_comparison/archive.py +584 -0
- rubin_sim/maf/run_comparison/gather_summaries.py +125 -0
- rubin_sim/maf/run_comparison/microlensing_compare.py +514 -0
- rubin_sim/maf/run_comparison/radar_plot.py +202 -0
- rubin_sim/maf/run_comparison/summary_plots.py +710 -0
- rubin_sim/maf/run_moving_calc.py +239 -0
- rubin_sim/maf/run_moving_fractions.py +128 -0
- rubin_sim/maf/run_moving_join.py +103 -0
- rubin_sim/maf/run_selfcal_metric.py +92 -0
- rubin_sim/maf/scimaf_dir.py +87 -0
- rubin_sim/maf/show_maf.py +227 -0
- rubin_sim/maf/slicers/__init__.py +13 -0
- rubin_sim/maf/slicers/base_slicer.py +513 -0
- rubin_sim/maf/slicers/base_spatial_slicer.py +202 -0
- rubin_sim/maf/slicers/healpix_sdss_slicer.py +118 -0
- rubin_sim/maf/slicers/healpix_slicer.py +189 -0
- rubin_sim/maf/slicers/healpix_subset_slicer.py +293 -0
- rubin_sim/maf/slicers/hourglass_slicer.py +37 -0
- rubin_sim/maf/slicers/mo_slicer.py +171 -0
- rubin_sim/maf/slicers/movie_slicer.py +288 -0
- rubin_sim/maf/slicers/nd_slicer.py +147 -0
- rubin_sim/maf/slicers/one_d_slicer.py +210 -0
- rubin_sim/maf/slicers/time_interval_slicers.py +283 -0
- rubin_sim/maf/slicers/uni_slicer.py +57 -0
- rubin_sim/maf/slicers/user_points_slicer.py +141 -0
- rubin_sim/maf/stackers/__init__.py +13 -0
- rubin_sim/maf/stackers/base_stacker.py +221 -0
- rubin_sim/maf/stackers/coord_stackers.py +224 -0
- rubin_sim/maf/stackers/date_stackers.py +192 -0
- rubin_sim/maf/stackers/general_stackers.py +683 -0
- rubin_sim/maf/stackers/get_col_info.py +104 -0
- rubin_sim/maf/stackers/label_stackers.py +114 -0
- rubin_sim/maf/stackers/m5_optimal_stacker.py +126 -0
- rubin_sim/maf/stackers/mo_phase.py +265 -0
- rubin_sim/maf/stackers/mo_stackers.py +486 -0
- rubin_sim/maf/stackers/n_follow_stacker.py +187 -0
- rubin_sim/maf/stackers/neo_dist_stacker.py +126 -0
- rubin_sim/maf/stackers/sdss_stackers.py +30 -0
- rubin_sim/maf/stackers/sn_stacker.py +152 -0
- rubin_sim/maf/stackers/teff_stacker.py +154 -0
- rubin_sim/maf/utils/__init__.py +6 -0
- rubin_sim/maf/utils/astrometry_utils.py +93 -0
- rubin_sim/maf/utils/generate_fov_map.py +58 -0
- rubin_sim/maf/utils/get_date_version.py +28 -0
- rubin_sim/maf/utils/maf_utils.py +212 -0
- rubin_sim/maf/utils/opsim_utils.py +259 -0
- rubin_sim/maf/utils/output_utils.py +34 -0
- rubin_sim/maf/utils/sn_n_sn_utils.py +894 -0
- rubin_sim/maf/utils/sn_utils.py +369 -0
- rubin_sim/maf/utils/stellar_mags.py +197 -0
- rubin_sim/maf/web/__init__.py +2 -0
- rubin_sim/maf/web/favicon.ico +0 -0
- rubin_sim/maf/web/maf_run_results.py +645 -0
- rubin_sim/maf/web/maf_tracking.py +139 -0
- rubin_sim/maf/web/sorttable.js +496 -0
- rubin_sim/maf/web/templates/allmetricresults.html +72 -0
- rubin_sim/maf/web/templates/configs.html +28 -0
- rubin_sim/maf/web/templates/macros.html +243 -0
- rubin_sim/maf/web/templates/master.html +294 -0
- rubin_sim/maf/web/templates/metricselect.html +91 -0
- rubin_sim/maf/web/templates/multicolor.html +147 -0
- rubin_sim/maf/web/templates/results.html +82 -0
- rubin_sim/maf/web/templates/runselect.html +58 -0
- rubin_sim/maf/web/templates/stats.html +50 -0
- rubin_sim/moving_objects/__init__.py +8 -0
- rubin_sim/moving_objects/base_obs.py +468 -0
- rubin_sim/moving_objects/cheby_fits.py +689 -0
- rubin_sim/moving_objects/cheby_values.py +231 -0
- rubin_sim/moving_objects/chebyshev_utils.py +365 -0
- rubin_sim/moving_objects/direct_obs.py +376 -0
- rubin_sim/moving_objects/make_lsst_obs.py +282 -0
- rubin_sim/moving_objects/ooephemerides.py +643 -0
- rubin_sim/moving_objects/orbits.py +507 -0
- rubin_sim/moving_objects/pre_generate.py +37 -0
- rubin_sim/moving_objects/utils.py +61 -0
- rubin_sim/phot_utils/__init__.py +7 -0
- rubin_sim/phot_utils/bandpass.py +425 -0
- rubin_sim/phot_utils/photometric_parameters.py +449 -0
- rubin_sim/phot_utils/physical_parameters.py +50 -0
- rubin_sim/phot_utils/predicted_zeropoints.py +245 -0
- rubin_sim/phot_utils/sed.py +1773 -0
- rubin_sim/phot_utils/sed_utils.py +52 -0
- rubin_sim/phot_utils/signaltonoise.py +695 -0
- rubin_sim/phot_utils/spectral_resampling.py +161 -0
- rubin_sim/satellite_constellations/__init__.py +3 -0
- rubin_sim/satellite_constellations/basis_function.py +40 -0
- rubin_sim/satellite_constellations/model_observatory.py +157 -0
- rubin_sim/satellite_constellations/sat_utils.py +488 -0
- rubin_sim/selfcal/__init__.py +4 -0
- rubin_sim/selfcal/generate_catalog.py +188 -0
- rubin_sim/selfcal/offsets.py +119 -0
- rubin_sim/selfcal/solver.py +143 -0
- rubin_sim/selfcal/star_tools.py +42 -0
- rubin_sim/sim_archive/__init__.py +14 -0
- rubin_sim/sim_archive/conda_packages.py +65 -0
- rubin_sim/sim_archive/future_vsarch.py +480 -0
- rubin_sim/sim_archive/make_snapshot.py +255 -0
- rubin_sim/sim_archive/prenight.py +216 -0
- rubin_sim/sim_archive/prenightindex.py +229 -0
- rubin_sim/sim_archive/prototype.py +1029 -0
- rubin_sim/sim_archive/sim_archive.py +680 -0
- rubin_sim/sim_archive/tempdb.py +56 -0
- rubin_sim/sim_archive/util.py +146 -0
- rubin_sim/sim_archive/vseqarchive.py +965 -0
- rubin_sim/sim_archive/vseqmetadata.py +1721 -0
- rubin_sim/skybrightness/__init__.py +5 -0
- rubin_sim/skybrightness/allsky_db.py +93 -0
- rubin_sim/skybrightness/data/ESO_Spectra/eso_tools.py +505 -0
- rubin_sim/skybrightness/data/solarSpec/package.py +22 -0
- rubin_sim/skybrightness/generate_hdf5.py +243 -0
- rubin_sim/skybrightness/interp_components.py +798 -0
- rubin_sim/skybrightness/sky_model.py +771 -0
- rubin_sim/skybrightness/twilight_func.py +83 -0
- rubin_sim/skybrightness/utils.py +91 -0
- rubin_sim-2.6.1.dev2.dist-info/METADATA +95 -0
- rubin_sim-2.6.1.dev2.dist-info/RECORD +387 -0
- rubin_sim-2.6.1.dev2.dist-info/WHEEL +5 -0
- rubin_sim-2.6.1.dev2.dist-info/entry_points.txt +24 -0
- rubin_sim-2.6.1.dev2.dist-info/licenses/LICENSE +674 -0
- rubin_sim-2.6.1.dev2.dist-info/top_level.txt +5 -0
- sql/make_vseqmeta.sql +251 -0
- tests/data/test_data.py +26 -0
- tests/data/test_ddf_grid.py +17 -0
- tests/maf/test_3x2fom.py +68 -0
- tests/maf/test_archive.py +162 -0
- tests/maf/test_basemetrics.py +99 -0
- tests/maf/test_batchcommon.py +36 -0
- tests/maf/test_batches.py +159 -0
- tests/maf/test_cadencemetrics.py +388 -0
- tests/maf/test_calibrationmetrics.py +242 -0
- tests/maf/test_color_slopes.py +71 -0
- tests/maf/test_cosmology_summaries.py +20 -0
- tests/maf/test_gathersummaries.py +48 -0
- tests/maf/test_healpixslicer.py +439 -0
- tests/maf/test_healpixsubsetslicer.py +273 -0
- tests/maf/test_hgplotters.py +145 -0
- tests/maf/test_hourglassmetric.py +33 -0
- tests/maf/test_io.py +187 -0
- tests/maf/test_json.py +169 -0
- tests/maf/test_maps.py +199 -0
- tests/maf/test_metricbundle.py +69 -0
- tests/maf/test_mometrics.py +422 -0
- tests/maf/test_movieslicer.py +216 -0
- tests/maf/test_ndslicer.py +240 -0
- tests/maf/test_neodistanceplotter.py +41 -0
- tests/maf/test_onedslicer.py +245 -0
- tests/maf/test_opsimutils.py +80 -0
- tests/maf/test_plotters.py +134 -0
- tests/maf/test_resultsdb.py +145 -0
- tests/maf/test_schedviewmetrics.py +14 -0
- tests/maf/test_simplemetrics.py +200 -0
- tests/maf/test_snmetrics.py +335 -0
- tests/maf/test_snmetrics_nsn.py +123 -0
- tests/maf/test_stackers.py +423 -0
- tests/maf/test_stellarmags.py +50 -0
- tests/maf/test_stringcount.py +26 -0
- tests/maf/test_summary_plots.py +197 -0
- tests/maf/test_summarymetrics.py +82 -0
- tests/maf/test_technicalmetrics.py +267 -0
- tests/maf/test_templatemetrics.py +86 -0
- tests/maf/test_timeintervalslicers.py +97 -0
- tests/maf/test_trackingdb.py +88 -0
- tests/maf/test_unislicer.py +116 -0
- tests/maf/test_vectormetrics.py +225 -0
- tests/maf/test_visitgroupsmetric.py +181 -0
- tests/moving_objects/test_camera.py +39 -0
- tests/moving_objects/test_chebyfits.py +188 -0
- tests/moving_objects/test_chebyshevutils.py +76 -0
- tests/moving_objects/test_chebyvalues.py +245 -0
- tests/moving_objects/test_ephemerides.py +219 -0
- tests/moving_objects/test_orbits.py +170 -0
- tests/moving_objects/test_sed_data.py +61 -0
- tests/phot_utils/test_approximatebandpasses.py +91 -0
- tests/phot_utils/test_photometricparameters.py +268 -0
- tests/phot_utils/test_photometry.py +61 -0
- tests/phot_utils/test_predicted_zeropoints.py +53 -0
- tests/phot_utils/test_read_bandpasses.py +29 -0
- tests/phot_utils/test_sed.py +368 -0
- tests/phot_utils/test_snr.py +370 -0
- tests/satellite_constellations/test_satellites.py +36 -0
- tests/sim_archive/test_make_snapshot.py +24 -0
- tests/sim_archive/test_prototype_sim_archive.py +204 -0
- tests/sim_archive/test_vseqarchive.py +947 -0
- tests/skybrightness/test_skymodel.py +359 -0
docs/protoarchive.rst
ADDED
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim.sim_archive
|
|
2
|
+
|
|
3
|
+
.. _protoarchive:
|
|
4
|
+
|
|
5
|
+
========================================================
|
|
6
|
+
The Prototype OpSim Archive for ``schedview`` Dashboards
|
|
7
|
+
========================================================
|
|
8
|
+
|
|
9
|
+
Introduction
|
|
10
|
+
------------
|
|
11
|
+
|
|
12
|
+
Several tools will require an archive that provides access to simulations provided by ``rubin_scheduler``.
|
|
13
|
+
For example, the prenight briefing dashboard supplied by ``schedview`` is a tool for visualizing simualtions of a night of observing, and it requires access to such simulations.
|
|
14
|
+
There will eventually be other dashboards that will also need to read such tables for visualization, as well as tables describing visits completed by the actual instruments.
|
|
15
|
+
Users of these dashboards will need to use them to select which data sets are to be visualised: the dashboard code needs to provide both user interface elements that let the user select the desired table of visits, and also actually load the table itself.
|
|
16
|
+
The dashboard servers run within containers on kubernetes-based infrastructure, which operate best when persistent data is stored outside the containers themselves.
|
|
17
|
+
Therefore, these dashboards require an external (to the container) resource that supports searching for available simulations, and access to the data itself.
|
|
18
|
+
|
|
19
|
+
This archive design is intended primarily as a prototype, something to experiment with for a better informed development of requiriments.
|
|
20
|
+
So, flexibility and speed of implementation have been prioritized, with the intention that there be a significant rofactoring (or even outright replacement) when requirements have been more thoroughly developed.
|
|
21
|
+
|
|
22
|
+
Design
|
|
23
|
+
------
|
|
24
|
+
|
|
25
|
+
The archive itself is a directory tree.
|
|
26
|
+
The URI of an archive is the URI of the root of the directory tree as supported by the ``lsst.resources`` package.
|
|
27
|
+
Each simulation in the archive has its own directory in this directory tree, named according to the ISO-8601 date on which a simulation was added to the archive, and a simple incrementing index separating different simulations added on the same day, such that the format for the directory for a specific simulation is::
|
|
28
|
+
|
|
29
|
+
${ARCHIVE_URI}/{ISO_DATE}/{ADDITION_INDEX}
|
|
30
|
+
|
|
31
|
+
For example, if the URI of the archive is::
|
|
32
|
+
|
|
33
|
+
file:///my_data/sim_archive
|
|
34
|
+
|
|
35
|
+
then the URI of the third simulation added on June 21, 2030 will be::
|
|
36
|
+
|
|
37
|
+
file:///my_data/sim_archive/2030-06-21/3
|
|
38
|
+
|
|
39
|
+
Each simulation directory contains a metadata yaml file named ``sim_metadata.yaml``.
|
|
40
|
+
In the above example, the URI for this metadata file would be::
|
|
41
|
+
|
|
42
|
+
file:///my_data/sim_archive/2030-06-21/3/sim_metadata.yaml
|
|
43
|
+
|
|
44
|
+
A minimal ``sim_metadata.yaml`` file specifies the name of the sqlite3 database file with the visits.
|
|
45
|
+
For example, if the URI for the visit database in the above example is ``file:///my_data/sim_archive/2030-06-21/3/opsim.db``, then the minimal content of ``sim_metadata.yaml`` would be::
|
|
46
|
+
|
|
47
|
+
files:
|
|
48
|
+
observations:
|
|
49
|
+
name: 'opsim.db'
|
|
50
|
+
|
|
51
|
+
All other data in the metadata file is optional, but additional metadata will be required if the archived simulation is to be used for some use cases.
|
|
52
|
+
For example, if ``schedview``'s ``prenight`` dashboard is to be able to load the reward data, it must be able to locate the reward data from the metadata file, so that the metadata file needs to look something like this::
|
|
53
|
+
|
|
54
|
+
files:
|
|
55
|
+
observations:
|
|
56
|
+
name: 'opsim.db'
|
|
57
|
+
rewards:
|
|
58
|
+
name: 'rewards.h5'
|
|
59
|
+
|
|
60
|
+
Clients of the archive will also need to search available simulations for those meeting relevant criteria.
|
|
61
|
+
For example, the ``prenight`` dashboard will seach for simulations the include a desired night, in which case the range of nights covered by the simulation must be included.
|
|
62
|
+
|
|
63
|
+
A sample metadata file that includes an early guess at what the ``prenight`` dashboard will use looks like this::
|
|
64
|
+
|
|
65
|
+
files:
|
|
66
|
+
observations:
|
|
67
|
+
name: opsim.db
|
|
68
|
+
rewards:
|
|
69
|
+
name: rewards.h5
|
|
70
|
+
label: Notebook test on 2024-01-04 16:49:44.299
|
|
71
|
+
simulated_dates:
|
|
72
|
+
first: '2025-05-05'
|
|
73
|
+
last: '2025-05-05'
|
|
74
|
+
|
|
75
|
+
In the above:
|
|
76
|
+
|
|
77
|
+
``label``
|
|
78
|
+
Simulations will appear in drop-down section widgets in dashdoards such as the pre-night dashboard.
|
|
79
|
+
The ``label`` element in the determines how the simulation will appear in the dropdown.
|
|
80
|
+
In other applications, this element may also be used as plot annotations or column or row headings.
|
|
81
|
+
|
|
82
|
+
``simulation_dates``
|
|
83
|
+
Shows the range of dates covered by the simulation.
|
|
84
|
+
When the user specifies a night, the ``prenight`` dashboard will restrict the offered to those that cover the specified date.
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
Finally, a number of other elements may be included for debugging purposes.
|
|
88
|
+
A full file might look something like this::
|
|
89
|
+
|
|
90
|
+
files:
|
|
91
|
+
environment:
|
|
92
|
+
md5: 4381d7cc82049141c70216121e39f56d
|
|
93
|
+
name: environment.txt
|
|
94
|
+
notebook:
|
|
95
|
+
md5: 6b75c1dd8c4a3b83797c873f3270cc04
|
|
96
|
+
name: notebook.ipynb
|
|
97
|
+
observations:
|
|
98
|
+
md5: 1909d1afaf744ee50bdcf1a9625826ab
|
|
99
|
+
name: opsim.db
|
|
100
|
+
pypi:
|
|
101
|
+
md5: 9c86ea9b4e7aa40d3e206fad1a59ea31
|
|
102
|
+
name: pypi.json
|
|
103
|
+
rewards:
|
|
104
|
+
md5: 6d3c9d3e0dd7764ed60312e459586e1b
|
|
105
|
+
name: rewards.h5
|
|
106
|
+
scheduler:
|
|
107
|
+
md5: 5e88dfee657e6283dbc7a343f048db92
|
|
108
|
+
name: scheduler.pickle.xz
|
|
109
|
+
statistics:
|
|
110
|
+
md5: c515ba27d83bdbfa9e65cdefff2d9d75
|
|
111
|
+
name: obs_stats.txt
|
|
112
|
+
label: Notebook test on 2024-01-04 16:49:44.299
|
|
113
|
+
simulated_dates:
|
|
114
|
+
first: '2025-05-05'
|
|
115
|
+
last: '2025-05-05'
|
|
116
|
+
scheduler_version: 1.0.1.dev25+gba1ca4d.d20240102
|
|
117
|
+
sim_runner_kwargs:
|
|
118
|
+
mjd_start: 60800.9565967191
|
|
119
|
+
record_rewards: true
|
|
120
|
+
survey_length: 0.5155218997970223
|
|
121
|
+
tags:
|
|
122
|
+
- notebook
|
|
123
|
+
- devel
|
|
124
|
+
host: neilsen-nb
|
|
125
|
+
username: neilsen
|
|
126
|
+
|
|
127
|
+
This example has a number of additional elements useful for debugging, and which pehaps might be useful for future applictions, but which are not used (or planned to be used) by the prenight dashboard.
|
|
128
|
+
|
|
129
|
+
``files/*``
|
|
130
|
+
A number of other types of files associated with specific simulations may be included.
|
|
131
|
+
These may be useful in future applications, or for debugging only.
|
|
132
|
+
See below for descriptions of the extra types of files in this example.
|
|
133
|
+
``files/${TYPE}/md5``
|
|
134
|
+
Checksums for various files.
|
|
135
|
+
These can be useful both for checking for corruption, and for determining whether two simulations are identical without needing to download either.
|
|
136
|
+
``scheduler_version``
|
|
137
|
+
The version of the scheduler used to produce the simualtions.
|
|
138
|
+
``sim_runner_kwargs``
|
|
139
|
+
The arguments to the execution of ``sim_runner`` used to run the simulation.
|
|
140
|
+
``tags``
|
|
141
|
+
A list of ad-hoc keywords.
|
|
142
|
+
For example, simulations used to test a specific jira issue may all have the name of the issue as a keyword.
|
|
143
|
+
Simulations used to support a give tech note may have the name of the tech note.
|
|
144
|
+
``host``
|
|
145
|
+
The hostname on which the simulation was run.
|
|
146
|
+
``username``
|
|
147
|
+
The username of the user who ran the simulation.
|
|
148
|
+
|
|
149
|
+
Optional (for debugging or speculative future uses only) file types listed above are:
|
|
150
|
+
|
|
151
|
+
``environment``
|
|
152
|
+
The conda environment specification for the environment used to run the simulation.
|
|
153
|
+
``notebook``
|
|
154
|
+
The notebook used to create the simulation, for example as created using the ``%notebook`` jupyter magic.
|
|
155
|
+
``pypy``
|
|
156
|
+
The ``pypy`` package list of the environment used to run the simulation.
|
|
157
|
+
If the simulation is run using only conda-installed packages, this will be redundant with ``environment``.
|
|
158
|
+
``scheduler``
|
|
159
|
+
A python pickle of the scheduler, in the state as of the start of the simulation.
|
|
160
|
+
``statistics``
|
|
161
|
+
Basic statistics for the visit database.
|
|
162
|
+
|
|
163
|
+
Metadata cache
|
|
164
|
+
--------------
|
|
165
|
+
|
|
166
|
+
Reading each ``sim_metadata.yaml`` individually when loading metadata for a large number of simulations can be slow.
|
|
167
|
+
Therefore, metadata for sets of simulations can be compiled into a ``compiled_metadata_cache.h5`` file.
|
|
168
|
+
This file stores four tables in `hdf5` format: ``simulations``, ``files``, ``kwargs``, and ``tags``.
|
|
169
|
+
Each of these tables is indexed by the URI of a simulation.
|
|
170
|
+
|
|
171
|
+
The ``files`` table contains one column for each key in the ``files`` dictionary in the yaml metadata file for the simulation, providing the metadata needed to reconstruct this element of the dictionary.
|
|
172
|
+
|
|
173
|
+
The ``kwargs`` table contains one column for each key in the ``sim_runner_kwargs`` dictionary in the yaml metadata file for the simulation, providing the metadata needed to reconstruct this element of the dictionary.
|
|
174
|
+
If a keyword argument is not set, an `numpy.nan` value is stored in the table.
|
|
175
|
+
|
|
176
|
+
The ``tags`` table contains one column: ``tag``, and contains one row for each tag in each simulation.
|
|
177
|
+
|
|
178
|
+
The ``simulations`` table contains one column for every other keyword found in the metadata yaml files.
|
|
179
|
+
If a keyword argument is not set, an `numpy.nan` value is stored in the table.
|
|
180
|
+
|
|
181
|
+
The ``compile_sim_archive_metadata_resource`` command in ``rubin_sim`` maintains the ``compiled_metadata_cache.h5`` file in an archive.
|
|
182
|
+
By default, it reads every ``sim_metadata.yaml`` file in the archive and builds a corresponding cache hdf5 file from scratch.
|
|
183
|
+
If called with an ``--append`` flag, it reads an existing metadata cache file, reads ``sim_metadata.yaml`` files for simulations more recently added than the last file in the existing cache, appends them to the previous results from the cache, and writes the result to the cache.
|
|
184
|
+
The ``append`` flag therefore speeds up the update considerably, but does not update the cache for any changes to previously added simulations (including deletions).
|
|
185
|
+
|
|
186
|
+
The ``compile_sim_archive_metadata_resource`` needs to be run to update the cache.
|
|
187
|
+
Normall, a cron job will execute this command routinely to keep the cache reasonably up to date.
|
|
188
|
+
Because the tools read the metadata yaml files for any simulations added after the most recent cache update, it will function correctly even if the cache is out of date (but slower).
|
|
189
|
+
|
|
190
|
+
Automatic archiving of generated data
|
|
191
|
+
-------------------------------------
|
|
192
|
+
|
|
193
|
+
The ``rubin_sim`` package provides a tool to combine running a simulation and adding the results to an archive, including any metadata that can be derived automatically.
|
|
194
|
+
The ``rubin_sim.sim_archive.drive_sim`` function is wrapper around ``rubin_sim.scheduler.sim_runner`` that incorporates this metadata collection and the creation of the entry in an archive.
|
|
195
|
+
It takes all of the same arguments that ``sim_runner`` does, and passes them directly to ``sim_runner``.
|
|
196
|
+
In addition, it takes a few arguments that specify the archive into which it is to be added (``archive_uri``), the label to be included in the metadata (``label``), and the code used to run the simulation (ethier ``script`` or ``notebook``).
|
|
197
|
+
Details are available in the ``drive_sim`` docstring.
|
|
198
|
+
|
|
199
|
+
For example, if this code is put into a file and run as a script, it will run the specificed simulation and add it to the specified archive::
|
|
200
|
+
|
|
201
|
+
from astropy.time import Time
|
|
202
|
+
|
|
203
|
+
from rubin_sim.scheduler.example import example_scheduler
|
|
204
|
+
from rubin_sim.scheduler.model_observatory import ModelObservatory
|
|
205
|
+
from rubin_sim.sim_archive import drive_sim
|
|
206
|
+
|
|
207
|
+
sim_mjd_start = Time("2025-05-05").mjd + 0.5
|
|
208
|
+
# The start date of the simualtion.
|
|
209
|
+
# Offset by 0.5 to avoid starting late when the MJD rollover occurs during or
|
|
210
|
+
# after twilight. See dayObs in SITCOMTN-32: https://sitcomtn-032.lsst.io/ .
|
|
211
|
+
|
|
212
|
+
sim_length = 1.0
|
|
213
|
+
# Passed to sum_runner, in units of days.
|
|
214
|
+
|
|
215
|
+
archive_uri = "file:///sdf/data/rubin/user/neilsen/data/test_sim_archive/"
|
|
216
|
+
# The URI of the root of the archive. The trailing "/" is required.
|
|
217
|
+
|
|
218
|
+
observatory = ModelObservatory()
|
|
219
|
+
scheduler = example_scheduler()
|
|
220
|
+
scheduler.keep_rewards = True
|
|
221
|
+
|
|
222
|
+
results = drive_sim(
|
|
223
|
+
observatory=observatory,
|
|
224
|
+
scheduler=scheduler,
|
|
225
|
+
archive_uri=archive_uri,
|
|
226
|
+
label=f"Example simulation started at {Time.now().iso}.",
|
|
227
|
+
script=__file__,
|
|
228
|
+
tags=["example"],
|
|
229
|
+
mjd_start=sim_mjd_start,
|
|
230
|
+
survey_length=sim_length,
|
|
231
|
+
record_rewards=True,
|
|
232
|
+
)
|
|
233
|
+
|
|
234
|
+
The result looks like this::
|
|
235
|
+
|
|
236
|
+
bash$ ls /sdf/data/rubin/user/neilsen/data/test_sim_archive/2024-01-18/1
|
|
237
|
+
environment.txt example_archived_sim_driver.py obs_stats.txt opsim.db pypi.json rewards.h5 scheduler.pickle.xz sim_metadata.yaml
|
|
238
|
+
bash$ cat /sdf/data/rubin/user/neilsen/data/test_sim_archive/2024-01-18/1/sim_metadata.yaml
|
|
239
|
+
files:
|
|
240
|
+
environment:
|
|
241
|
+
md5: 33f94ddf8975f9641a1f524fd22e362e
|
|
242
|
+
name: environment.txt
|
|
243
|
+
observations:
|
|
244
|
+
md5: 8b1ee9a604a88d2708d2bfd924ac3cd9
|
|
245
|
+
name: opsim.db
|
|
246
|
+
pypi:
|
|
247
|
+
md5: 51a8deee5018f59f20d5741fd1a64778
|
|
248
|
+
name: pypi.json
|
|
249
|
+
rewards:
|
|
250
|
+
md5: 10e4ab9397382bfa108fa21354da3526
|
|
251
|
+
name: rewards.h5
|
|
252
|
+
scheduler:
|
|
253
|
+
md5: 35713860dc9ba7a425500f63939d0e02
|
|
254
|
+
name: scheduler.pickle.xz
|
|
255
|
+
script:
|
|
256
|
+
md5: b4a476a4fd1231ea1ca44149784f1c3f
|
|
257
|
+
name: example_archived_sim_driver.py
|
|
258
|
+
statistics:
|
|
259
|
+
md5: 7c6a6af38aff3ce4145146e35f929b47
|
|
260
|
+
name: obs_stats.txt
|
|
261
|
+
host: sdfrome002.sdf.slac.stanford.edu
|
|
262
|
+
label: Example simulation started at 2024-01-18 15:46:27.758.
|
|
263
|
+
scheduler_version: 1.0.1.dev25+gba1ca4d.d20240102
|
|
264
|
+
sim_runner_kwargs:
|
|
265
|
+
mjd_start: 60800.5
|
|
266
|
+
record_rewards: true
|
|
267
|
+
survey_length: 1.0
|
|
268
|
+
simulated_dates:
|
|
269
|
+
first: '2025-05-04'
|
|
270
|
+
last: '2025-05-04'
|
|
271
|
+
tags:
|
|
272
|
+
- example
|
|
273
|
+
username: neilsen
|
|
274
|
+
|
|
275
|
+
Alternately, the simulation can be run from a ``jupyter`` notebook similarly, excepet that instead of saving the script that generated the simulation, a notebook with the cells of notebook that created the simulation up to the cell that runs the simulation can be stored instead.
|
|
276
|
+
An example can be found in the ``archive/sim_and_archive.ipynb`` in the `rubin_sim_notebook github repository <https://github.com/lsst/rubin_sim_notebooks>`_.
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim.satellite_constellations
|
|
2
|
+
|
|
3
|
+
.. _satellite-constellations-api:
|
|
4
|
+
|
|
5
|
+
============================
|
|
6
|
+
Satellite Constellations API
|
|
7
|
+
============================
|
|
8
|
+
|
|
9
|
+
.. automodule:: rubin_sim.satellite_constellations
|
|
10
|
+
:imported-members:
|
|
11
|
+
:members:
|
|
12
|
+
:show-inheritance:
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim
|
|
2
|
+
|
|
3
|
+
.. _satellite-constellations:
|
|
4
|
+
|
|
5
|
+
########################
|
|
6
|
+
Satellite Constellations
|
|
7
|
+
########################
|
|
8
|
+
|
|
9
|
+
The ``rubin_sim.satellite_constellations`` module contains
|
|
10
|
+
tools for creating and propagating satellite mega constellations
|
|
11
|
+
to evaluate their impact (in terms of streaks) in Rubin images.
|
|
12
|
+
There is also an extension for ``rubin_scheduler`` that will add
|
|
13
|
+
"satellite dodging" to the scheduler logic, at a cost of overall image depth.
|
docs/selfcal-api.rst
ADDED
docs/selfcal.rst
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim
|
|
2
|
+
|
|
3
|
+
.. _selfcal:
|
|
4
|
+
|
|
5
|
+
################
|
|
6
|
+
Self Calibration
|
|
7
|
+
################
|
|
8
|
+
|
|
9
|
+
The ``rubin_sim.selfcal`` module contains tools for simulating a basic
|
|
10
|
+
self-calibration effort. This was used to estimate photometric errors
|
|
11
|
+
remaining after self-calibration in `LSE-180 <https://ls.st/lse-180>`_.
|
|
12
|
+
This module remains useful for first-pass investigations into the effects
|
|
13
|
+
of survey strategy choices on the resulting photometric calibration
|
|
14
|
+
possibilities, which in particular can be useful for investigating
|
|
15
|
+
the effects of footprint or rolling cadence.
|
docs/sim-archive-api.rst
ADDED
docs/skybrightness.rst
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim.skybrightness
|
|
2
|
+
|
|
3
|
+
.. _skybrightness:
|
|
4
|
+
|
|
5
|
+
#############
|
|
6
|
+
Skybrightness
|
|
7
|
+
#############
|
|
8
|
+
|
|
9
|
+
The ``rubin_sim.skybrightness`` module generates
|
|
10
|
+
predicted skybrightness values (in either magnitudes per
|
|
11
|
+
square arcsecond for any LSST bandpass or
|
|
12
|
+
as a SED over the relevant wavelengths).
|
|
13
|
+
It uses the ESO skybrightness model components
|
|
14
|
+
(includes upper and lower atmosphere emission lines, airglow continuum,
|
|
15
|
+
zodiacal light and scattered lunar light) and has additional
|
|
16
|
+
twilight components.
|
|
17
|
+
The model predictions have been tested against skybrightness
|
|
18
|
+
measurements at the LSST site.
|
|
19
|
+
|
|
20
|
+
More details about the rubin_sim version of the model and
|
|
21
|
+
its validation for Rubin are available in
|
|
22
|
+
`An optical to IR sky brightness model for the LSST by Yoachim et. al.
|
|
23
|
+
<https://www.osti.gov/biblio/1784946>`_.
|
docs/user-guide.rst
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.. py:currentmodule:: rubin_sim
|
|
2
|
+
|
|
3
|
+
.. _user-guide:
|
|
4
|
+
|
|
5
|
+
##########
|
|
6
|
+
User Guide
|
|
7
|
+
##########
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.. toctree::
|
|
11
|
+
|
|
12
|
+
Data Download Utilities <data-download>
|
|
13
|
+
|
|
14
|
+
Metrics Analysis Framework (MAF) <maf>
|
|
15
|
+
|
|
16
|
+
Moving Objects <moving-objects>
|
|
17
|
+
|
|
18
|
+
Phot Utils <phot-utils>
|
|
19
|
+
|
|
20
|
+
Satellite Constellations <satellite-constellations>
|
|
21
|
+
|
|
22
|
+
Self Calibration <selfcal>
|
|
23
|
+
|
|
24
|
+
Visit Sequence Archive <vseqarchive>
|
|
25
|
+
|
|
26
|
+
Prenight simulations <prenight>
|
|
27
|
+
|
|
28
|
+
Skybrightness <skybrightness>
|