From 608a8312508a3aa17798bb210c3edb8721137cca Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bernard Date: Thu, 3 Nov 2022 17:44:15 +0100 Subject: [PATCH] minor modification --- src/idl/dustem_filter2instru.pro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/idl/dustem_filter2instru.pro b/src/idl/dustem_filter2instru.pro index 7775a57..723b781 100755 --- a/src/idl/dustem_filter2instru.pro +++ b/src/idl/dustem_filter2instru.pro @@ -44,11 +44,11 @@ Nfilt=n_elements(filter) ind1=lonarr(Nfilt) FOR i=0L,Nfilt-1 DO BEGIN - ind=where(!dustem_instrument_description.filter EQ strtrim(filter(i),2),count) + ind=where(!dustem_instrument_description.filter EQ strtrim(filter[i],2),count) IF count EQ 0 THEN BEGIN message,'Filter: '+strtrim(filter(i),2)+' not found in instrument_description.xcat' ENDIF - ind1(i)=ind(0) + ind1[i]=ind[0] ENDFOR instru=!dustem_instrument_description(ind1).instru -- libgit2 0.21.2