Commit 60040876 authored by Roberto Susino's avatar Roberto Susino
Browse files

Manage new header version for Metis OBSW 2.2.0

parent 342b1454
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -181,12 +181,18 @@ pro metis_l2_prep_vl_polariz

			; check the polarization state of the image and select the corresponding dacpol value

			if fix(data_header[j].hdr_vers) le 4 then begin
				case data_header[j].pol_id of
					1: dacpol = data_header[j].dac1pol1
					2: dacpol = data_header[j].dac1pol2
					3: dacpol = data_header[j].dac1pol3
					4: dacpol = data_header[j].dac1pol4
				endcase
			endif

			if fix(data_header[j].hdr_vers) ge 5 then begin
				dacpol = data_header[j].dac1pol1
			endif
			
			; select the correct demodulation tensor element based on effective angle and stokes paramater