solve-field failing from bash file

58 views
Skip to first unread message

Llevante Llegar

unread,
Jun 17, 2015, 8:25:18 PM6/17/15
to astro...@googlegroups.com
To whom it may concern,

I am currently running in a weird problem when running solve-field from a bash file. The following code

#!/bin/bash

# First of all give an image to Astrometry to recongize it and have it printe the .wcs file
# Insert folder where the image is stored
imageFolder="~/PHD/PokerFlat2014/AzDecImages";
# Insert Name of the Image
imageName="/300032014Frame600000.fits";
# Call Astrometry solve fields to match image with night sky, N.B. there can be several interesting parameters that can be added, especially limitation on where to look. N.B. Astrometry solves for Right Ascension and Declination
# N.B. the images are stored in the same folder as where the original image
solve-field $imageFolder$imageName --overwrite


When ran as ./code gives me the following error:

augment-xylist.c:1346:augment_xylist Failed to open output file ~/PHD/PokerFlat2014/AzDecImages/300032014Frame600000.axy
 system: No such file or directory

Though when ran from terminal, i.e.  solve-field ~/PHD/PokerFlat2014/AzDecImages/300032014Frame600000.fits --overwrite doesn't give me any problem.
Could please someone point out what I am doing wrong? Fairly new at bash programming and seems kinda weird that happens.

Thanks
Best regards,
Lorenzo

 

Llevante Llegar

unread,
Jun 18, 2015, 3:02:37 AM6/18/15
to astro...@googlegroups.com
 Found the problem, apparently when solve-fields calls the augment-xylist.c the c code doesn't like the folder calling ~/etc...
Reply all
Reply to author
Forward
0 new messages