Skip to content
Snippets Groups Projects
Commit c173688d authored by slevy's avatar slevy
Browse files

Add Usage message.

Add -a (anyway) option: include stars even if there's no corresponding radial velocity record.
parent 28b1d89a
No related branches found
No related tags found
No related merge requests found
......@@ -30,11 +30,23 @@ print "datavar 8 speed\n";
print "datavar 9 txno\n";
print "# Space velocities in pc/Myr\n";
while($ARGV[0] =~ /^-[mMyr]/) {
shift, $faintmv = shift if $ARGV[0] =~ /^-m/;
shift, $faintMv = shift if $ARGV[0] =~ /^-M/;
shift, $yalecat = shift if $ARGV[0] =~ /^-y/;
shift, $rvelcat = shift if $ARGV[0] =~ /^-r/;
sub Usage {
print STDERR "Usage: $0 [-a] [-m maglim] [-M absmaglim] [-y yale.star] [-r RVelcat] [hip_main.dat] > stars.speck
Reads Hipparcos ASCII catalog (hip_main.dat, ADC catalog I/239)
and General Catalog of Mean Radial Velocities (ADC cat III/3213).
Writes partiview \".speck\" file.
";
exit(1);
}
while($ARGV[0] =~ /^-[amMyr]/) {
$_ = shift;
$anyway = 1, next if /^-a/;
$faintmv = shift, next if /^-m/;
$faintMv = shift, next if /^-M/;
$yalecat = shift, next if /^-y/;
$rvelcat = shift, next if /^-r/;
&Usage;
}
%greek = split(' ', <<EOF);
......@@ -190,7 +202,7 @@ while(<>) {
$rv*$R[1] + $svd*$vd[1] + $sva*$va[1],
$rv*$R[2] + $svd*$vd[2] + $sva*$va[2] );
} else {
next;
next unless $anyway;
@V = (0,0,0);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment