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