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 #90814 is a reply to message #90811] Mon, 20 April 2015 07:47 Go to previous message
vino is currently offline  vino
Messages: 36
Registered: March 2008
Member
On Saturday, 18 April 2015 23:26:16 UTC-4, alep...@gmail.com wrote:
> 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 ?

Hi,

I think you have to post this as a separate question. Also, maybe you can be a little more clear as what does not appear 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 16:13:10 PDT 2025

Total time taken to generate the page: 0.00250 seconds