comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » mrd_struct failure for string values inside the VM
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: mrd_struct failure for string values inside the VM [message #90811 is a reply to message #90768] Sat, 18 April 2015 20:26 Go to previous messageGo to previous message
alepliee is currently offline  alepliee
Messages: 4
Registered: April 2015
Junior Member
home='C:\Users\Cliente02\.idl\itt\projetos\'
;hubble=rd_tfile('teste.rtf',/auto,/convert)
openr,1,home+'distancia1.txt'

dados=fltarr(2,24)
readf,1,dados
close,1

openr,1,home+'velocidade1.txt'

luz=fltarr(1,24)
readf,1,luz
close,1

openr,1,home+'erro1.txt'

erros=fltarr(1,24)
readf,1,erros
close,1

redshift=dados(0,*)
velocidade=luz(0,*)
erroy=erros(0,*)

plot,redshift,velocidade,psym=2,xrange=[0.0,2.5],yrange=[-50 0.0,1500.0],$
xtit='Distancia(10E6)',ytit='Velocidade (km/s)',charsize=1.0,xminor=11,yminor=11
oploterror,redshift,velocidade,erroy,psym=3,errcolor=fsc_col or('red')
plots,2.2,1350,psym=2,symsize=1.
redshift2=[0.0,2.5]
xyouts,2.22,1350,'Amostras',charsize=1.
xyouts,2.22,1250,'Aj.Linear',charsize=1.,color=fsc_color('re d')
xyouts,2.22,1150,'Aj.Robusto',charsize=1.,color=fsc_color('g reen')

result=LINFIT(distancia,velocidade)
print,result
yfit=result(0)+result(1)*redshift2
oplot,redshift2,yfit,linestyle=3,color=fsc_color('red')
robusto=robust_linefit(redshift,velocidade,/bisect,NumIT = 1000)
yrob=robusto(0)+robusto(1)*redshift2
oplot,redshift2,yrob,linestyle=2,color=fsc_color('green')

end

Can someone tell me Why NOT appears as lines ?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Help!!!!
Next Topic: Function graphics in a widget window

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:55:55 PDT 2025

Total time taken to generate the page: 0.00238 seconds