From ea19eacdaf09165c71693e032f28830f815e0cd5 Mon Sep 17 00:00:00 2001
From: Lukas Kluft <lukas.kluft@gmail.com>
Date: Thu, 9 Jan 2025 15:55:26 +0200
Subject: [PATCH] Fix creation of output filename

---
 remap.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/remap.sh b/remap.sh
index db2a47c..7d9891c 100755
--- a/remap.sh
+++ b/remap.sh
@@ -18,7 +18,7 @@ tgt_grid="hpz9"
 # Define file and directory names
 infile=$1
 outdir=$(dirname $infile)/healpix
-outfile=${outdir}/${infile}
+outfile=${outdir}/$(basename $infile)
 
 mkdir -p $outdir
 
-- 
GitLab