<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I do not know what compiler you are using and you also did not tell me whether you are ruinning a MACARM or MACINT "architecture". We use a rather old gfortran (6 or so) in MACINT and that did not have this issue. MACARM requires a recent gfortran since it
is a recent new chip and that has this problem. I attach OPTIMIZE.LIS which needs to be in your $SYSUNIX area. Then</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
COMRPL $APLOOP/INTERPLATE - and check that it does not optimize (-g is no opt)</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Then COMLNK $APGOOP/FLATN and other tasks like OGEOM.</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Eric Greisen</div>
<div class="elementToProof" style="font-family: Aptos, Aptos_EmbeddedFont, Aptos_MSFontService, Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Arti Goyal <arti.goyal@uj.edu.pl><br>
<b>Sent:</b> Tuesday, September 10, 2024 7:19 AM<br>
<b>To:</b> Eric Greisen <egreisen@nrao.edu><br>
<b>Cc:</b> daip <daip@nrao.edu><br>
<b>Subject:</b> Re: [daip] Issue with FLATN (AIPS 2023) {External}</font>
<div> </div>
</div>
<style>
<!--
@font-face
{font-family:"Cambria Math"}
@font-face
{font-family:Calibri}
@font-face
{font-family:Aptos}
@font-face
{font-family:Menlo}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif}
p.x_xmsonormal, li.x_xmsonormal, div.x_xmsonormal
{margin:0in;
font-size:12.0pt;
font-family:"Aptos",sans-serif}
p.x_xp1, li.x_xp1, div.x_xp1
{margin:0in;
font-size:10.5pt;
font-family:Menlo;
color:black}
span.x_xs1
{}
span.x_xapple-converted-space
{}
span.x_EmailStyle25
{font-family:"Aptos",sans-serif;
color:windowtext}
.x_MsoChpDefault
{font-size:10.0pt}
@page WordSection1
{margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
{}
-->
</style>
<div lang="EN-US" link="#467886" vlink="#96607D" style="word-wrap:break-word">
<div class="x_WordSection1">
<p class="x_MsoNormal"><span style="font-size:11.0pt">Dear Prof Greisen,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Thanks for your prompt replies. I did the steps as you suggested below, and all the steps finished successfully. However, the problem still persists with the flatn task. </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> TPMON1: Begins on 2024.09.10 15:12:36</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Task FLATN (release of 31DEC23) begins</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Create TEST .FLATN . 2 (MA) on disk 1 cno 465</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Field 1 included blc,trc 253 2247 773 2767</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> FLATN1: ZABORS: signal 15 received</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">LOCALH> FLATN1: ABORT!</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Please let me know what you think.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Thank you.</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Best regards,</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt">Arti Goyal</span></p>
<p class="x_MsoNormal"><span style="font-size:11.0pt"> </span></p>
<div id="x_mail-editor-reference-message-container">
<div>
<div style="border:none; border-top:solid #B5C4DF 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal" style="margin-bottom:12.0pt"><b><span style="color:black">From:
</span></b><span style="color:black">Eric Greisen <egreisen@nrao.edu><br>
<b>Date: </b>Friday, September 6, 2024 at 18:47<br>
<b>To: </b>Arti Goyal <arti.goyal@uj.edu.pl><br>
<b>Cc: </b>daip <daip@nrao.edu><br>
<b>Subject: </b>Re: [daip] Issue with FLATN (AIPS 2023) {External}</span></p>
</div>
<table class="x_MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#FFB900; padding:0in 0in 0in 0in">
<p class="x_MsoNormal" style=""><span style="color:black"> </span></p>
</td>
<td width="5" style="width:3.75pt; background:white; padding:0in 0in 0in 0in"></td>
<td style="background:#FFF8E5; padding:0in 0in 0in 0in">
<p style=""><strong><span style="font-size:9.0pt; font-family:"Aptos",sans-serif; color:black">UWAGA:</span></strong><span style="font-size:9.0pt; color:black"> Wiadomość pochodzi od zewnętrznego nadawcy.</span></p>
</td>
</tr>
</tbody>
</table>
<p> </p>
<div>
<div>
<p class="x_MsoNormal"><span style="color:black">You need to add a line to $SYSUNIX/OPTIMIZE.LIS setting routine name INTERPLATE on MACARM to 0 0 optimization. Then COMRPL $APLOOP/INTERPLATE. The COMLNK/$APGOOP/*.FOR and COMLNK $QPGOOP/*.FOR. Apparently
recent gfortran versions do something bad in this collection of routines used in regridding images (FLATN, OGEOM, OHGEO, and more).</span><span style="color:black"></span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="color:black">Thanks for reporting this.</span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="color:black"> </span></p>
</div>
<div>
<p class="x_MsoNormal"><span style="color:black">Eric Greisen</span></p>
</div>
<div class="x_MsoNormal" align="center" style="text-align:center">
<hr size="2" width="98%" align="center">
</div>
<div id="x_divRplyFwdMsg">
<p class="x_MsoNormal"><b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black">From:</span></b><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:black"> Daip <daip-bounces@listmgr.nrao.edu> on behalf of Arti Goyal
via Daip <daip@listmgr.nrao.edu><br>
<b>Sent:</b> Thursday, September 5, 2024 2:25 AM<br>
<b>To:</b> aipsmail <aipsmail@nrao.edu><br>
<b>Subject:</b> [daip] Issue with FLATN (AIPS 2023) {External}</span> </p>
<div>
<p class="x_MsoNormal"> </p>
</div>
</div>
<div>
<div>
<p class="x_xmsonormal"><span style="font-size:11.0pt">Dear colleague,</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">I have text installed AIPS 2023 on my Macbook Pro and it’s running smoothly. I am encountering a problem while running the task FLATN. Here I want to interpolate 25 fields into one as I have performed a
wide-field imaging (610 MHz data from GMRT telescope in India). The problem is that the task starts but doesn’t finish no matter how long I let take and I need to abort to get the terminal back. The resulting FLATNed image is junk without any intensities.</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Task FLATN (release of 31DEC23) begins</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Create HDFN .FLATN . 1 (MA) on disk 1 cno 361</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">LOCALH> FLATN1: Field 1 included blc,trc 253 2247 773 2767</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">LOCALH> FLATN1: ZABORS: signal 15 received</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">LOCALH> FLATN1: ABORT!</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">The image header of the FLATNed image:</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Got(1) disk= 1 user= 100 type=MA HDFN.FLATN.1</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Image=HDF-N (MA) Filename=HDFN .FLATN . 1</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Telescope=GMRT Receiver=GMRT</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Observer=TOM User #= 100</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Observ. date=01-APR-2007 Map date=04-SEP-2024</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Pixel type: FLOATING Magic value blanking</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Minimum= 1.00000002E+20 Maximum=-1.00000002E+20 JY/BEAM</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: ----------------------------------------------------------------</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Type Pixels Coord value at Pixel Coord incr Rotat</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: RA---SIN 3000 12 36 49.403515 1500.00 -1.380 0.00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: DEC--SIN 3000 62 12 57.973953 1501.00 1.380 0.00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: FREQ 1 6.1737502E+08 1.00 1.375000E+07 0.00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: STOKES 1 1.0000000E+00 1.00 1.000000E+00 0.00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: ----------------------------------------------------------------</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Coordinate equinox 2000.00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Map type=NORMAL Number of iterations= 2413</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Conv size= 7.08 X 5.92 Position angle= 28.46</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Rest freq 0.000 Vel type: RADIO wrt YOU</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Alt ref. value 0.00000E+00 wrt pixel 0.45</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Keyword = 'WTNOISE ' value = 1.13333679D+00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Keyword = 'SUMWTIN ' value = 1.42178117D+08</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Keyword = 'CCFLUX ' value = 2.569658E-02</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Keyword = 'CCTOTAL ' value = 1.265699E+00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">AIPS 1: Keyword = 'MAXABSU ' value = -1.000000E+00</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">My box file for creating 25 fields is as below:</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xp1"><span class="x_xs1">F 1</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">1380 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 2</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">690 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 3</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">0</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 4</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-690 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 5</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-1380</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 6</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">1380 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">690</span></p>
<p class="x_xp1"><span class="x_xs1">F 7</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">690</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">690</span></p>
<p class="x_xp1"><span class="x_xs1">F 8</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">0 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">690</span></p>
<p class="x_xp1"><span class="x_xs1">F 9</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-690</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">690</span></p>
<p class="x_xp1"><span class="x_xs1">F 10 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-1380 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">690</span></p>
<p class="x_xp1"><span class="x_xs1">F 11 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">1380 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">0</span></p>
<p class="x_xp1"><span class="x_xs1">F 12 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">690 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">0</span></p>
<p class="x_xp1"><span class="x_xs1">F 13 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">0 0</span></p>
<p class="x_xp1"><span class="x_xs1">F 14 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-690 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">0</span></p>
<p class="x_xp1"><span class="x_xs1">F 15 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-1380</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">0</span></p>
<p class="x_xp1"><span class="x_xs1">F 16 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">1380</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-690</span></p>
<p class="x_xp1"><span class="x_xs1">F 17 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">690</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-690</span></p>
<p class="x_xp1"><span class="x_xs1">F 18 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">0 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-690</span></p>
<p class="x_xp1"><span class="x_xs1">F 19 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-690</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-690</span></p>
<p class="x_xp1"><span class="x_xs1">F 20 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-1380 -690</span></p>
<p class="x_xp1"><span class="x_xs1">F 21 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">1380</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 22 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">690 </span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 23 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">0</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 24 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-690</span><span class="x_xapple-converted-space"> </span>
<span class="x_xs1">-1380</span></p>
<p class="x_xp1"><span class="x_xs1">F 25 </span><span class="x_xapple-converted-space">
</span><span class="x_xs1">512 512</span><span class="x_xapple-converted-space">
</span><span class="x_xs1">-1380 -1380</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">##</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">I will greatly appreciate any help in this regard.</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">Thank you.</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt">Arti Goyal</span></p>
<p class="x_xmsonormal"><span style="font-size:11.0pt"> </span></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>