Commit 7a350071 authored by Roberto Susino's avatar Roberto Susino
Browse files

Update planning info management

parent 5a485cee
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
@@ -143,9 +143,14 @@ pro metis_l1_prep
	
	; campaign keywords

	if planning_data.obs_id ne 'none' then begin
		obs_id_fields = strsplit(planning_data.obs_id, '_', /extract)
	soop_type = obs_id_fields[2]
	obs_type = obs_id_fields[4]
		if obs_id_fields[2] eq '000' then sooptype = 'none' else sooptype = obs_id_fields[2]
		if obs_id_fields[4] eq '000' then obs_type = 'none' else obs_type = obs_id_fields[4]
	endif else begin
		sooptype = 'none'
		obs_type = 'none'
	endelse

	; build the fits file extensions

@@ -323,7 +328,7 @@ pro metis_l1_prep
	fxaddpar, primary_header, 'NSUMEXP', nsumexp, 'number of detector readouts summed together', before = 'DATAMIN'
	fxaddpar, primary_header, 'TELAPSE', telapse, '[s] elapsed time during observation', before = 'DATAMIN'
	fxaddpar, primary_header, 'SOOPNAME', planning_data.soop_name, 'name of the SOOP that the data belong to', before = 'DATAMIN'
	fxaddpar, primary_header, 'SOOPTYPE', soop_type, 'campaign ID(s) that the data belong to', before = 'DATAMIN'
	fxaddpar, primary_header, 'SOOPTYPE', sooptype, 'campaign ID(s) that the data belong to', before = 'DATAMIN'
	fxaddpar, primary_header, 'OBS_ID', planning_data.obs_id, 'unique ID of the individual observation', before = 'DATAMIN'
	fxaddpar, primary_header, 'TARGET', 'TBD', 'type of target from planning', before = 'DATAMIN'
	fxaddpar, primary_header, 'BSCALE', 1, 'ratio of physical to array value at 0 offset', before = 'DATAMIN'