Re: problems with NCL ps file

From: Adam Phillips <asphilli_at_nyahnyahspammersnyahnyah>
Date: Fri, 12 Jun 2009 12:06:21 -0600

Hi David,
I ran your code, and confirmed that I can't read it into Illustrator
either. I didn't see anything peculiar in your script, so I started
commenting out lines of code, running the script, and tried opening it
up in Illustrator. The line that is causing it not to read into
Illustrator is res_at_cnFillMode = "RasterFill". If I comment that line out
all is well. I have no idea why a raster filled NCL image can't be
imported into Illustrator.

A solution would be to use the convert command (/Image Magik) to convert
the .ps/.eps file into a high resolution .png or .gif file, and import
that into Illustrator. Or you can use AreaFiIl instead of RasterFill.
Perhaps others will have an answer as to why a raster-filled NCL image
can't be read into Illustrator.

David B. Reusch wrote:
> Hello,
> I am having problems reading a NCL-generated PS file into Illustrator
> and I have not been able to isolate it to either NCL or Illustrator. In
> all cases, when opening in Illustrator, I get the "The operation cannot
> complete because of an unknown error" message. Depending on which
> version/platform of Illustrator (I've tried CS2, CS3, CS4 on PPC Mac
> 10.4, WinXP, Intel Mac 10.5, respectively), some of the image is still
> displayed. The file prints and can be opened/viewed in gv, Preview and
> ImageMagick. It even opens in Photoshop, though I'm not sure that's a
> fair test since it's being rasterized.
> This problem actually started in Dec 2007 and languished on my desk
> until this week. Because of that I've been able to test it out on LOTS
> of NCL releases, all on Mac 10.4.x: 4.2.0.a033 and a034, 4.3.0, 4.3.1,
> 5.0.0 and 5.1.0. Unfortunately, the NCL release doesn't seem to matter
> since Illustrator has the same problem regardless (though only the 5.1.0
> PS file has been tested across multiple Illustrator versions).
> I've attached a file with my script, input data and a sample PS file.
> To run the script (plot_avg_map_new.ncl), be sure to first set
> environment variable INFILE to "avg_57_79_020" (e.g., setenv INFILE
> avg_57_79_020, in csh/tcsh). This points the script to the text input
> file. The script will produce a PS file
> Thanks!
> Dave
> ------------------------------------------------------------------------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:

Adam Phillips			   
National Center for Atmospheric Research   tel: (303) 497-1726
ESSL/CGD/CAS                               fax: (303) 497-1333
P.O. Box 3000				
Boulder, CO 80307-3000
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Jun 12 2009 - 12:06:21 MDT

This archive was generated by hypermail 2.2.0 : Mon Jun 15 2009 - 08:53:05 MDT