[daip] quick aips ?
Tanmoy Laskar
tlaskar at cfa.harvard.edu
Wed Jun 22 13:05:10 EDT 2011
This doesn't seem to work. I made a bash script file called aipsrun.sh.
Here are the contents of that file:
#!/bin/sh
aips notv pr=1
5000
kleenex
I made that file executable. Then ran it from the shell:
./aipsrun.sh
It pulls up aips, asking for my user number, in interactive mode. This is
not what I want.
I tried putting everything on one line. It doesn't ask for my username and I
get the following output:
"START_AIPS: Your initial AIPS printer is the PS DUP,DEF LPGRAD
START_AIPS: - system name lpgrad|HP, AIPS type LaserJet
START_AIPS: User data area assignments:
DADEVS.PL: This program is untested under Perl version 5.010
(Using global default file /opt/aips/DA00/DADEVS.LIST for DADEVS.PL)
Disk 1 (1) is /opt/aips/DATA/ARTEMIS_1
Tape assignments:
Tape 1 is REMOTE
Tape 2 is REMOTE
START_AIPS: Starting TPMON daemons on ARTEMIS asynchronously...
Usage: AIPSEXEC [REMOTE] [DEBUG] [LOCAL] [NOEX]
DADEVS.PL: This program is untested under Perl version 5.010"
I am then dropped back to the UNIX shell. Have I misinterpreted your email?
Thanks.
Tanmoy
PS: removing the #!/bin/sh from the start of the file does not change
anything.
On Wed, Jun 22, 2011 at 11:49 AM, Eric Greisen <egreisen at nrao.edu> wrote:
> Tanmoy Laskar wrote:
>
>> Hi Eric,
>>
>> The idea is that we want to run JMFIT on a list of point-like sources in
>> an image cube. We want to generate the list of sources dynamically, and call
>> JMFIT to fit for the source parameters, writing the output to a text file
>> for each source, parsing the output file and appending the fitted parameters
>> to our source listing. Doing this from our own scripts will enable efficient
>> bookkeeping, where we can keep track of the source and the fit at the same
>> time.
>> We have many hundreds of sources, and dealing with hundreds of little
>> JMFIT ouput files is daunting. It would be easiest if we could, e.g. call
>> JMFIT from the UNIX command line (or through a spawned AIPS shell), perform
>> the fit, save the parameters, and absorb the results into our
>> dynamically-executing code.
>>
>> We have so far been using MIRIAD, where this functionality is available
>> and works very well. However, the AIPS routine JMFIT is best suited for our
>> scientific purpose and we were wondering if dynamic execution in this
>> fashion is possible in AIPS.
>>
>
> We have someone that writes long data reduction scripts that invokes things
> both before and after the sequence of AIPS tasks. What his scripts do is
> write a text file with all needed commands and then execute that file. I am
> unfamiliar with all the gotchas but that
> text file would look something like
>
> aips notv pr=1
> <uuuu>
> tget jmfit
> getn <n>
> gmax=<p>
> gpos=<x1,y1>
> blc=<bx,by>
> trc=<tx,ty>
> go
> clrm
> print fmax(1),fpos(1,1),fpos(2,1),**fwidth(1,1),fwidth(2,1),**fwidth(3,1)
> print domax(1),dopos(1,1),dopos(2,1)**,dowidth(1,1),dowidth(2,1),**
> dowidth(3,1)
>
> outprint='<tttt'>
> prtm
> clrm
> exit
>
> Where your script has to fill in all things in <>'s. This deletes the
> messages of JMFIT and prints the returned fit values and error bars to a
> file for parsing. Note that e-mail tool forced the break between print and
> domax which should not be there. There are other alternatives depending on
> which of JMFIT's outputs you want.
>
> The script $SYSUNIX/BDF2AIPS sort of does this (in an interactive way) to
> invoke ObitTalk and the BDFIn task inside it.
>
> Eric Greisen
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listmgr.nrao.edu/pipermail/daip/attachments/20110622/896b8023/attachment.html>
More information about the Daip
mailing list