[daip] UVFIT

Eric Greisen egreisen at nrao.edu
Mon Feb 22 10:50:43 EST 2016


On 02/21/2016 06:39 AM, Andy Biggs wrote:
> Hi Eric. I tried to expand my existing procedure for calibrating an
> epoch (this is monitoring data) by getting it to write the data out and
> run a shell script (using SYSTEM) that runs difmap and extracts the
> values I need. This works fine, but the problem is that I don't see how
> I can get the values into AIPS so that I can use them in CLCOR. I had
> written these into a runfile, but it seems that I can't run this from
> inside a procedure. Is there another way to automatically read values
> from outside AIPS? My procedure is attached.

You can run nested run files up to 20 or so deep so if your proc can 
write a short text file you might be able to achieve this.  I include an 
example that works for me:

$  TESTRUN.010
PRINT 'testrun main'
version 'mywork'
run test2run
print 'i am back'
print x, y, '= x,y'
$

$ TEST2RUN.010
print 'at test2run'
read  x, y
2.34 7.89
print 'x,y=',x, y
$

which did

 >run testrun
AIPS 1: Found in Version=MYWORK
AIPS 1: PRINT 'TESTRUN MAIN'
AIPS 1: 'TESTRUN MAIN'
AIPS 1: version 'MYWORK'
AIPS 1: run test2run
AIPS 1: Found in Version=MYWORK
AIPS 1: print 'AT TEST2RUN'
AIPS 1: 'AT TEST2RUN'
AIPS 1: read  x, y
AIPS 1: print 'X,Y=',x, y
AIPS 1: 'X,Y='             2.3399999     7.8899999
AIPS 1: $
AIPS 1: print 'I AM BACK'
AIPS 1: 'I AM BACK'
AIPS 1: print x, y, '= X,Y'
AIPS 1:      2.3399999     7.8899999   '= X,Y'
AIPS 1: $

I will look at your script to see if anything pops out at me...

Cheers

Eric



More information about the Daip mailing list