Hi Han,
As I am trying to implement ASTAP as a plate solver in my new python photometry program, I'm running into a problem.
The problem arrises also in the CMD. In fact, lots of my fits files have spaces in their names, and that does not work very well.
e.g;: astap.exe -f C:/AstroPie/light/M51_Test/M 51.fits
creates a ** M.ini** file with this contents : PLTSOLVD=F CMDLINE=astap.exe -f C:/AstroPie/light/M51_Test/M 51.fits ERROR=Error reading image file.
if I run this command in CMD : astap.exe -f 'C:/AstroPie/light/M51_Test/M 51.fits'
I get an error "123' from astap (see attachment)
If I plate solve the file in astap itself, there is no problem.
OMG.
should be " instead of '
pfft.
To get it working, you have to put the path between " ". Like this
astap.exe -f "C:/AstroPie/light/M51_Test/M 51.fits"
That prevent that the path is read as two seperate parameters. That should work.
Han
Log in to post a comment.
Hi Han,
As I am trying to implement ASTAP as a plate solver in my new python photometry program, I'm running into a problem.
The problem arrises also in the CMD.
In fact, lots of my fits files have spaces in their names, and that does not work very well.
e.g;:
astap.exe -f C:/AstroPie/light/M51_Test/M 51.fits
creates a ** M.ini** file with this contents :
PLTSOLVD=F
CMDLINE=astap.exe -f C:/AstroPie/light/M51_Test/M 51.fits
ERROR=Error reading image file.
if I run this command in CMD :
astap.exe -f 'C:/AstroPie/light/M51_Test/M 51.fits'
I get an error "123' from astap (see attachment)
If I plate solve the file in astap itself, there is no problem.
OMG.
should be " instead of '
pfft.
To get it working, you have to put the path between " ". Like this
astap.exe -f "C:/AstroPie/light/M51_Test/M 51.fits"
That prevent that the path is read as two seperate parameters. That should work.
Han