Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MelissaGraham committed Jun 7, 2022
1 parent ee64f00 commit 0f7d030
Show file tree
Hide file tree
Showing 6 changed files with 157 additions and 1,314 deletions.
2 changes: 1 addition & 1 deletion extragalactic_fields_RBID2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Note:
* "object" refers to a single detection in a difference image
* "candidate" refers to associated detections at a given sky location
* "probably-real" extragalactic candidates means >= 10 detections, mean R/B >= 0.4
* cuts shown to be reasonable in `extragalactic_fields/source_detection_summary_figures.ipynb/`
* cuts shown to be reasonable in `extragalactic_fields/source_detection_summary_figures.ipynb`
* cuts also discussed in Section 3 of Graham et al. (in prep)


Expand Down
99 changes: 18 additions & 81 deletions extragalactic_fields_RBID2/candidate_nightly_epochs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
{
"cell_type": "code",
"execution_count": 1,
"execution_count": null,
"id": "2ab52e31-7a85-40e2-8d34-9719df0ee1da",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -64,7 +64,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": null,
"id": "029fe91c-1fca-4376-b356-fade6cd87edc",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -94,18 +94,10 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": null,
"id": "b0299de2-1e81-47b2-b129-3ea0f5a58280",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Number of unique epochs for COSMOS and ELAIS: 45 39\n"
]
}
],
"outputs": [],
"source": [
"cx = np.where( exp_field == 'COSMOS' )[0]\n",
"ex = np.where( exp_field == 'ELAIS' )[0]\n",
Expand All @@ -119,7 +111,7 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": null,
"id": "9d0e35ad-add8-4fa7-9ebd-ae19867308b5",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -152,18 +144,10 @@
},
{
"cell_type": "code",
"execution_count": 5,
"execution_count": null,
"id": "98696421-4572-4f31-9832-cdc0bb143c07",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Total number of candidates: 4384\n"
]
}
],
"outputs": [],
"source": [
"fnm = 'source_detection_summary_files/candidates.dat'\n",
"cand_field = np.loadtxt( fnm, dtype='str', usecols=(0) )\n",
Expand Down Expand Up @@ -205,7 +189,7 @@
},
{
"cell_type": "code",
"execution_count": 6,
"execution_count": null,
"id": "c48a68ed-ee5f-4568-9f0b-6ac5a2c5b848",
"metadata": {},
"outputs": [],
Expand Down Expand Up @@ -237,21 +221,10 @@
},
{
"cell_type": "code",
"execution_count": 7,
"execution_count": null,
"id": "e25b5056-08f8-402a-89b5-f7bdb0cbb768",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"10 33.156458902359006 remain\n",
"100 32.77406507492066 remain\n",
"1000 26.866170249938964 remain\n",
"elapsed: 35.383549451828\n"
]
}
],
"outputs": [],
"source": [
"t1 = time.time()\n",
"\n",
Expand Down Expand Up @@ -364,19 +337,10 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": null,
"id": "be4645b7-3f95-451c-ad57-a6424fc8b361",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"['COSMOS' 'COSMOS' 'COSMOS' ... 'ELAIS' 'ELAIS' 'ELAIS']\n",
"['DC21nzd' 'DC21nzd' 'DC21nzd' ... 'DC22dwdqg' 'DC22dwdqg' 'DC22dwdqg']\n"
]
}
],
"outputs": [],
"source": [
"print(ne_field)\n",
"print(ne_candid)"
Expand All @@ -392,18 +356,10 @@
},
{
"cell_type": "code",
"execution_count": 9,
"execution_count": null,
"id": "09725d5c-bdcd-4875-8ad2-90181ec81e43",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote to: candidate_nightly_epochs_files/candidate_lightcurves.dat\n"
]
}
],
"outputs": [],
"source": [
"fnm = 'candidate_nightly_epochs_files/candidate_lightcurves.dat'\n",
"fout = open(fnm, 'w')\n",
Expand Down Expand Up @@ -447,21 +403,10 @@
},
{
"cell_type": "code",
"execution_count": 10,
"execution_count": null,
"id": "728e5bba-8b34-492c-b445-112e69c4c8dc",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"10 206.20184111595154 remain\n",
"100 199.38756551742554 remain\n",
"1000 156.79421038627626 remain\n",
"elapsed: 188.1226191520691\n"
]
}
],
"outputs": [],
"source": [
"t1 = time.time()\n",
"\n",
Expand Down Expand Up @@ -545,18 +490,10 @@
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": null,
"id": "b0aa5a75-b2e2-4a82-898e-0185b123fdec",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Wrote to: candidate_nightly_epochs_files/candidate_lightcurve_parameters.dat\n"
]
}
],
"outputs": [],
"source": [
"fnm = 'candidate_nightly_epochs_files/candidate_lightcurve_parameters.dat'\n",
"fout = open(fnm, 'w')\n",
Expand Down
198 changes: 28 additions & 170 deletions extragalactic_fields_RBID2/candidate_nightly_epochs_summary.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 0f7d030

Please sign in to comment.