[pyngl-talk] New version 1.5.0_beta: can't create pdf, newpdf or ps file
Karin Meier-Fleischer
meier-fleischer at dkrz.de
Thu Dec 18 04:29:45 MST 2014
Hi,
I'm trying to output the plot to ps or pdf, but ps, pdf and newpdf failed,
eps and epsi creates an correct output file.
Using ps the output file is of size 0.
The mac os x program preview returns an error message that the file is
corrupted. The pdf output file gives the following error message when
opened with ImageMagicks display program:
**** Error: Cannot find a 'startxref' anywhere in the file.
**** Warning: An error occurred while reading an XREF table.
**** The file has been damaged. This may have been caused
**** by a problem while converting or transfering the file.
**** Ghostscript will attempt to recover the data.
**** Error: Trailer is not found.
No pages will be processed (FirstPage > LastPage).
**** This file had errors that were repaired or ignored.
**** Please notify the author of the software that produced this
**** file that it does not conform to Adobe's published PDF
**** specification.
display: Postscript delegate failed `py_NCL_cont_fill_map.pdf': No such
file or directory @ error/pdf.c/ReadPDFImage/713.
Using newpdf gives the following error message running the python script
warning:open_wks: Invalid workstation type, must be 'x11', 'ncgm', 'ps',
'png', 'pdf', or 'svg'
fatal:_NhlCreate:This object must have a Workstation Ancestor
fatal:_NhlCreate:This object must have a Workstation Ancestor
fatal:NhlGetValues:PID #-4 is invalid
fatal:PID #-4 can't be found in NhlSetValues
fatal:NhlAddOverlay: invalid base plot id
fatal:Invalid plot ID=-4 passed to NhlGetBB
fatal:NhlGetValues:PID #-4 is invalid
fatal:PID #-4 can't be found in NhlSetValues
fatal:NhlDraw: Invalid Layer Id: -4
fatal:Unable to update Workstation with PID#0
fatal:Unable to clear Workstation with PID#0
Any idea?
Bye,
Karin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: NCL_contour_filled_map.py
Type: text/x-python-script
Size: 2424 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/pyngl-talk/attachments/20141218/05de0ff6/attachment-0001.bin
More information about the pyngl-talk
mailing list