Skip to content
Snippets Groups Projects
Commit b6999901 authored by vishal's avatar vishal
Browse files

Small corrections and testing the convertor

parent 4b099940
No related branches found
No related tags found
1 merge request!49arrays to fits
Pipeline #206236 failed
......@@ -118,10 +118,12 @@ def field2fits(field, file_name, sky_dom_dict=None, observations=[], header_over
if direction is not None:
h["EQUINOX"] = direction.equinox
field = field.val if nifty_field else field
for kk, vv in header_override.items():
h[kk] = vv
for t_ind, t_val in (t_coord):
val = field.val[:, t_ind] # Select time
for t_ind, t_val in enumerate(t_coord):
val = field[:, t_ind] # Select time
val = np.transpose(val, (0, 1, 3, 2)) # Switch spatial axes
val = val.astype(np.float32)
val = np.require(val, dtype=np.float32, requirements="F")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment