tag:blogger.com,1999:blog-8698858162387672100.post6969541554239750018..comments2023-04-14T08:53:35.419-05:00Comments on Collected Shreds of AIPS Wisdom: Teaching the Monkey to Dance: Scripting AIPS #2Laurahttp://www.blogger.com/profile/14007910800783392253noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-8698858162387672100.post-2329097611760024802010-06-24T10:02:54.449-05:002010-06-24T10:02:54.449-05:00Hi Anonymous,
This looks like a potential bug in...Hi Anonymous, <br /><br />This looks like a potential bug in AIPS (or in your installation). You should probably contact the AIPS help desk using my.nrao.edu.<br /><br />Amandaamandahttps://www.blogger.com/profile/11427598026149859459noreply@blogger.comtag:blogger.com,1999:blog-8698858162387672100.post-4113570107560812162010-06-21T10:48:29.864-05:002010-06-21T10:48:29.864-05:00I had a question for you guys:
I was writing a sc...I had a question for you guys:<br /><br />I was writing a script to run imstat on several hundred images, matching the central RA value in the images (from the header) to a value in an array I defined elsewhere. This required me to round the header RA to 3 decimals by the following:<br /><br />FLOOR(HEADERRA*1000)/1000<br /><br />So for a number (say 321.504335) i should get 321.504. However I noticed that AIPS stores this value as 321.5039978. This, for obvious reasons, is causing problems.<br /><br />Is there any way get AIPS to store this value correctly?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8698858162387672100.post-44623698016230814142009-04-14T15:42:00.000-05:002009-04-14T15:42:00.000-05:00This scripting stuff is very useful, but I can't f...This scripting stuff is very useful, but I can't find scripting AIPS #3 and etc. Is it out there?<br /><br />I have lots of files to input, run sdgrid on, then write out. I have no idea how I could go about making sure stuff gets in the right slot to work for any given task. <br /><br />Thanks, <br /><br />-BruceAnonymoushttps://www.blogger.com/profile/05530781055123858835noreply@blogger.comtag:blogger.com,1999:blog-8698858162387672100.post-4715912089002387732008-10-07T14:49:00.000-05:002008-10-07T14:49:00.000-05:00Scratch that. I figured it out. You just have to...Scratch that. I figured it out. You just have to be careful in your order of procedure declaration in the runfile. For example, test2 should have been declared before test1 in my previous post. This would work:<BR/><BR/>proc test1<BR/>scalar z<BR/>type z<BR/>return; finish<BR/><BR/>proc test2<BR/>scalar z<BR/>z=1<BR/>test1<BR/>z=2<BR/>test1<BR/>return; finishDonkeyPuncherhttps://www.blogger.com/profile/06382000560369419947noreply@blogger.comtag:blogger.com,1999:blog-8698858162387672100.post-63292080015297807062008-10-07T14:35:00.000-05:002008-10-07T14:35:00.000-05:00Anybody know how to do nested procedures in AIPS? ...Anybody know how to do nested procedures in AIPS? It is suggested in the AIPS helpfile for RETURN. Example of desired usage (quasi-pseudocode):<BR/><BR/>proc test1<BR/>scalar z<BR/>z=1<BR/>CALL test2<BR/>z=2<BR/>CALL test2<BR/>return<BR/><BR/>proc test2<BR/>type z<BR/>returnDonkeyPuncherhttps://www.blogger.com/profile/06382000560369419947noreply@blogger.comtag:blogger.com,1999:blog-8698858162387672100.post-26709764248472662842007-04-26T20:15:00.000-05:002007-04-26T20:15:00.000-05:00Thanks Amanda! Very handy tips. :)Thanks Amanda! Very handy tips. :)Laurahttps://www.blogger.com/profile/14007910800783392253noreply@blogger.com