split creation script update that adds exptime
Browse files- utils/create_splits.py +3 -1
utils/create_splits.py
CHANGED
@@ -101,6 +101,7 @@ def make_split_jsonl_files(
|
|
101 |
image_id = os.path.basename(file).split(".fits")[0]
|
102 |
ra = hdul["SCI"].header.get("CRVAL1", 0)
|
103 |
dec = hdul["SCI"].header.get("CRVAL2", 0)
|
|
|
104 |
pixscale = calculate_pixel_scale(hdul[1].header)
|
105 |
footprint = get_fits_footprint(file)
|
106 |
item = {
|
@@ -109,7 +110,8 @@ def make_split_jsonl_files(
|
|
109 |
"ra": ra,
|
110 |
"dec": dec,
|
111 |
"pixscale": pixscale,
|
112 |
-
"
|
|
|
113 |
}
|
114 |
out_f.write(json.dumps(item) + "\n")
|
115 |
|
|
|
101 |
image_id = os.path.basename(file).split(".fits")[0]
|
102 |
ra = hdul["SCI"].header.get("CRVAL1", 0)
|
103 |
dec = hdul["SCI"].header.get("CRVAL2", 0)
|
104 |
+
exptime = hdul[0].header.get("EXPTIME", -1)
|
105 |
pixscale = calculate_pixel_scale(hdul[1].header)
|
106 |
footprint = get_fits_footprint(file)
|
107 |
item = {
|
|
|
110 |
"ra": ra,
|
111 |
"dec": dec,
|
112 |
"pixscale": pixscale,
|
113 |
+
"exposure_time": exptime,
|
114 |
+
"footprint": footprint,
|
115 |
}
|
116 |
out_f.write(json.dumps(item) + "\n")
|
117 |
|