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

Home » Public Forums » archive » running code via cron changes image output size
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
running code via cron changes image output size [message #94474] Fri, 02 June 2017 06:52 Go to previous message
Brian McNoldy is currently offline  Brian McNoldy
Messages: 35
Registered: July 2000
Member
I have been struggling with a very obscure and odd issue. I have code that utilizes the function graphics (map, scatterplot, colorbar, text... nothing weird). I also use the buffer keyword so no windows open.

When I run the code manually in the DE, the image that gets saved (via "m.save,filename,border=5,resolution=100") is 1295x487 pixels. Fine.

I also have the code set to run via a script that can be called by cron. When I run the script myself (via ./run_script.sh), the image that gets saved is 1295x487 pixels. Great.

But when I allow cron to run the same script, the image that gets saved is 1297x488. Why?? I have literally zero ideas why that would make a difference, and I need them to be the same (aside from brute-forcing a resize after-the-fact).

I'd be happy to provide any other details if they're helpful in solving this.

Cheers,
Brian
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Image registration
Next Topic: NARR Lambert Conformal Conic projection to lat lon projection conversion

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

Current Time: Wed Oct 08 11:35:14 PDT 2025

Total time taken to generate the page: 0.00371 seconds