From patchwork Sat Apr 20 23:22:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 63235 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 6EA6127BBE2; Sun, 21 Apr 2024 00:27:09 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 2D4A127BBED for ; Sun, 21 Apr 2024 00:27:05 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryK6N-0004uf-IT; Sat, 20 Apr 2024 19:26:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryK6C-0004nJ-Ry for guix-patches@gnu.org; Sat, 20 Apr 2024 19:26:25 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ryK6C-0002zv-K0 for guix-patches@gnu.org; Sat, 20 Apr 2024 19:26:24 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ryK6R-0000a5-EW; Sat, 20 Apr 2024 19:26:39 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#70489] [PATCH 46/47] gnu: Add scamp. Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, bavier@posteo.net, sharlatanus@gmail.com, guix-patches@gnu.org Resent-Date: Sat, 20 Apr 2024 23:26:39 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70489 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 70489@debbugs.gnu.org Cc: Sharlatan Hellseher , Andreas Enge , Eric Bavier , Sharlatan Hellseher X-Debbugs-Original-Xcc: Andreas Enge , Eric Bavier , Sharlatan Hellseher Received: via spool by 70489-submit@debbugs.gnu.org id=B70489.17136555801944 (code B ref 70489); Sat, 20 Apr 2024 23:26:39 +0000 Received: (at 70489) by debbugs.gnu.org; 20 Apr 2024 23:26:20 +0000 Received: from localhost ([127.0.0.1]:39111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK65-0000Ua-EX for submit@debbugs.gnu.org; Sat, 20 Apr 2024 19:26:19 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]:51491) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ryK3Z-0008TI-66 for 70489@debbugs.gnu.org; Sat, 20 Apr 2024 19:23:43 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-41a2a43c800so535895e9.3 for <70489@debbugs.gnu.org>; Sat, 20 Apr 2024 16:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713655400; x=1714260200; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YfSXAwnQcfIxWRZ+tlP41tfb/zQLDEYDJIhxiWLKgNA=; b=HoRMvuAqibr81Zgt6T9YOdOUk812C+VzcFjqZe4IfWTGwCIRQ9HuwSBZ4OMNOVrk5P dvMbiPoNMDvsejiwXGn9v8bazJdp8BafviG8dadd22Il8SLHDcnq4p1k+LQtZTvwXnPJ ra2HZSucx0VD6Imrd8oWtoZwjjZ16mlrUPOaikeh8eIXWNxxGeX/L0e459+eRHNuJpK7 JFLX+nTN0n/qqYj+ZZyFBISO4YzdliLoai/LZ2inVFt3v9RGR4e6/nxkHz38ENGYnfc/ EJnQFneiiFC9NDHUC/FnTAE/JMxUrgUVKxSu60qAfdqjxJVchSi7/7T+U8aJRtGtLpuh bzPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713655400; x=1714260200; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=YfSXAwnQcfIxWRZ+tlP41tfb/zQLDEYDJIhxiWLKgNA=; b=DYCIPTvpnTZsbycP9k/M9992hWIB4p3r/yW3/agRKssyycyOTUJ8gg6sAghwCQwiqR mh5gi0QmOq8o1k7slobFKNqUuBcVeue7T0KCZUQnsiqZuol5fu3IgT28TVJ/2E457vHN voNuiH63l2AzkEwLiUemKT210Aory+7up1HsIaLk2DTYUQPcoN8kKjIz0Jkp4jjSQJQ/ yqyDQP6LAYVOhmQRlEFN/kEdPF6Obfpy1dzzYC7ekRajOoDEqJpaDiXiRAgxhLiE6SUl ienbjjRFX9L/F0UcqvALVbv54s8oKqqLt+tuvz3RpWNwEhVOLIiupea/GwZ9fj88Sfpq NoBg== X-Gm-Message-State: AOJu0YwPpmVCzqdk9/6dlOuftQX8P5uXqtMm+zLtr2AxzUlMx754NjwE iPFyGVxmpe8zvj8NS1YcZ19MsILrTMgoTOcmJkwZwVSNUld0CVbCnv0PIcaq X-Google-Smtp-Source: AGHT+IEreklAXJfxbD1kMtw/koadXtXr4x7ae51LY4CXaHvjBSHqN+ZVqR0qQ1UxZ11G/edWQfPJdA== X-Received: by 2002:a05:600c:3b10:b0:418:7028:f4d1 with SMTP id m16-20020a05600c3b1000b004187028f4d1mr3327766wms.29.1713655400476; Sat, 20 Apr 2024 16:23:20 -0700 (PDT) Received: from localhost.localdomain (cpc100856-bagu15-2-0-cust368.1-3.cable.virginm.net. [82.25.93.113]) by smtp.gmail.com with ESMTPSA id g13-20020a05600c310d00b004196c93da22sm6474751wmo.2.2024.04.20.16.23.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 20 Apr 2024 16:23:20 -0700 (PDT) From: Sharlatan Hellseher Date: Sun, 21 Apr 2024 00:22:35 +0100 Message-ID: <9125dd9398bc532b2048a8575927011b33199199.1713654571.git.sharlatanus@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: References: MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/astronomy.scm (scamp): New variable. Change-Id: If32adb281017858b0e7d5816cecb509af3cec835 --- gnu/packages/astronomy.scm | 80 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/gnu/packages/astronomy.scm b/gnu/packages/astronomy.scm index 9d82bd4c89..a9e0583f39 100644 --- a/gnu/packages/astronomy.scm +++ b/gnu/packages/astronomy.scm @@ -69,6 +69,7 @@ (define-module (gnu packages astronomy) #:use-module (gnu packages perl) #:use-module (gnu packages photo) #:use-module (gnu packages pkg-config) + #:use-module (gnu packages plotutils) #:use-module (gnu packages pretty-print) #:use-module (gnu packages python) #:use-module (gnu packages python-build) @@ -3771,6 +3772,85 @@ (define-public gpredict @end itemize") (license license:gpl2+))) +(define-public scamp + (package + (name "scamp") + (version "2.10.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/astromatic/scamp") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0qic52mzw9avf1a1fsr85mlh63b7hq6d4wj2d00zgdllmclj5l9q")))) + (build-system gnu-build-system) + (arguments + (list + #:configure-flags + #~(list "CPPFLAGS=-fcommon" + "--enable-openblas" + "--enable-plplot" + (string-append "--with-curl-incdir=" + #$(this-package-input "curl") "/include") + (string-append "--with-curl-libdir=" + #$(this-package-input "curl") "/lib") + (string-append "--with-fftw-incdir=" + #$(this-package-input "fftwf") "/include") + (string-append "--with-fftw-libdir=" + #$(this-package-input "fftwf") "/lib") + (string-append "--with-openblas-incdir=" + #$(this-package-input "openblas") "/include") + (string-append "--with-openblas-libdir=" + #$(this-package-input "openblas") "/lib") + (string-append "--with-plplot-incdir=" + #$(this-package-input "plplot") "/include") + (string-append "--with-plplot-libdir=" + #$(this-package-input "plplot") "/lib")))) + (native-inputs + (list autoconf + automake + libtool + pkg-config + python-astropy + python-numpy + python-wrapper)) + (inputs + (list curl fftwf openblas plplot)) + (home-page "https://www.astromatic.net/software/scamp/") + (synopsis "Compute astrometric solutions") + (description + "@acronym{Software for Calibrating AstroMetry and Photometry,SCAMP} is a +software that computes astrometric projection parameters from source catalogues +derived from @url{http://fits.gsfc.nasa.gov/,FITS} images. The computed solution +is expressed according to the +@url{http://www.atnf.csiro.au/people/mcalabre/WCS/index.html,WCS} standard. The +main features of SCAMP are: + +@itemize +@item compatibility with @code{SExtractor} FITS or Multi-Extension FITS +catalogue format in input +@item generation of WCS-compliant and @code{SWarp}-compatible FITS image headers +in output +@item automatic grouping of catalogues on the sky +@item selectable on-line astrometric reference catalogue +@item automatic determination of scale, position angle, flipping and coordinate +shift using fast pattern-matching +@item various astrometric calibration modes for single detectors and detector +arrays +@item combined astrometric solutions for multi-channel/instrument surveys +@item highly configurable astrometric distortion polynomials +@item correction for differential chromatic refraction +@item proper motion measurements +@item multi-threaded code that takes advantage of multiple processors +@item @url{http://www.ivoa.net/documents/VOTable,VOTable}-compliant XML output +of meta-data +@item @url{http://en.wikipedia.org/wiki/XSLT,XSLT} filter sheet provided for +convenient access to metadata from a regular web browser +@end itemize") + (license license:gpl3+))) + (define-public sgp4 ;; Version tag v1.0 is dated to <2021-01-11>, use the lates commit instead. (let ((commit "6a448b4850e5fbf8c1ca03bb5f6013a9fdc1fd91")