Commit 8cc0da9a authored by jonas's avatar jonas
Browse files

compare_cpos return data error

parent 185253f7
......@@ -246,6 +246,7 @@ def phihrt_pipe(data_f, dark_f = '', flat_f = '', L1_input = True, L1_8_generate
fltdirx_flipped = str(header_flat['IMGDIRX'])
else:
header_fltdirx_exists = False
fltdirx_flipped = 'NO'
print(f"Flat field shape is {flat.shape}")
......@@ -254,7 +255,7 @@ def phihrt_pipe(data_f, dark_f = '', flat_f = '', L1_input = True, L1_8_generate
print("Number of bits per pixel is: 16")
flat *= 614400/128
# correction based on science data - see if flat and science are both flipped or not
flat = compare_IMGDIRX(flat,header_imgdirx_exists,imgdirx_flipped,header_fltdirx_exists,fltdirx_flipped)
......@@ -340,7 +341,6 @@ def phihrt_pipe(data_f, dark_f = '', flat_f = '', L1_input = True, L1_8_generate
start_time = time.time()
if header_imgdirx_exists:
if imgdirx_flipped == 'YES':
dark_copy = np.copy(dark)
......
......@@ -196,6 +196,8 @@ def compare_cpos(data,cpos,cpos_ref):
print("Cannot reconcile the different continuum positions. \n Ending Process.")
exit()
else:
return data
def check_pmp_temp(hdr_arr):
......@@ -258,6 +260,8 @@ def compare_IMGDIRX(flat,header_imgdirx_exists,imgdirx_flipped,header_fltdirx_ex
return flat
else:
return flat
else:
return flat
def stokes_reshape(data):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment