{"id":1108,"date":"2024-01-18T15:28:26","date_gmt":"2024-01-18T15:28:26","guid":{"rendered":"https:\/\/starscape-experiences.space\/?p=1108"},"modified":"2024-01-18T15:28:27","modified_gmt":"2024-01-18T15:28:27","slug":"installing-astroimagej-on-astroberry-pi4","status":"publish","type":"post","link":"https:\/\/starscape-experiences.space\/index.php\/2024\/01\/18\/installing-astroimagej-on-astroberry-pi4\/","title":{"rendered":"Installing AstroImageJ on Astroberry Pi4"},"content":{"rendered":"\n<p>I was looking to find a suitable plate solver for my fits files.  I want such software because I would like to image NEA, minor planets and comets and report them to the <a href=\"https:\/\/minorplanetcenter.net\" title=\"\">Minor Planet Center<\/a>. Eventually, I am hoping to get an observatory code from them. I also want to measure separation angles between double and multiple stars. <a href=\"http:\/\/www.astrometrica.at\/\" title=\"\">Astrometrica <\/a>is a great tool but it is paid software. Thus I switched to <a href=\"https:\/\/www.astro.louisville.edu\/software\/astroimagej\/\" title=\"\">AstroImageJ <\/a>an extension to <a href=\"https:\/\/imagej.net\/ij\/\" title=\"\">ImageJ <\/a>designed for astronomical images. <\/p>\n\n\n\n<p>AstroImageJ uses the nova.astrometry.net with stars from the <a href=\"https:\/\/groups.google.com\/g\/astrometry\/c\/5YmDdQVeURs\">Gaia-DR2 according to this post<\/a> (5200-series) and uses <a href=\"http:\/\/data.astrometry.net\/\">magnitudes in G<\/a> (the broadest of the Gaia photometric bandpasses). The issue is that KStars uses the Tycho-2 catalog (for offline plate solving) and I am unsure whether or not the positions match. <a href=\"https:\/\/www.cosmos.esa.int\/web\/gaia\/dr2\">I found only that proper motions and parallaxes in Gaia DR2 are independent of Tycho2<\/a> but nothing on positions. But if using the online solver with Kstars this should not be an issue as they both are going the nova.astrometry.net.<\/p>\n\n\n\n<p>Installing AstroImageJ on Linux machines is not an issue however the <strong>Pi4 Astroberry does not <strong>natively <\/strong>support JAVA versions higher than 11 and AstroImageJ 5.0.0 requires Java 17<\/strong>. And if you are looking for older versions to install that work on 11 you will not find any easily.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"596\" height=\"215\" src=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-8.png\" alt=\"\" class=\"wp-image-1110\" srcset=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-8.png 596w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-8-300x108.png 300w\" sizes=\"(max-width: 596px) 100vw, 596px\" \/><\/figure><\/div>\n\n\n<p>A bit of caution, the JRE that comes with the AstroImageJ archive does not work for the Pi4 as it is compiled for a different architecture.<\/p>\n\n\n\n<p>So, to make it work we must first download an <a href=\"https:\/\/github.com\/adoptium\/temurin17-binaries\/releases\/download\/jdk-17.0.1%2B12\/OpenJDK17U-jdk_arm_linux_hotspot_17.0.1_12.tar.gz\">OpenJDK 17 version for the arm architecture<\/a> and run the following commands that will create a folder containing all we need in <em>Downloads <\/em>on our Pi4.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd ~\/Downloads\/\n\nwget https:\/\/github.com\/adoptium\/temurin17-binaries\/releases\/download\/jdk-17.0.1%2B12\/OpenJDK17U-jdk_arm_linux_hotspot_17.0.1_12.tar.gz\n\ntar xzfv OpenJDK17U-jdk_arm_linux_hotspot_17.0.1_12.tar.gz<\/code><\/pre>\n\n\n\n<p>This will create a <em>jdk-17.0.1+12\/<\/em> folder in Downloads. In its <em>bin <\/em>subfolder we will find the java executable that we need to run AstrometryJ.<\/p>\n\n\n\n<p>Now we need to <a href=\"https:\/\/www.astro.louisville.edu\/software\/astroimagej\/installation_packages\/\">download the AstrometryJ<\/a> 5.0.0 and <a href=\"https:\/\/www.astro.louisville.edu\/software\/astroimagej\/installation_packages\/AstroImageJ_installation_linux.html\">follow the instructions here<\/a>.<\/p>\n\n\n\n<p>Before being able to run our AstroImageJ we must update the <em>AstroImageJ.sh<\/em> script found in <em>\/usr\/local\/AstroImageJ<\/em>. Two updates are required. First, the JAVA variable needs to point to our OpenJDK 17, and second, the JVM arguments specified in the <em>AstroImageJ.l4j.ini<\/em> do not work for the new Java (script raises an error) so we have to comment them out.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"589\" height=\"436\" src=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-11.png\" alt=\"\" class=\"wp-image-1113\" srcset=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-11.png 589w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-11-300x222.png 300w\" sizes=\"(max-width: 589px) 100vw, 589px\" \/><\/figure><\/div>\n\n\n<p>We are done, but to make things nice and tidy and runnable from the GUI, we need to create a menu entry for our new AstrometryJ. For this, from <em>Preferences -> Main Menu Editor<\/em>, we can add a new menu item under <em>Education<\/em>.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"705\" height=\"724\" src=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-9.png\" alt=\"\" class=\"wp-image-1111\" style=\"width:705px;height:auto\" srcset=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-9.png 705w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-9-292x300.png 292w\" sizes=\"(max-width: 705px) 100vw, 705px\" \/><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"689\" height=\"384\" src=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-10.png\" alt=\"\" class=\"wp-image-1112\" srcset=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-10.png 689w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-10-300x167.png 300w\" sizes=\"(max-width: 689px) 100vw, 689px\" \/><\/figure><\/div>\n\n\n<p>The command line I entered in the image above is \/<em>usr\/local\/AstroImageJ\/AstroImageJ<\/em>.<\/p>\n\n\n\n<p>Below you can see AstroImageJ running and displaying one of my fits files showing M42.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"602\" src=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-1024x602.png\" alt=\"\" class=\"wp-image-1114\" srcset=\"https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-1024x602.png 1024w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-300x176.png 300w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-768x451.png 768w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-1536x903.png 1536w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12-365x215.png 365w, https:\/\/starscape-experiences.space\/wp-content\/uploads\/2024\/01\/image-12.png 1567w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure><\/div>\n\n\n<p>If you enjoyed this post consider <strong>following <\/strong>us on <a href=\"https:\/\/www.facebook.com\/profile.php?id=100085743827571\">Facebook<\/a>, <a href=\"https:\/\/www.youtube.com\/channel\/UCR6DmJ5GoOZe1KOYyCVAE0g\">Youtube<\/a>, and <a href=\"https:\/\/twitter.com\/marc_frincu\">Twitter <\/a>or <strong>donating <\/strong>on <a href=\"https:\/\/www.patreon.com\/marc_frincu\">Patreon<\/a>. Also, stay tuned for <strong>public events<\/strong> Marc hosts regularly on <a href=\"https:\/\/www.eventbrite.co.uk\/o\/marc-frincu-starscape-53843261853\">Eventbrite<\/a>.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style1 like-1108 jlk' href='javascript:void(0)' data-task='like' data-post_id='1108' data-nonce='8aec206929' rel='nofollow'><img class='wti-pixel' src='https:\/\/starscape-experiences.space\/wp-content\/plugins\/wti-like-post\/images\/pixel.gif' title='Like' \/><span class='lc-1108 lc'>0<\/span><\/a><\/div><\/div> <div class='status-1108 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>I was looking to find a suitable plate solver for my fits files. I want such software because I would<\/p>\n<p><a href=\"https:\/\/starscape-experiences.space\/index.php\/2024\/01\/18\/installing-astroimagej-on-astroberry-pi4\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Installing AstroImageJ on Astroberry Pi4<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":1114,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/posts\/1108"}],"collection":[{"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/comments?post=1108"}],"version-history":[{"count":2,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/posts\/1108\/revisions"}],"predecessor-version":[{"id":1116,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/posts\/1108\/revisions\/1116"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/media\/1114"}],"wp:attachment":[{"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/media?parent=1108"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/categories?post=1108"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/starscape-experiences.space\/index.php\/wp-json\/wp\/v2\/tags?post=1108"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}