Re: Changes to system?

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Tue Nov 06 2012 - 17:12:40 MST

Hi Carl/Kyle,
Try adding a delete(wks) call when you are done writing to your
workstation to see if that clears the problems up. This fixed some
errors for me when I was calling convert using the system command.

 From my understanding deleting the workstation prior to a
system("convert...) command at the end of your script was never enforced
(but highly recommended) in previous versions of NCL. It is now enforced
with version 6.1.0.

If that does not fix the issue please let ncl-talk know..
Adam

On 11/6/12 3:35 PM, Kyle Griffin wrote:
> Hi Carl,
>
> I've been noticing similar issues with the convert command (run via
> system() calls) in 6.1.0 that weren't present in the beta as well. I
> have yet to do a thorough trial and error processes, but my errors do
> fall in line with the description you provided (having a directory vs.
> no directory). I just tried to duplicate this via a command-line NCL
> session, but with no success, not sure why.
>
> I can verify that this is an error (for me, every time) regardless of
> whether the script is run from a command or via crontab, and that
> everything works fine in 6.1.0-beta.
>
>
> Kyle
>
> ----------------------------------------
> Kyle S. Griffin
> Department of Atmospheric and Oceanic Sciences
> University of Wisconsin - Madison
> 1225 W Dayton St, Madison, WI 53706
> Room 1421 Email: ksgriffin2@wisc.edu <mailto:ksgriffin2@wisc.edu>
>
>
>
> On Tue, Nov 6, 2012 at 4:21 PM, Carl Schreck <carl@cicsnc.org
> <mailto:carl@cicsnc.org>> wrote:
>
> I just installed 6.1.0, and I am having some strange behavior when
> I use system() to run the "convert" command.
>
> I can't replicate it reliably, but here's at least one example.
>
> This works fine:
> system( "convert corr_pna.eps corr_pna2.png" )
>
> But if the files are in a subdirectory, then:
> system( "convert figures/corr_pna.eps figures/corr_pna2.png" )
> gives me this error:
> convert: missing an image filename `figures/corr_pna2.png'.
>
> It doesn't always happen, but both versions work fine if I roll
> back to 6.1.0-beta.
>
> I'll try to do some more testing tomorrow, but I thought I'd see
> if this sounds familiar at all.
>
> Thanks!
> Carl
>
> --
> Carl J. Schreck III, PhD
> Research Associate
> Cooperative Institute for Climate and Satellites (CICS-NC)
> North Carolina State University and NOAA's National Climatic Data
> Center
> 151 Patton Avenue
> Asheville, NC 28801
> Tel: 828-257-3140 <tel:828-257-3140>
> carl@cicsnc.org <mailto:carl@cicsnc.org>
> http://monitor.cicsnc.org/mjo/
> http://www.atmos.albany.edu/student/carl/
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
>
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Nov 6 17:12:50 2012

This archive was generated by hypermail 2.1.8 : Tue Nov 13 2012 - 14:27:24 MST