So I tried reading in some of my raster fill images, and they worked, 
w/o using the convert workaround. I did get the parsing EPS image 
message though. So it is not universal, some raster fill images read in, 
others do not. Strange. Perhaps its a combination of resources, or the 
data grid?
I wouldn't necessarily say that it's a NCL issue, but ???
David B. Reusch wrote:
> OK, that actually worked -- cool.  (Note that Illustrator now says 
> "Parsing EPS Format".  I'm not convinced it said that at all before.)  
> Is it fair to say that this points to NCL instead of Illustrator?  I 
> will definitely make a note to try this if/when I run into this again in 
> future.  Hopefully though, it just goes away with a (NCL) fix.
> 
> Thanks Adam -- sometimes "whims" pay off!
> 
> dave
> 
> Adam Phillips said the following on 6/12/09 4:03 PM:
>> Hi David,
>> On a whim, I tried passing the .ps file thru ps2ps, and the result was 
>> the same. However, along the same lines,
>> and after talking to a colleague about the issue, I passed the .ps 
>> file thru convert:
>> convert plot_avg_57_79_020_new.ps test.ps
>> and I was able to read it into Illustrator.
>> Give it a shot..
>> Adam
>>
>> David B. Reusch wrote:
>>> Thanks for the debugging Adam.  Unfortunately, as the attached image 
>>> shows, RasterFill (left) and AreaFill (right) produce rather 
>>> different results for these data (i.e., on the left, concave 
>>> boundary).  I'm pretty sure this is how I ended up with RasterFill.
>>>
>>> Back when I was working on this stuff daily, I was generating dozens 
>>> and dozens of paneled figures each with 20 to 30 plots just like this 
>>> -- and I *must* have loaded at least some of them into Illustrator 
>>> w/o any problems.  Unfortunately (again), at some point I also added 
>>> a step to convert  the PS files to PNG files so I don't have any of 
>>> those PS files handy.  If necessary, I could probably redo one w/o 
>>> the PS->PNG step and see if that actually works.
>>>
>>> For now, though, I'd prefer to see if anyone else has any additional 
>>> ideas.
>>>
>>> Also, I prefer to keep the files as PS because I usually end up doing 
>>> a bunch of tweaking in Illustrator that can't be done in PNG.
>>>
>>> Thanks again,
>>> Dave
>>>
>>> Adam Phillips said the following on 6/12/09 2:06 PM:
>>>> 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.
>>>> Adam
>>>>
>>>>
>>>> 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 
>>>>> plot_avg_57_79_020_new.ps.
>>>>>
>>>>> Thanks!
>>>>> Dave
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------ 
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> ncl-talk mailing list
>>>>> List instructions, subscriber options, unsubscribe:
>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>
> 
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list List instructions, subscriber options, unsubscribe: http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Fri Jun 12 2009 - 14:28:46 MDT
This archive was generated by hypermail 2.2.0 : Mon Jun 15 2009 - 08:53:05 MDT