Post a reply

This question is a means of preventing automated form submissions by spambots.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is ON
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: HNS_FV -> ASTAP


by RuediB » 18 Mar 2018, 11:19

Hello Han,
Now it works perfectly and it only takes a few seconds. Many Thanks
Clear Skies, Ruedi


by han.k » 17 Mar 2018, 14:03

Yes many thing where already available like streching.

Note. APT uses the same file name. If you rename the FITS file you can display several images on the HNSKY map. HNSKY will display all FITS images found in the selected folder.

Clear skies, Han


by RuediB » 17 Mar 2018, 13:50

Wow! Your weeks are extremely short :lol:
Sounds very good, i’ll test it tomorrow.
Thanks and CS


by han.k » 17 Mar 2018, 13:39

Done in version 0.9.10. It takes now only seconds. Here a very brief manual

It is possible to rename the ASTAP.EXE program as Platesolve2.exe and call it instead of PlateSolve2. The solution will then automatically be written to the FITS file. The plate solution is read from the APM file produced by PlateSolve2. To speed up displaying the FITS image in e.g. HNSKY, the FITS images are stretched to ASTAP window size. Smaller window, smaller FITS files. ASTAP settings are saved when you leave the program and also the window size.

Example for APT:
Rename or copy astap.exe to platesolve2.exe. Then select in APT, pointcraft, settings the directory where this surrogate platesolve2.exe (=astap.exe) is located.

Note that APT saves the pointcraft image to solve to: .... TemporaryStorage\ImageToSolve.jpg

Set in HNSKY the FITS path to .... TemporaryStorage\ImageToSolve.jpg (This is the location where APT saves the pointcraft image to solve to)
After solving, either refresh HNSKY with space bar or move to map to the object or open the FITS file in the file menu.

1) ASTAP load the image from the command line. (from APT)
2) ASTAP executes PlateSolve2 with the command.
3) While solving is running, it streches the image to window size.
4) If the solution is generated by PlateSolve2, the APM file is read and the window is saved to a FITS file (same name but ending with .fit) with the solution keywords adapted to the new window size.


by han.k » 16 Mar 2018, 21:37

Hello Ruedi,

Okay, I will look into this and if If I can speed it up by doing so. How many pixels do your images have? It would be much better if I reduce the size for displaying in HNSKY to something like 500x300 pixels. That will also speedup the process and keep HNSKY responsive and fast.

Give me a few weeks.



by RuediB » 16 Mar 2018, 16:41

Hi Han,

Here is Ivo's Answer. I think it would go faster if ASTAP calls Platesolve2 with the .jpg and create the .fit while Platesolve2 is working, as you mentioned before.


by han.k » 08 Mar 2018, 10:00

Place a feature request for the FITS format and use of the FITS header keywords on the ideas box.

JPEG is not ideal. Lossless formats like PNG or TIFF would preserve the image better. To allow APT to write FITS files will probably will take some programming on pixel level. You can't use standard compiler libraries as for JPEG or PNG.

The ASTAP program reads the jpeg file and convert it to a FITS file, calls PlateSolve2 with the new FITS file and updates the FITS header. I think I could gain some speed by first calling PlateSolve2 with jpeg file and then create a FITS files from the jpeg and add the solution to the header. In any case APT could do it more efficient.


by RuediB » 08 Mar 2018, 05:50

Thank you Han,

now it works how it should. The only thing you could improve is the speed, of course my Laptop is not the newest, but it takes 104sec overall to solve the Image. Only 4sec are for Platesolve2. I think having a .fit directly out of APT would speedup the things a lot.

But anyway thank you for your work and your always quick reply


by han.k » 05 Mar 2018, 09:31

Just two more things.

- To redraw the new FITS file produced just hit the space bar in HNSKY.
- Besides rotating the map to the place imaged, you can also open the fits file in HNSKY FILE menu to go to the position.
- Since APT produces JPG files with limited amount of grey/color, it is better to set contrast/brightness already corrects in APT.

It would be better if Ivo could modify APT to write FITS directly and add the solution in the header, but this method works.

HNSKY will be a little slow with FITS files of large resolution since it calculates the warped position of each pixel using a lot of math. It can be limited by zooming out since it will skip pixels.

Clear skies, Han


by han.k » 04 Mar 2018, 23:50

Solved with ASTAP version 0.9.7. I didn't write the solved FITS files in a multi of 2880 bytes (record). HNSKY has becomes more critical of the FITS format but now it works with ASTAP. 0.9.7. So download this version.

Please tell me if it doesnt work'.

Clear skies,