UCAC4 to fits

56 views
Skip to first unread message

Luís Filipe

unread,
Nov 25, 2022, 6:17:27 AM11/25/22
to astrometry
Hello,
I am trying to use the UCAC4 catalog, but I would like the files to be in fits format, instead of the binary that they are given.
I found that there was a function ucac4tofits in astrometry that does this, but I can't manage to use it. If i try to run it from the terminal, it does not find the command.

When I use other commands like wcs-rd2xy, it works.

How can I use astrometry to transform the binary files from UCAC4 to fits?

Thank You,
Luís

Dustin Lang

unread,
Nov 25, 2022, 9:17:35 AM11/25/22
to Luís Filipe, astrometry
Hi,

The ucac4tofits program isn't built by default.  You would have to do (in the astrometry.net source directory):
cd catalogs
make ucac4tofits

cheers,
dustin


--
You received this message because you are subscribed to the Google Groups "astrometry" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/e29ec158-28d7-465f-84c7-fbc47909b16dn%40googlegroups.com.

Dustin Lang

unread,
Nov 25, 2022, 9:18:11 AM11/25/22
to Luís Filipe, astrometry
PS you could also try downloading it in FITS format from

Dustin Lang

unread,
Nov 25, 2022, 1:45:25 PM11/25/22
to astrometry
If you get this:


luis@luis-VirtualBox:~/Desktop/astrometry.net-0.89/catalogs$ make ucac4tofits
gcc  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.89"' -DAN_GIT_DATE='"Mon_Jan_17_07:47:26_2022_-0500"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"'     -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib    -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I. -I../util    -c -o 2mass.o 2mass.c
In file included from 2mass.c:10:
../include/astrometry/os-features.h:8:10: fatal error: astrometry/os-features-config.h: No such file or directory
    8 | #include "astrometry/os-features-config.h"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: 2mass.o] Error 1

then please try

cd ..
make reconfig
cd catalogs
make ucac4tofits


cheers,
dustin

Luís Filipe

unread,
Nov 25, 2022, 2:42:28 PM11/25/22
to astrometry

Hello,
I get the same error when i run make on the astrometry folder.~

Tried:
cd..
make reconfig
cd catalogs
make ucac4tofits

and 

cd..
make
cd catalogs
make ucac4tofits

cc  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.89"' -DAN_GIT_DATE='"Mon_Jan_17_07:47:26_2022_-0500"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"'     -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib    -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I. -I../util    -c -o 2mass.o 2mass.c
rm -f libcatalogs.a
ar rc libcatalogs.a openngc.o brightstars.o constellations.o tycho2-fits.o tycho2.o usnob-fits.o usnob.o nomad.o nomad-fits.o ucac3-fits.o ucac3.o ucac4-fits.o ucac4.o ucac5-fits.o ucac5.o 2mass-fits.o 2mass.o hd.o constellation-boundaries.o
ranlib libcatalogs.a
make: *** No rule to make target '../gsl-an/libgsl-an.a', needed by 'ucac4tofits'.  Stop.

Dustin Lang

unread,
Nov 25, 2022, 2:56:45 PM11/25/22
to Luís Filipe, astrometry
oh, yes, sorry, can you do a "git pull" and try again?


Luís Filipe

unread,
Nov 25, 2022, 3:12:52 PM11/25/22
to astrometry
Sorry, I still get the same error.

Dustin Lang

unread,
Nov 25, 2022, 3:35:04 PM11/25/22
to Luís Filipe, astrometry
uhh, weird?

Okay, can you try

cd ..
export SYSTEM_GSL=no
make
cd catalogs
make ucac4tofits


Luís Filipe

unread,
Nov 25, 2022, 4:15:55 PM11/25/22
to astrometry
Hello,

Now it says this:

gcc  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline -I../include -I../include/astrometry -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -DAN_GIT_REVISION='"0.89"' -DAN_GIT_DATE='"Mon_Jan_17_07:47:26_2022_-0500"' -DAN_GIT_URL='"https://github.com/dstndstn/astrometry.net"'     -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib    -I../include -I../include/astrometry -I../gsl-an -I/usr/include/wcslib -I. -I../util    -c -o 2mass.o 2mass.c
rm -f libcatalogs.a
ar rc libcatalogs.a openngc.o brightstars.o constellations.o tycho2-fits.o tycho2.o usnob-fits.o usnob.o nomad.o nomad-fits.o ucac3-fits.o ucac3.o ucac4-fits.o ucac4.o ucac5-fits.o ucac5.o 2mass-fits.o 2mass.o hd.o constellation-boundaries.o
ranlib libcatalogs.a
gcc -o ucac4tofits  -g -Wall -ffinite-math-only -fno-signaling-nans -pthread -march=native -O3 -fomit-frame-pointer -DNDEBUG -fpic -Winline ucac4tofits.o libcatalogs.a ../util/libanfiles.a ../libkd/libkd.a ../util/libanutils.a ../qfits-an/libqfits.a ../util/libanbase.a ../gsl-an/libgsl-an.a          -lwcs -lm -lm       -lwcs -lm -lm -lm -lbz2

It doesn't seem like an error, but when i now put ucac4tofits on terminal, it still says command not found

Dustin Lang

unread,
Nov 25, 2022, 5:23:34 PM11/25/22
to Luís Filipe, astrometry
you would have to run
 ./ucac4tofits

because it's in the current directory, not in your PATH.




Luís Filipe

unread,
Nov 26, 2022, 4:43:42 PM11/26/22
to astrometry
Hello, 
Sorry to bother again. I only tried to use it again now.
When i try on a single portion of the catalog, to test, I have this error:

luis@luis-VirtualBox:~$ /home/luis/Desktop/astrometry.net-0.89/catalogs/ucac4tofits  /home/luis/Desktop/Catalogos/CDS-322A/UCAC4/u4b/z750
Nside = 9, using 972 healpixes.
Reading /home/luis/Desktop/Catalogos/CDS-322A/UCAC4/u4b/z750
ucac4tofits.c:131:main: bzip2 error: code -5

Dustin Lang

unread,
Nov 27, 2022, 2:12:18 PM11/27/22
to Luís Filipe, astrometry
Are you passing the filenames of the *.bz2 files?  That's what ucac4tofits expects.


You received this message because you are subscribed to a topic in the Google Groups "astrometry" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/astrometry/QbBz9tcncIc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to astrometry+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/astrometry/464a5035-9d46-4d21-b241-d0fe6b027f07n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages