Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building and using xisfits corrections to instructions #22

Open
jcinaz opened this issue Feb 14, 2022 · 1 comment
Open

Building and using xisfits corrections to instructions #22

jcinaz opened this issue Feb 14, 2022 · 1 comment

Comments

@jcinaz
Copy link

jcinaz commented Feb 14, 2022

The instructions for building and using xisfits given at https://github.com/vrruiz/xisfits is completely wrong.
The correct build instruction is simply: cargo build
The correct run instruction is: cargo run <file.fits> --input <file.xisf>
And it can only be run while IN the xisfits-master directory.
I have created a rather crude bash script 'xisfits' that allows running it from anywhere. Notice that I have put 'xisfits-master' in my bin directory.
if you run cargo from the xisfits-master directory, then 'cargo run --help' or 'cargo help run' will provide more information.

#! bash
USAGE="USAGE: xisfits file [...]
Where file must have the extension .xisf
The output file will be put in the subdirectory 'fits' and have the extension .fits"

if [ $# -eq 0 ]; then
echo "$USAGE" 1>&2
exit 1
fi

srcdir=pwd
fitsdir=$srcdir/fits

cd ~/bin/xisfits-master
while [ $# -ne 0 ]; do

file=`echo $1 | sed 's/\.xisf//'`

if [ ! -e $srcdir/$file.xisf ]; then
	echo "$srcdir/$file.xisf does not exist" 1>&2
	exit 1
fi

if [ ! -d $fitsdir ]; then
	mkdir $fitsdir
fi

cargo run $fitsdir/$file.fits --input $srcdir/$file.xisf
shift

done

@mrhaoxx
Copy link

mrhaoxx commented Jul 27, 2024

note that the building is also broken due to a compatibility problem of num-bigint (lib) with today's rust
I fixed it by simply do
cargo update

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants