Welcome to iraf.net Friday, May 17 2024 @ 07:36 AM GMT


 Forum Index > Help Desk > General IRAF New Topic Post Reply
 Cannot open file (tmp$xxx)
   
sarah.sweet
 07/02/2010 01:56AM (Read 2430 times)  
+----
Newbie

Status: offline


Registered: 01/24/2010
Posts: 11
Hello,I have been successfully using iraf to reduce some data, including msctvmark to overlay a catalogue on an image.Today when I attempt to use msctvmark I receive the following message:Warning: Cannot open file (tmp$iraf4133h)
ERROR on line 186: Cannot open file (tmp$4133i)
msctvmark ()I have looked at
http://iraf.noao.edu/faq/FAQsec09.html
tmp$ is defined as /tmp/
I also checked that I have permission to edit the tmp folder, and created .tmpiraf in that folder.
I have tried unlearning mscdisplay and msctvmark but the same message occurs (with numbers increaseing sequentiallly).If you are able to assist that would be much appreciated.Thanks,Sarah

 
Profile Email
 Quote
fitz
 07/02/2010 01:56AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
The task is actually a script and there are three temp files created for different reasons, but the message isn't enough to distinguish which of those three files is the problem. Assuming all is well in terms of writing to the tmp directory, you might also see the message if e.g. the 'fields' param is incorrect for the input file since this is used to create one of the files.Two things to try: Do an "unlearn mscred" to reset all of the package parameters, and/or type "d_trace" before running the task to print out more information about what the script is doing before the message. If you don't understand the output of the latter then please just post it.

 
Profile Email
 Quote
sarah.sweet
 07/02/2010 01:56AM  
+----
Newbie

Status: offline


