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

Home » Public Forums » archive » tv problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
tv problem [message #9943] Tue, 23 September 1997 00:00 Go to next message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
This is a multi-part message in MIME format.

--------------4487620152BF
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hi,

I caught by a problem whith tv.

(idl 5.0 on aix)

testz2.gif is a colorbar which will be displayed on screen perfectly.
The same on Postscript Device gaves cbar.ps and it's totally black.

What is wrong?

Please help me!



PRO tvprob
read_gif,'testz2.gif',z2,r,g,b

tvlct,r,g,b
tv,z2,1.092,5.0 , xsize=1.05, ysize=10.85,/cent

set_plot, 'ps'

device,filename='cbar.ps',/color,/portrait
read_gif,'testz2.gif',z2,r,g,b

tvlct,r,g,b
tv,z2,1.092,5.0 , xsize=1.05, ysize=10.85,/cent

device,/close

set_plot,'X'


END


--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de

--------------4487620152BF
Content-Type: image/gif; name="testz2.gif"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="testz2.gif"

R0lGODdhCgAAAfcAAAAAAP8AAAAA/wD/AP8A/4AA//+AALQAAAD/////AAD/ vgAAAAAAAAAA
AAAAAAAAABAQEBERERISEhMTExQUFBUVFRYWFhcXFxgYGBkZGRoaGhsbGxwc HB0dHR4eHh8f
HyAgICEhISIiIiMjIyQkJCUlJSYmJicnJygoKCkpKSoqKisrKywsLC0tLS4u Li8vLzAwMDEx
MTIyMjMzMzQ0NDU1NTY2Njc3Nzg4ODk5OTo6Ojs7Ozw8PD09PT4+Pj8/P0BA QEFBQUJCQkND
Q0REREVFRUZGRkdHR0hISElJSUpKSktLS0xMTE1NTU5OTk9PT1BQUFFRUVJS Ul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wUfT756QAA7
--------------4487620152BF
Content-Type: application/postscript; name="cbar.ps"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="cbar.ps"

%!PS-Adobe-3.0
%%BoundingBox: 54 360 558 720
%%Title: Graphics produced by IDL
%%For: icg105@ich230, /home1/icg105/IDL/RB_LIB/V1_1/plot
%%Creator: IDL Version 5.0 (AIX ibmr2)
%%CreationDate: Tue Sep 23 16:56:57 1997
%%DocumentData: Clean7bit
%%Requirements: color
%%LanguageLevel: 1
%%PageOrder: Ascend
%%Pages: (atend)
%%DocumentNeededResources: (atend)
%%EndComments
%%BeginProlog
%+ prolog.ps -- Prolog for IDL generated PostScript files
%+ Copyright (c) 1988-1997 Research Systems, Inc. All Rights Reserved.
%v 3
save /$IDL_DICT 40 dict def $IDL_DICT begin /bdef { bind def } bind def /C
{currentpoint newpath moveto} bdef /CP {currentpoint} bdef /D {currentpoint
stroke moveto} bdef /F {closepath fill} bdef /K { setgray } bdef /M {moveto}
bdef /N {rmoveto} bdef /P {lineto} bdef /R {rlineto} bdef /S {gsave show
grestore} bdef /X {currentpoint pop} bdef /Z {gsave currentpoint lineto 20
setlinewidth 1 setlinecap stroke grestore} bdef /L0 {[] 0 setdash} bdef /L1
{[40 100] 0 setdash} bdef /L2 {[200 200] 0 setdash} bdef /L3 {[200 100 50
100] 0 setdash} bdef /L4 {[300 100 50 100 50 100 50 100] 0 setdash} bdef /L5
{[400 200] 0 setdash} bdef /STDFONT { findfont exch scalefont setfont } bdef
/ISOFONT { findfont dup length dict begin { 1 index /FID ne {def} {pop pop}
ifelse } forall /Encoding ISOLatin1Encoding def currentdict end /idltmpfont
exch definefont exch scalefont setfont } bdef /ISOBULLET { gsave /Helvetica
findfont exch scalefont setfont (\267) show currentpoint grestore moveto}
bdef end 2.5 setmiterlimit
%%EndProlog
%%Page: 0 1
%%PageRequirements: color
%%PageResources: (atend)
%%PageOrientation: Portrait
%%PageBoundingBox: 54 360 558 720
%%BeginPageSetup
save $IDL_DICT begin 54 360 translate 0.0283465 dup scale
%%IncludeResource: font Helvetica
423.333 /Helvetica STDFONT
%%EndPageSetup
gsave 1092 5000 translate /picstr 1 string def 1049 10850 scale
10 256 4 [10 0 0 256 0 0]
/COLORTAB < 000000 000111 000222 000333 000444 000555 000666 000777 000888
000999 000aaa 000bbb 000ccc 000ddd 000eee 000fff 111000 111111 111222 111333
111444 111555 111666 111777 111888 111999 111aaa 111bbb 111ccc 111ddd 111eee
111fff 222000 222111 222222 222333 222444 222555 222666 222777 222888 222999
222aaa 222bbb 222ccc 222ddd 222eee 222fff 333000 333111 333222 333333 333444
333555 333666 333777 333888 333999 333aaa 333bbb 333ccc 333ddd 333eee 333fff
444000 444111 444222 444333 444444 444555 444666 444777 444888 444999 444aaa
444bbb 444ccc 444ddd 444eee 444fff 555000 555111 555222 555333 555444 555555
555666 555777 555888 555999 555aaa 555bbb 555ccc 555ddd 555eee 555fff 666000
666111 666222 666333 666444 666555 666666 666777 666888 666999 666aaa 666bbb
666ccc 666ddd 666eee 666fff 777000 777111 777222 777333 777444 777555 777666
777777 777888 777999 777aaa 777bbb 777ccc 777ddd 777eee 777fff 888000 888111
888222 888333 888444 888555 888666 888777 888888 888999 888aaa 888bbb 888ccc
888ddd 888eee 888fff 999000 999111 999222 999333 999444 999555 999666 999777
999888 999999 999aaa 999bbb 999ccc 999ddd 999eee 999fff aaa000 aaa111 aaa222
aaa333 aaa444 aaa555 aaa666 aaa777 aaa888 aaa999 aaaaaa aaabbb aaaccc aaaddd
aaaeee aaafff bbb000 bbb111 bbb222 bbb333 bbb444 bbb555 bbb666 bbb777 bbb888
bbb999 bbbaaa bbbbbb bbbccc bbbddd bbbeee bbbfff ccc000 ccc111 ccc222 ccc333
ccc444 ccc555 ccc666 ccc777 ccc888 ccc999 cccaaa cccbbb cccccc cccddd ccceee
cccfff ddd000 ddd111 ddd222 ddd333 ddd444 ddd555 ddd666 ddd777 ddd888 ddd999
dddaaa dddbbb dddccc dddddd dddeee dddfff eee000 eee111 eee222 eee333 eee444
eee555 eee666 eee777 eee888 eee999 eeeaaa eeebbb eeeccc eeeddd eeeeee eeefff
fff000 fff111 fff222 fff333 fff444 fff555 fff666 fff777 fff888 fff999 fffaaa
fffbbb fffccc fffddd fffeee ffffff > def
{COLORTAB currentfile picstr readhexstring pop 0 get
3 mul 3 getinterval } bind false 3 colorimage
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000
grestore
%%PageTrailer
showpage
end restore
%%PageResources: font Helvetica
%%Trailer
restore
%%Pages: 1
%%DocumentNeededResources: font Helvetica
%%EOF

--------------4487620152BF--
Re: tv problem [message #10020 is a reply to message #9943] Thu, 25 September 1997 00:00 Go to previous message
R. Bauer is currently offline  R. Bauer
Messages: 137
Registered: November 1996
Senior Member
R. Bauer wrote:
>
> Hi,
>
> I caught by a problem whith tv.
>
> (idl 5.0 on aix)
>
> testz2.gif is a colorbar which will be displayed on screen perfectly.
> The same on Postscript Device gaves cbar.ps and it's totally black.
>
> What is wrong?


I learned that's I have to open the device whith bits_per_pixel=8

--
R.Bauer

Institut fuer Stratosphaerische Chemie (ICG-1)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Request for CVs
Next Topic: EXTRA keyword in PVWAVE?

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

Current Time: Wed Oct 08 15:07:31 PDT 2025

Total time taken to generate the page: 0.00600 seconds