Re: cgcontour not outputting? [message #80979] |
Thu, 26 July 2012 15:36 |
Oana Coman
Messages: 27 Registered: December 2011
|
Junior Member |
|
|
Good timing! I was just about to say that I discovered it fails whenever I use /Window haha
Thanks!
On Thursday, July 26, 2012 3:18:05 PM UTC-7, David Fanning wrote:
> Kat writes:
>
> > So I'm trying to output this contour plot that i'm making using cgContour. Code below:
> >
> > cgContour,aa,x(ix),y(iy),$
> > xrange=xrange2, yrange=yrange2, aspect=asp,$
> > /Fill, /Outline,$
> > xstyle=1, ystyle=1, label=2,$;c_labels=levels,$
> > levels=levels, C_colors=Indgen(numLevels(1))+1,$
> > output='PS',$
> > outfilename=s.filename+'_'+month+day+ 9;_'+hour+'_'+'contour.ps&am p;#39;,$
> > /Window
> >
> > Did I do this incorrectly?
>
> Oh, wait! I see you are trying to put this into a cgWindow.
> Yes, you can't specify the output filename *AND* put the
> commands in a cgWindow.
>
> The correct commands to do put the contour command into a
> resizeable graphics window, and then create a PostScript file
> from the command is this:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline, label=2, $
> levels=levels, C_colors=Indgen(numLevels(1))+1, /Window
> cgControl, output='s.filename+'_'+month+day+&am p;#39;_'+hour+'_'+'contour.p s'
>
> You don't need the [XY]Style keywords. cgContour always
> does this. You don't need OUTPUT and OUTFILENAME, if you
> are just outputting the contour command to a PostScript file:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline, label=2, $
> levels=levels, C_colors=Indgen(numLevels(1))+1, $
> Output='s.filename+'_'+month+day+&am p;#39;_'+hour+'_'+'contour.p s'
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: cgcontour not outputting? [message #80980 is a reply to message #80979] |
Thu, 26 July 2012 15:18  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kat writes:
> So I'm trying to output this contour plot that i'm making using cgContour. Code below:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline,$
> xstyle=1, ystyle=1, label=2,$;c_labels=levels,$
> levels=levels, C_colors=Indgen(numLevels(1))+1,$
> output='PS',$
> outfilename=s.filename+'_'+month+day+'_'+hour+'_'+'contour.p s',$
> /Window
>
> Did I do this incorrectly?
Oh, wait! I see you are trying to put this into a cgWindow.
Yes, you can't specify the output filename *AND* put the
commands in a cgWindow.
The correct commands to do put the contour command into a
resizeable graphics window, and then create a PostScript file
from the command is this:
cgContour,aa,x(ix),y(iy),$
xrange=xrange2, yrange=yrange2, aspect=asp,$
/Fill, /Outline, label=2, $
levels=levels, C_colors=Indgen(numLevels(1))+1, /Window
cgControl, output='s.filename+'_'+month+day+'_'+hour+'_'+'contour.ps'
You don't need the [XY]Style keywords. cgContour always
does this. You don't need OUTPUT and OUTFILENAME, if you
are just outputting the contour command to a PostScript file:
cgContour,aa,x(ix),y(iy),$
xrange=xrange2, yrange=yrange2, aspect=asp,$
/Fill, /Outline, label=2, $
levels=levels, C_colors=Indgen(numLevels(1))+1, $
Output='s.filename+'_'+month+day+'_'+hour+'_'+'contour.ps'
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: cgcontour not outputting? [message #80981 is a reply to message #80980] |
Thu, 26 July 2012 15:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Kat writes:
> So I'm trying to output this contour plot that i'm making using cgContour. Code below:
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline,$
> xstyle=1, ystyle=1, label=2,$;c_labels=levels,$
> levels=levels, C_colors=Indgen(numLevels(1))+1,$
> output='PS',$
> outfilename=s.filename+'_'+month+day+'_'+hour+'_'+'contour.p s',$
> /Window
>
> Did I do this incorrectly?
>
> I also tried defining the filename right in output, like so
>
> cgContour,aa,x(ix),y(iy),$
> xrange=xrange2, yrange=yrange2, aspect=asp,$
> /Fill, /Outline,$
> xstyle=1, ystyle=1, label=2,$;c_labels=levels,$
> levels=levels, C_colors=Indgen(numLevels(1))+1,$
> output=s.filename+'_'+month+day+'_'+hour+'_'+'contour.ps',$
> /Window
>
> but did not work.
>
> For my own sanity, I did a CD, CURRENT=curr and printed out my working directory to make sure it wasn't outputting somewhere in the abyss of my computer. Working directory was good.
>
> Any help is greatly appreciated :)
But no error messages, and no message in your command output log that
tells you where the output file is located?
Most strange! It doesn't seem to be running at all!!
I trust you are running a *current* (i.e, last couple of days)
version of cgContour? :-)
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|