Registered: 01/24/2010
Posts: 11
Thanks Fitz,It looks like perhaps an issue with mscctran, though I cannot scroll back further to see if there is a previous error (when running msctvmark without d_trace it returns errors with two temporary files).Is it possibly a formatting issue with my list of coordinates? What format should it be in?Thanks,
Sarah....
1059+7: pushconst `nwcs'
1066+6: pushconst `im'
1072+6: pushconst `l2'
1078+6: pushconst `l1'
1084+6: pushconst `c2'
1090+6: pushconst `c1'
1096+7: pushconst `wcsim'
1103+6: pushconst `fd1'
1109+5: pushconst 8
1114+2: fscan
1116+5: pushconst -2
1121+2: ne
1123+3: biff +1793
1126+5: pushconst 0
1131+4: intrinsic nscan
1135+5: pushconst 7
1140+2: lt
1142+3: biff +7
1145+4: pushparam wcsim
1149+3: assign im
1152+4: call hselect
1156+3: pushparam im
1159+3: posargset 0
1162+9: pushconst `naxis1,naxis2'
1171+3: posargset 1
1174+5: pushconst yes
1179+3: posargset 2
1182+3: addpipe
1185+2: redir
1187+2: exec
----- exec external task hselect -----
hselect > $\nimages="N1600_g_one.fits"\n
fields="naxis1,naxis2"\nexpr="yes"\nmissing="INDEF"\n
mode="ql"\n$nargs=3\n
--------------------------------
----- task hselect -----
2947+3: call bye
2950+2: exec
----- exec builtin bye -----
1189+4: call scan
1193+9: pushconst `mscztvmark.nc'
1202+3: indirposset 0
1205+9: pushconst `mscztvmark.nl'
1214+3: indirposset 1
1217+4: getpipe
1221+2: redirin
1223+2: exec
----- exec builtin scan -----
1225+3: rmpipes 1
1228+7: pushconst `[*,*]'
1235+4: assign imsec
1239+4: call hselect
1243+3: pushparam im
1246+3: posargset 0
1249+7: pushconst `datasec'
1256+3: posargset 1
1259+5: pushconst yes
1264+3: posargset 2
1267+3: addpipe
1270+2: redir
1272+2: exec
----- exec external task hselect -----
hselect > $\nimages="N1600_g_one.fits"\nfields="datasec"\n
expr="yes"\nmissing="INDEF"\nmode="ql"\n$nargs=3\n
--------------------------------
----- task hselect -----
2947+3: call bye
2950+2: exec
----- exec builtin bye -----
1274+4: call scan
1278+10: pushconst `mscztvmark.imsec'
1288+3: indirposset 0
1291+4: getpipe
1295+2: redirin
1297+2: exec
----- exec builtin scan -----
1299+3: rmpipes 1
1302+4: call hselect
1306+3: pushparam im
1309+3: posargset 0
1312+7: pushconst `trimsec'
1319+3: posargset 1
1322+5: pushconst yes
1327+3: posargset 2
1330+3: addpipe
1333+2: redir
1335+2: exec
----- exec external task hselect -----
hselect > $\nimages="N1600_g_one.fits"\nfields="trimsec"\n
expr="yes"\nmissing="INDEF"\nmode="ql"\n$nargs=3\n
--------------------------------
----- task hselect -----
2947+3: call bye
2950+2: exec
----- exec builtin bye -----
1337+4: call scan
1341+10: pushconst `mscztvmark.imsec'
1351+3: indirposset 0
1354+4: getpipe
1358+2: redirin
1360+2: exec
----- exec builtin scan -----
1362+3: rmpipes 1
1365+4: pushparam imsec
1369+5: pushconst 2
1374+6: pushconst `,'
1380+4: pushparam imsec
1384+5: pushconst 2
1389+4: intrinsic stridx
1393+5: pushconst 1
1398+2: sub
1400+5: pushconst 3
1405+4: intrinsic substr
1409+4: assign trimsec
1413+7: pushconst `trimsec'
1420+7: pushconst `%d:%d'
1427+6: pushconst `tc2'
1433+6: pushconst `tc1'
1439+5: pushconst 4
1444+2: fscanf
1446+5: pushconst 2
1451+2: ne
1453+3: biff +46
1456+4: pushparam trimsec
1460+6: pushconst `-*'
1466+2: eq
1468+3: biff +17
1488+5: pushconst 1
1493+3: assign tc1
1496+3: pushparam nc
1499+3: assign tc2
1502+3: pushparam tc1
1505+3: pushparam tc2
1508+5: pushconst 2
1513+3: intrinsic min
1516+3: assign tc3
1519+3: pushparam tc1
1522+3: pushparam tc2
1525+5: pushconst 2
1530+3: intrinsic max
1533+3: assign tc2
1536+3: pushparam tc3
1539+3: assign tc1
1542+4: pushparam imsec
1546+6: pushconst `,'
1552+4: pushparam imsec
1556+5: pushconst 2
1561+4: intrinsic stridx
1565+5: pushconst 1
1570+2: add
1572+5: pushconst 1000
1577+5: pushconst 3
1582+4: intrinsic substr
1586+4: assign trimsec
1590+7: pushconst `trimsec'
1597+7: pushconst `%d:%d'
1604+6: pushconst `tl2'
1610+6: pushconst `tl1'
1616+5: pushconst 4
1621+2: fscanf
1623+5: pushconst 2
1628+2: ne
1630+3: biff +46
1633+4: pushparam trimsec
1637+6: pushconst `-*]'
1643+2: eq
1645+3: biff +17
1665+5: pushconst 1
1670+3: assign tl1
1673+3: pushparam nl
1676+3: assign tl2
1679+3: pushparam tl1
1682+3: pushparam tl2
1685+5: pushconst 2
1690+3: intrinsic min
1693+3: assign tl3
1696+3: pushparam tl1
1699+3: pushparam tl2
1702+5: pushconst 2
1707+3: intrinsic max
1710+3: assign tl2
1713+3: pushparam tl3
1716+3: assign tl1
1719+7: pushconst `[*,*]'
1726+4: assign imsec
1730+5: call sections
1735+3: pushparam im
1738+3: posargset 0
1741+7: pushconst `section'
1748+4: absargset option
1752+3: addpipe
1755+2: redir
1757+2: exec
----- exec external task sections -----
sections > $\nimages="N1600_g_one.fits"\noption="section"\n
nimages=1\nmode="ql"\n$nargs=1\n
--------------------------------
----- task sections -----
2947+5: pushconst 1
2952+4: assign nimages
2956+2: end
----- task sections -----
2947+3: call bye
2950+2: exec
----- exec builtin bye -----
1759+4: call scan
1763+10: pushconst `mscztvmark.imsec'
1773+3: indirposset 0
1776+4: getpipe
1780+2: redirin
1782+2: exec
----- exec builtin scan -----
1784+3: rmpipes 1
1787+4: pushparam imsec
1791+5: pushconst 2
1796+6: pushconst `,'
1802+4: pushparam imsec
1806+5: pushconst 2
1811+4: intrinsic stridx
1815+5: pushconst 1
1820+2: sub
1822+5: pushconst 3
1827+4: intrinsic substr
1831+4: assign trimsec
1835+4: pushparam trimsec
1839+6: pushconst `-*'
1845+2: eq
1847+3: biff +18
1868+4: pushparam imsec
1872+6: pushconst `,'
1878+4: pushparam imsec
1882+5: pushconst 2
1887+4: intrinsic stridx
1891+5: pushconst 1
1896+2: add
1898+5: pushconst 1000
1903+5: pushconst 3
1908+4: intrinsic substr
1912+4: assign trimsec
1916+4: pushparam trimsec
1920+6: pushconst `-*]'
1926+2: eq
1928+3: biff +18
1949+3: pushparam tc1
1952+5: pushconst 1
1957+2: ne
1959+3: pushparam tc2
1962+3: pushparam nc
1965+2: ne
1967+2: or
1969+3: pushparam tl1
1972+5: pushconst 1
1977+2: ne
1979+2: or
1981+3: pushparam tl2
1984+3: pushparam nl
1987+2: ne
1989+2: or
1991+3: biff +171
2165+4: call hselect
2169+3: pushparam im 2172+3: posargset 0
2175+9: pushconst `naxis1,naxis2'
2184+3: posargset 1
2187+5: pushconst yes
2192+3: posargset 2
2195+3: addpipe
2198+2: redir
2200+2: exec
----- exec external task hselect -----
hselect > $\nimages="N1600_g_one.fits"\n
fields="naxis1,naxis2"\nexpr="yes"\nmissing="INDEF"\n
mode="ql"\n$nargs=3\n
--------------------------------
----- task hselect -----
2947+3: call bye
2950+2: exec
----- exec builtin bye -----
2202+4: call scan
2206+9: pushconst `mscztvmark.nc'
2215+3: indirposset 0
2218+9: pushconst `mscztvmark.nl'
2227+3: indirposset 1
2230+4: getpipe
2234+2: redirin
2236+2: exec
----- exec builtin scan -----
2238+3: rmpipes 1
2241+3: pushparam c2
2244+3: pushparam c1
2247+2: sub
2249+3: pushparam nc
2252+5: pushconst 1
2257+2: sub
2259+2: div
2261+3: assign cs
2264+3: pushparam l2
2267+3: pushparam l1
2270+2: sub
2272+3: pushparam nl
2275+5: pushconst 1
2280+2: sub
2282+2: div
2284+3: assign ls
2287+5: call mscctran
2292+4: pushparam pix3
2296+3: posargset 0
2299+4: pushparam pix1
2303+3: posargset 1
2306+4: pushparam wcsim
2310+3: posargset 2
2313+3: pushparam wcs
2316+3: posargset 3
2319+7: pushconst `logical'
2326+3: posargset 4
2329+6: pushconst `1 2'
2335+4: absargset columns
2339+9: pushconst `hours native'
2348+4: absargset units
2352+6: pushconst `'
2358+4: absargset formats
2362+5: pushconst 7
2367+6: absargset min_sigdigit
2373+5: pushconst no
2378+4: absargset verbose
2382+2: exec
----- exec external task mscctran -----
mscctran\ninput="tmp$iraf1192ea"\noutput="tmp$iraf1192ca"\n
image="N1600_g_one.fits"\ninwcs="world"\noutwcs="logical"\n
columns="1 2"\nunits="hours native"\nformats=""\n
min_sigdigits=7\nverbose=no\nmode="ql"\n$nargs=5\n
--------------------------------
----- task mscctran -----
2947+4: call error
2951+5: pushconst 741
2956+3: posargset 0
2959+14: pushconst `Cannot open file (tmp$iraf1192ea)'
2973+3: posargset 1
2976+2: exec
----- exec builtin error -----
ERROR on line 186: Cannot open file (tmp$iraf1192ea)
msctvmark ()

 
Profile Email
 Quote
   
Content generated in: 0.10 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