Welcome to iraf.net Wednesday, April 24 2024 @ 02:18 AM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 agetim problem
   
vall
 10/05/2011 09:35AM (Read 8112 times)  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
Hello,recently I have been unable to use the agetim command with IRAF 2.14. No image is downloaded and a short error message is saved instead of FITS image:[quote:5bde04e0b7]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>302 Found</title>
</head><body>
<h1>Found</h1>
<p>The document has moved <a href="http://www4.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/cadcbin/dss/dss-server.py?ra=13:36:47.60&amp;dec=5:08:30.3&amp;mime-type=application/x-fits&amp;x=10.0&amp;y=10.0">here</a>.</p>
<hr>
<address>Apache/2.2.9 (Fedora) Server at www4.cadc-ccda.hia-iha.nrc-cnrc.gc.ca Port 80</address>
</body></html>
[/quote:5bde04e0b7]In the same time, If I copy the link directly to Firefox, for example:
[quote:5bde04e0b7]
cadcwww.hia.nrc.ca/cadcbin/dss-server?ra=13:00:00&dec=31:00:00&mime-type=application/x-fits&x=10&y=10
[/quote:5bde04e0b7]everything works and the FITS image is downloaded. So, the problem must be related to how IRAF access the server but I have not been able to figure it out. Any idea what could be the problem?

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
It would appear that the CADC servers are now dynamically farming out the job on their servers. A '302' code is an HTTP redirection, and if you follow the links you eventually get to the file URL, this is what your web browser is doing to get the file. However, IRAF is reading directly from the socket and isn't acting as a proper HTTP client in following the redirection code.The good new is that this is fixed now and I can provide you with a patched binary for a Linux of OSX system if you tell what platform you're on. The bad news is that it isn't practical to provide a patch for v2.14 so you may see similar problems from e.g. MSCRED or other tasks that use the problem interface.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
Today I installed IRAF 2.15 on Fedora 15 64bit.. Everything went fine and I could also install the external packages etc. AGETIM still does not work, so I understand the fix is not included in the current v2.15 distribution and I still need the patch? In this case, please send it to me. I was still using v2.14 mostly because ESO SCISOFT made the installation easy and included all external packages and other software one may need. Now I plan to switch to v2.15One thing I noticed that when I run IRAF V2.15 the greeting message on start-up still says it is ver. 2.14.1. I guess this is a bug?
[quote:ca384ecc08]
NOAO/IRAFNET PC-IRAF Revision 2.14.1 Mon Sep 15 10:12:05 MST 2008
This is the RELEASED version of IRAF V2.14 supporting PC systems.
Welcome to IRAF. To list the available commands, type ? or ??. To get
detailed information about a command, type `help <command>'. To run a
command or load a package, type its name. Type `bye' to exit a
package, or `logout' to get out of the CL. Type `news' to find out
what is new in the version of the system you are using. Visit https://iraf.net if you have questions or to report problems.
[/quote:ca384ecc08]

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
[quote:3ef6d15dc5]Today I installed IRAF 2.15 on Fedora 15 64bit.. Everything went fine and I could also install the external packages etc. AGETIM still does not work, so I understand the fix is not included in the current v2.15 distribution and I still need the patch? In this case, please send it to me. ....[/quote:3ef6d15dc5]Right, the problem was fixed right before my last post, but you didn't say what platform you were using. It's fixed in the upcoming v2.16 system, but not in any version out now. Anyway, the patched binary is athttps://iraf.net/ftp/pub/x_astcat.e.LINUX64
https://iraf.net/ftp/pub/x_astcat.e.LINUX
https://iraf.net/ftp/pub/x_astcat.e.MACINTELDownload the LINUX64 version and install in the $iraf/noao/bin.linux64 directory as just 'x_astcat.e'.[quote:3ef6d15dc5]One thing I noticed that when I run IRAF V2.15 the greeting message on start-up still says it is ver. 2.14.1. I guess this is a bug?
[/quote:3ef6d15dc5]This probably just means that when you type 'cl' you're still picking up the SCISOFT installation. Do a "which cl" and if it points to the IRAF path, edit your .cshrc file to remove scisoft from the path and/or disable the source of the scisoft setup file.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
thanks for the binaries, but they do not seem to solve the problem. At first something indeed went wrong with the installation of v2.15. Before starting I removed the sourcing of SCISOFT setup file and rebooted. The installation went OK and typing 'cl' was picking the right script at /usr/local/bin but yet somehow the old binaries were executed! Weird!I have now removed SCISOFT IRAF and made fresh installation of v2.15. Now things run OK, except that the patched astcat binary still does not work correctly and I still get the same error. Any test that I can do to diagnose the problem?

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I guess I have too many IRAF versions....Try getting the binary again, the previous one didn't use the patch.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:cba8f6f3aa="fitz"]I guess I have too many IRAF versions....Try getting the binary again, the previous one didn't use the patch.[/quote:cba8f6f3aa]I got the new binary and it is working now. Thanks. One inconvenience is that the images are saved in the zero extension of the FITS file and to display it I have to do 'display image[0]'. Since this is a simple FITS file maybe it is unnecessary to have MEF?

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
But it's not a simple FITS file, there is a bintable extension containing some mask in the file as well. MEF might inconvenient for the image but there's not much we can do about that, it's up to the data provider.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
now some problems with agetcat appeared:
[quote:358696e7ad]
Opening catalog database astcat$lib/catdb.dat
Selecting catalog usno2@cadcPANIC in `/iraf/iraf/noao/bin.linux64/x_astcat.e': Memory fwa has been corrupted
[/quote:358696e7ad][quote:358696e7ad]
Opening catalog database astcat$lib/catdb.dat
Selecting catalog usnob1@noaoPANIC in `/iraf/iraf/noao/bin.linux64/x_astcat.e': Salloc underflow
[/quote:358696e7ad]

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Could you post whatever parameters you used, I'm not able to reproduce the problem:[code:1:4a2459cdd0]astcat> agetcat regions default catalogs="usno2@cadc"Opening catalog database astcat$lib/catdb.dat
Selecting catalog usno2@cadc
Copying region 1 to file reg001.cat.1
astcat> type regions
13:36:47.60 05:08:30.3 10.0 10.0
[/code:1:4a2459cdd0]

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
I had this:[code:1:ba46eefd2b]
13.613222222222 5.14175 10. 10. hours degrees
[/code:1:ba46eefd2b]but I also tried with your file and I got the same error. From my code agetcat is called like this:
[code:1:ba46eefd2b]
agetcat (refim,
"tmp.cat", aregpars="", catalogs="usno2@cadc", standard=yes, filter=yes,
afiltpars="", fexpr="mag1 <= "//mcut, update=no, verbose=yes, catdb=")_.catdb")
[/code:1:ba46eefd2b]"mcut" is a number, and "refim" is an image with WCS that I download with "agetim". I tried to run agetcat outside my script but I always get the same error.

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Would you mind telling me the value of 'mcut' you used, posting the AFILTPARS parameters (e.g. "cl> dpar afiltpars") if you changed something other than the 'fexpr', and posting your 'refim' image (or tell me how/where you got it) to the anonftp at ftp://iraf.noao.edu/pub? I'm still not able to reproduce the problem.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:c2164fec85="fitz"]Would you mind telling me the value of 'mcut' you used, posting the AFILTPARS parameters (e.g. "cl> dpar afiltpars") if you changed something other than the 'fexpr', and posting your 'refim' image (or tell me how/where you got it) to the anonftp at ftp://iraf.noao.edu/pub? I'm still not able to reproduce the problem.[/quote:c2164fec85]it the FTP I uploaded the file: agetcat_issue.tar.gz it has the image and my astrometry script among others. My script automatically downloads images from "dss1@cadc", extracts the 0 extension that hold the image and works with that image.mcut = 16 or 19, I tried bothAFILTPARS are the default values. I did not change anything there because when the script was working before I didn't have to change AFILTPARS. [code:1:c2164fec85]
afiltpars.fsort = ""
afiltpars.freverse = no
afiltpars.fexpr = "yes"
afiltpars.fields = "f[*]"
afiltpars.fnames = ""
afiltpars.fntypes = ""
afiltpars.fnunits = ""
afiltpars.fnformats = ""
afiltpars.fosystem = ""
afiltpars.fira = "ra"
afiltpars.fidec = "dec"
afiltpars.foraunits = ""
afiltpars.fodecunits = ""
afiltpars.foraformat = ""
afiltpars.fodecformat = ""
afiltpars.fixp = "xp"
afiltpars.fiyp = "yp"
afiltpars.fixc = "xc"
afiltpars.fiyc = "yc"
afiltpars.foxformat = "%10.3f"
afiltpars.foyformat = "%10.3f"
afiltpars.mode = "ql"
[/code:1:c2164fec85]

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I still cannot reproduce the exact error, instead I get an "invalid operand in expression" message. Looking at the service call itself, I see that the URL to the usno2@cadc catalog returns a "404 Not Found" message meaning the service isn't available anymore.If I use e.g. usnob1@usno as the catalog (and then 'b1mag' in the expression) things seem to work as expected.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:07e8075326="fitz"]I still cannot reproduce the exact error, instead I get an "invalid operand in expression" message. Looking at the service call itself, I see that the URL to the usno2@cadc catalog returns a "404 Not Found" message meaning the service isn't available anymore.If I use e.g. usnob1@usno as the catalog (and then 'b1mag' in the expression) things seem to work as expected.[/quote:07e8075326]I tried usnob1@usno but I get the same error. Everything I try gives PANIC. Any checks I can do here? How can I check the service call to see that it actually connects to the servers?

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Let me know if the file size/date are different on your system:[code:1:6a6f40c6be]ecl> dir noaobin$x_astcat.e l+
xb-rwr-r- fitz 4225344 Oct 7 21:36 noaobin$x_astcat.e[/code:1:6a6f40c6be]

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:dc811b20a7="fitz"]Let me know if the file size/date are different on your system:[code:1:dc811b20a7]ecl> dir noaobin$x_astcat.e l+
xb-rwr-r- fitz 4225344 Oct 7 21:36 noaobin$x_astcat.e[/code:1:dc811b20a7][/quote:dc811b20a7]yes, they are different:[code:1:dc811b20a7]
ecl> dir noaobin$x_astcat.e l+
xb-rwrwr- vall 4232292 Oct 8 19:12 noaobin$x_astcat.e
[/code:1:dc811b20a7]

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Try getting the binary again. You'll get a proper "Network query failed" message which is because the CADC catalog isn't available as I've described before, but no memory panic. You'll still need to use a different catalog.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:15f85d3fb1="fitz"]Try getting the binary again. You'll get a proper "Network query failed" message which is because the CADC catalog isn't available as I've described before, but no memory panic. You'll still need to use a different catalog.[/quote:15f85d3fb1]I got the new binary but still not much luck. The "Network query failed" message works as expected, but for the other catalogs I still get the memory panic. I start to wonder if there are some issues with my system, but all other tasks that I tried since installing v2.15 work fine, e.g. various tasks in DAOPHOT, 1D and 1D spec packages. Also agetim that is part of the problematic astcat binary now work fine.[code:1:15f85d3fb1]
astcat> agetcat ttt default cata="usno2@cadc" filter-Opening catalog database astcat$lib/catdb.dat
Selecting catalog usno2@cadc
Network query failed
astcat> agetcat ttt default cata="usnob1@usno" filter-Opening catalog database astcat$lib/catdb.dat
Selecting catalog usnob1@usnoPANIC in `/iraf/iraf/noao/bin.linux64/x_astcat.e': Salloc underflowastcat> agetcat ttt default cata="twomass@irsa" filter-Opening catalog database astcat$lib/catdb.dat
Selecting catalog twomass@irsaPANIC in `/iraf/iraf/noao/bin.linux64/x_astcat.e': Salloc underflow
[/code:1:15f85d3fb1]

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
Sorry, but try the binaries one more time. I found the stack memory wasn't being initialized in the routine.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:08210e0534="fitz"]Sorry, but try the binaries one more time. I found the stack memory wasn't being initialized in the routine.[/quote:08210e0534]Thanks. It is a progress but not quite there yet. Now I no longer have memory panic, but no catalog data are downloaded. Only the catalog header is saved into the output file. I tried several catalogs (with "filter=no" to be sure filtering is not the issue) and every time the same result. To be sure, I also loaded the image directly into DS9 and downloaded the catalog data with DS9. This worked fine, so the catalogs contain stars in the area, but for some reason agetcat fails to download it.

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I'm gonna quit IRAF and start working on cloning so at least one of me has time to do this right the first three times I try .....Anyway, made another fix and this time verified I get the data back. Please download the binaries again, sorrt for the trouble.

 
Profile Email
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
[quote:45e8a66765="fitz"]I'm gonna quit IRAF and start working on cloning so at least one of me has time to do this right the first three times I try .....Anyway, made another fix and this time verified I get the data back. Please download the binaries again, sorrt for the trouble.[/quote:45e8a66765]It seems to work now! Many thanks for the efforts to fix it.

 
Profile Email Website
 Quote
