Welcome to iraf.net Friday, April 26 2024 @ 03:58 AM GMT


 Forum Index > Help Desk > Systems New Topic Post Reply
 changes to the graphics code?
   
sontag
 03/15/2011 10:29PM (Read 4562 times)  
+----
Newbie

Status: offline


Registered: 01/14/2011
Posts: 9
Hi,I am debugging a problem in IRAF 2.15.1a plotting via PyRAF. I know you are not in the business of PyRAF support (I am), but I am curious about changes to IRAF graphics tasks between 2.14 and 2.15 so I thought I'd ask.With 2.15, the command to plot/append (prow dev$pix 333 append+) gives:
[code:1:0d81da1e1f]
851, "Cannot restore graphics world coordinate systems"
[/code:1:0d81da1e1f]this does not occur in the CL, only in PyRAF. But this works with 2.14 and the calling code in PyRAF has not changed. And I note that the GKI output from a simple plot (prow dev$pix 333) is different in 2.15 than it was in 2.14:[code:1:0d81da1e1f]
% diff plot.214.mc.txt plot.215.mc.txt
3c3
< set_wcs nwords=352
---
> set_wcs nwords=384
7c7
< set_wcs nwords=352
---
> set_wcs nwords=384
46c46
< set_wcs nwords=352
---
> set_wcs nwords=384
[/code:1:0d81da1e1f]Looking at the IPC has been unhelpful so far. Do you have any suggestions? I figure if there was a change to the graphics code, then the CL itself was also modified to handle it.All of the above is for 32-bit.Thanks,
Chris

 
Profile Email
 Quote
fitz
 03/15/2011 10:29PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I think what you're seeing is the effect of this change:[code:1:c69bfadd20]
lib/gio.h
sys/gio/cursor/gtr.h
Increased the size of the WCS buffer. The size was previously calculated
as being 17 structure elements by assuming the SZ_INT was 2. Increased
to accomodate 64-bit sizes and will live with the wasted space.
[/code:1:c69bfadd20]The specific change is to the GP_WCSPTR in gio.h and LEN_TRSTRUCT in gtr.h (diff the files for details).

 
Profile Email
 Quote
sontag
 03/15/2011 10:29PM  
+----
Newbie

Status: offline


Registered: 01/14/2011
Posts: 9
Thanks a lot. That directed me to the change in gio.h where LEN_WCS was changed from 11 to 12. In the end, that was what I need to work around in PyRAF. The size of the WCS metacode burst is now 384 instead of 352.For any PyRAF users reading this post, the graphics changes to IRAF are now being correctly handled (at least for 32-bit) in the current version of PyRAF (i.e. the nightly tar-ball until v1.11 is out).Thanks again,
Chris

 
Profile Email
 Quote
jturner
 03/15/2011 10:29PM  
+++++
Active Member

Status: offline


Registered: 12/29/2005
Posts: 165
Good, thanks for the info.

 
Profile Email
 Quote
iz
 03/15/2011 10:29PM  
+----
Newbie

Status: offline


Registered: 07/22/2009
Posts: 6
Chris,What about 64 bit version? Have just tried latest IRAF x86_64 with today's nightly build of pyraf and pstselect fails with this error. Any chance to get this fixed or better rollback to 2.14?--
Best regards,
Ivan

 
Profile Email
 Quote
   
Content generated in: 0.19 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login