[ncl-talk] Where are the functions processing the string information in a CGM file?
Mary Haley
haley at ucar.edu
Wed Sep 23 20:40:11 MDT 2015
Gin Lin,
Idt is a very old program, and the original developer is not part of our
team any more.
However, I'm wondering if part of your issue is that idt is for viewing
NCGM files, and not CGM files. An NCGM file is NCAR's special CGM format. I
would be surprised if other programs were actually able to view NCGM files.
Did you try using "ncgm2cgm" to convert the NCGM to a CGM file? You can
also look at the ncgm2cgm.c and cgm2ncgm.c programs to see the code that
converts from one format to another. This might help you find the source
of the problem.
I've attached the two codes here.
Finally, you may want to read our "CGM, Graphicap, and Fontcap Supplement"
document, which contains a section on the "NCAR Computer Graphics Metafile".
http://www.ncarg.ucar.edu/supplements/cgm_supp/cgm_supp.html
--Mary
On Tue, Sep 22, 2015 at 9:57 PM, <Gin.Lin at iisigroup.com> wrote:
> Dear all:
>
> First let me introduce our situation.
>
> I am one member in CWB in Taiwan, 20 years ago someone write a program for
> AWIPS,
>
> so we can view the CGM file by using AWIPS.
>
> Recently, the format of the CGM files we get is changed, and this program
> cannot show the string information in the new CGM files.
>
> You can see the attachments, the color one is what it looks like in idt,
>
> and the green one is what it looks like in AWIPS,
>
> and the messages marked by read lines in the idt picture disappeared in
> the AWIPS picture.
>
> We want to edit this program to fix it.
>
>
>
> I checked our program for AWIPS, but I can't find where is the function
> which print out the string information.
>
> I think it may not belong to the TEXT element of class 4.
>
> The files we have are all binary, so I can't read them.
>
> I also tried to read the source code of idt but I can't understand it.
> Forgive me.
>
>
>
> So, my questions are:
>
> 1. Where are the functions processing this string information in a CGM
> file?
>
> or more briefly, how idt print out this information on the picture?
>
> 2. Where are the strings in a CGM file?
>
> Do they belong to the class 4 TEXT element?
>
> Or they are actually another element?
>
>
>
> Thank you.
>
> Gin Lin
>
> _______________________________________________
> ncl-talk mailing list
> ncl-talk at ucar.edu
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/14e818d4/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgm2ncgm.c
Type: text/x-csrc
Size: 6768 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/14e818d4/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ncgm2cgm.c
Type: text/x-csrc
Size: 4771 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150923/14e818d4/attachment-0001.bin
More information about the ncl-talk
mailing list