<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Hi, Mary.</div><div><br></div><div>Thanks for your reply.</div><div><br></div><div>I think you are right, the files are actually NCGM,</div><div><br></div><div>I found out there is a switch-case which looks like checking the input file is CGM or NCGM in our program.</div><div><br></div><div>Both of this two files are judged as NCGM.</div><div><br></div><div><br></div><div><br></div><div>I tried to use ctrans today, and I got the text files translated from the binary files.</div><div><br></div><div>The attachment is the header of the original file which can be viewed correctly in AWIPS and the new file which cannot.</div><div><br></div><div>I know they look like the same. I think the problem may not be the difference of their header.</div><div><br></div><div><br></div><div><br></div><div>I tried to search the strings such as "JMA", "CROSS", "PRESSURE" in the text file,</div><div><br></div><div>but they can't be found.</div><div><br></div><div>So I'm still confused at how Idt and our AWIPS program show it on the picture.</div><div><br></div><div>Can you give me some advice?</div><div><br></div><div><br></div><div><br></div><div>Thank you.</div><div><br></div><div>Gin Lin.</div><div><br><br><font color="#990099">-----ncl-talk-bounces@ucar.edu 撰寫:-----</font></div><div style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">收件人: Gin.Lin@iisigroup.com<br>寄件人: Mary Haley <haley@ucar.edu><br>傳送自: ncl-talk-bounces@ucar.edu<br>日期: 09/24/2015 10:40上午<br>副本抄送: "ncl-talk@ucar.edu" <ncl-talk@ucar.edu>, charlie.chang@iisigroup.com, bobo.wang@iisigroup.com<br>主旨: Re: [ncl-talk] Where are the functions processing the string information in a CGM file?<br><br><div dir="ltr"><div class="gmail_default" style="font-size:small">Gin Lin,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Idt is a very old program, and the original developer is not part of our team any more.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">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.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I've attached the two codes here.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Finally, you may want to read our "CGM, Graphicap, and Fontcap Supplement" document, which contains a section on the "NCAR Computer Graphics Metafile".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncarg.ucar.edu/supplements/cgm_supp/cgm_supp.html">http://www.ncarg.ucar.edu/supplements/cgm_supp/cgm_supp.html</a><br></div><div class="gmail_default"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 22, 2015 at 9:57 PM, <span dir="ltr"><<a href="mailto:Gin.Lin@iisigroup.com" target="_blank">Gin.Lin@iisigroup.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2"><div>Dear all:</div><div><br></div><div>First let me introduce our situation.</div><div><br></div><div>I am one member in CWB in Taiwan, 20 years ago someone write a program for AWIPS,</div><div><br></div><div>so we can view the CGM file by using AWIPS.</div><div><br></div><div>Recently, the format of the CGM files we get is changed, and this program cannot show the string information in the new CGM files.</div><div><br></div><div>You can see the attachments, the color one is what it looks like in idt,</div><div><br></div><div>and the green one is what it looks like in AWIPS,</div><div><br></div><div>and the messages marked by read lines in the idt picture disappeared in the AWIPS picture.</div><div><br></div><div>We want to edit this program to fix it.</div><div><br></div><div><br></div><div><br></div><div>I checked our program for AWIPS, but I can't find where is the function which print out the string information.</div><div><br></div><div>I think it may not belong to the TEXT element of class 4.</div><div><br></div><div>The files we have are all binary, so I can't read them.</div><div><br></div><div>I also tried to read the source code of idt but I can't understand it. Forgive me.</div><div><br></div><div><br></div><div><br></div><div>So, my questions are:</div><div><br></div><div>1. Where are the functions processing this string information in a CGM file?</div><div><br></div><div>or more briefly, how idt print out this information on the picture?</div><div><br></div><div>2. Where are the strings in a CGM file?</div><div><br></div><div>Do they belong to the class 4 TEXT element?</div><div><br></div><div>Or they are actually another element?</div><div><br></div><div><br></div><div><br></div><div>Thank you.</div><div><br></div><div>Gin Lin</div><div></div></font><br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank" rel="noreferrer">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
<div><font face="Courier New,Courier,monospace" size="3">_______________________________________________<br>ncl-talk mailing list<br>ncl-talk@ucar.edu<br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br></font></div></haley@ucar.edu></div><br><br>[附加檔案 "cgm2ncgm.c" 由 Gin Lin/iisigroup 移除]<br>[附加檔案 "ncgm2cgm.c" 由 Gin Lin/iisigroup 移除]</div><div></div></font>