vall
 10/05/2011 09:35AM  
+++--
Chatty

Status: offline


Registered: 09/28/2006
Posts: 49
I am not sure if this is a problem, but the downloaded catalogs look like that:[code:1:262210dd74]
# BEGIN CATALOG HEADER
# catdb astcat$lib/catdb.dat
# catname usnob1@usno
# nquery 3
# ra 204.19853 degrees
# dec 5.14166 degrees
# radius 0.083 degrees
# type stext
# nheader 1
# csystem J2000
# nfields 14
# id 1 0 c INDEF %12s
# ra 2 0 r hours %11.8f
# dec 3 0 r degrees %11.7f
# sra 4 0 d milliarcsecs %3d
# sde 5 0 d milliarcsecs %3d
# mura 6 0 r INDEF %4.1f
# mudec 7 0 r INDEF %4.1f
# smura 8 0 r INDEF %4.1f
# smudec 9 0 r INDEF %4.1f
# b1mag 10 0 r INDEF %7.3f
# r1mag 11 0 r INDEF %7.3f
# b2mag 12 0 r INDEF %7.3f
# r2mag 13 0 r INDEF %7.3f
# i2mag 14 0 r INDEF %7.3f
# END CATALOG HEADER
#
FLGMASK1= 0xffffffff /Upper Bit Mask for Flags
COLBITS = 0x000010af /Column Selection Bits
END
1 id| RA| DEC| sRa| sDec|sRaEp|sDeEp| MuRA| MuDEC| sMuRA| sMuDE| B1| R1| B2| R2| I2
2 id| hh.hhh| dd.ddd| mas| mas| mas| mas| mas/yr| mas/yr| mas/yr| mas/yr| mag| mag| mag| mag| mag
3 1| 2| 3| 4| 5| 6| 7| 8| 9| 10| 11| 12| 13| 14| 15| 16
0951-0220458 13.60768833 +05.1370389 164 285 196 358 -26.0 16.0 4.0 8.0 20.850 20.090 0.000 19.590 19.330
0951-0220460 13.60772815 +05.1342750 115 50 129 53 6.0 -6.0 3.0 1.0 0.000 19.100 0.000 19.430 18.660
0951-0220462 13.60800907 +05.1499833 341 689 398 812 -140.0 110.0 11.0 23.0 0.000 19.720 16.890 0.000 19.760
0951-0220463 13.60808204 +05.1496556 36 56 36 56 0.0 0.0 0.0 0.0 17.200 15.820 0.000 15.950 15.940
[/code:1:262210dd74]I am not sure if the first 5 lines after the header should be there because in v2.14 those lines were not in the output. They create me problems when I use "fields" task to select lines from the catalogs.

 
Profile Email Website
 Quote
fitz
 10/05/2011 09:35AM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I think they may be working on the service. For about the last 24 hours I don't get any response from them at all, and before my last message I didn't see those extra lines in the output. Using 'usnob1@noao' as the catalog service works as expected so I don't think it's the code that reads the results.

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