×

INDI Library v1.9.8 Released (29 Sep 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Directly open FITS file from macOS in KStars

  • Posts: 21
  • Thank you received: 2
Directly open FITS file from macOS in KStars

Perhaps it's already possible and I have something misconfigured but when I double click in macOS's Finder on a .fits file then KStars itself opens (configured that well) but doesn't open the FITS viewer with the selected file. Would that be possible to configure/setup?

Thanks for the great work and port (Stephane Lucas) to macOS!

Bye now,
Jurgen

I'm on Build: 2020-07-18T05:21:35Z
The following user(s) said Thank You: Jasem Mutlaq
2 years 2 months ago #60434

Please Log in or Create an account to join the conversation.

AFAIK, this is working on Linux so for MacOS/Windows, KStars should register with which meta type it can read/open... though even in Linux it will always start a new process now whenever you click on a FITS file instead of re-using the existing process.
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
2 years 2 months ago #60437

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 138
While this might not be helpful in solving this particular issue with opening the images in the KStars preview window, the solution I use is Observatory for the Mac. codeobsession.com

It installs a fits/xisf plugin for preview functionality in the finder. So not only will it turn your image thumbnails into images, but you can also press the spacebar to preview the image in a large window.
-Andrew
––––––––––
Mac Observatory - All about using the Mac for Astrophotography: www.macobservatory.com
Astrobin: www.astrobin.com/users/Lead_Weight/
2 years 2 months ago #60446

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 2
Unfortunately KStars doesn't register on macOS as capable of opening .fits.
 
1 year 1 month ago #77014
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 527
  • Thank you received: 138
There are now multiple programs that will quick look fits files in the Finder. Some are even free, and do FITS and XISF. They're in the Mac App Store. Still does not resolve the issue of opening them into the Fits Preview of KStars. But I wonder if the Fits Preview could be released as a standalone app on the Mac?
-Andrew
––––––––––
Mac Observatory - All about using the Mac for Astrophotography: www.macobservatory.com
Astrobin: www.astrobin.com/users/Lead_Weight/
The following user(s) said Thank You: Jasem Mutlaq
1 year 1 month ago #77025

Please Log in or Create an account to join the conversation.

How do we make KStars on MacOS register opening FITS files? any ideas?
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 year 1 month ago #77039

Please Log in or Create an account to join the conversation.

  • Posts: 135
  • Thank you received: 22
In addition to what you said.....
I tried to add Kstars using the Open with dialogue, but even after I do that it doesnt seem to open the FITS viewer within Kstars. Just ends up opening Kstars and displays the sky chart :-(

Celestron Astromaster 130 on HEQ5 Pro mount, ZWO ASI224mc, 30mm guidescope with ASI120mm mini. All managed using Kstars/Ekos on RPi with Astroberry build.
1 year 1 month ago #77042

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 2
I see that the below command line works fine:
./KStars.app/Contents/MacOS/kstars test.fit
It opens up KStar with the image shown.

Releasing a separate version of KStars just to get this to work seems silly ;-)

On macOS the opening of files is related to the UTI of the file according to: en.wikipedia.org/wiki/Uniform_Type_Identifier#Looking_up_a_UTI
Below you can see that a file saved by KStars differs in the UTI from a file that is saved by another program: Siril. Note that the file name extensions also differ by the extra s in .fits in KStars vs .fit in Siril. Both are "FITS file" though.


[jd@Aok:Desktop]> mdls -name kMDItemContentType -name kMDItemContentTypeTree -name kMDItemKind test_saved_by_siril.fit
kMDItemContentType = "gov.nasa.gsfc.fits"
kMDItemContentTypeTree = (
"gov.nasa.gsfc.fits",
"public.image",
"public.data",
"public.item",
"public.content"
)
kMDItemKind = "FITS file"
[jd@Aok:Desktop]> mdls -name kMDItemContentType -name kMDItemContentTypeTree -name kMDItemKind test_saved_by_kstars.fits
kMDItemContentType = "dyn.ah62d4rv4ge80q4pysq"
kMDItemContentTypeTree = (
"public.item",
"dyn.ah62d4rv4ge80q4pysq",
"public.data"
)
kMDItemKind = "FITS file"
1 year 1 month ago #77043

Please Log in or Create an account to join the conversation.

  • Posts: 21
  • Thank you received: 2
Two "FITS file"s for testing can be found here . One saved by KStars and one by SiriL.
1 year 1 month ago #77044

Please Log in or Create an account to join the conversation.

Is there a way to register "FITS" MIMETYPE with MacOS to make it appear in the context menu in Finder for example?
Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
1 year 1 month ago #77067

Please Log in or Create an account to join the conversation.

Time to create page: 1.721 seconds