Astro-Catalog
view release on metacpan or search on metacpan
lib/Astro/Catalog/IO/ASSM.pm view on Meta::CPAN
__END__
=back
=head1 SEE ALSO
L<Astro::Catalog>, L<Astro::Catalog::IO::Simple>
=head1 FORMAT
The ASSM format is defined as follows: Any line that looks like
RAdeg Decdeg filter1mag filter2mag filter3mag sp. type source
=head1 COPYRIGHT
Copyright (C) 2012 Las Cumbres Observatory Global Telescope Network.
All Rights Reserved.
This module is free software;
you can redistribute it and/or modify it under the terms of the GNU
lib/Astro/Catalog/IO/Cluster.pm view on Meta::CPAN
}
$star->fluxes(new Astro::Fluxes(@fluxes, @colors));
# set default "good" quality
$star->quality(0);
# check and set quality flag
foreach my $k (0 .. $#colours) {
# if quality not good then set bad flag
if (Scalar::Util::looks_like_number($quality[$k])) {
if (defined $quality[$k] && $quality[$k] != 0) {
$star->quality(1);
}
}
else {
if (defined $quality[$k] && $quality[$k] ne "OO") {
$star->quality(1);
}
}
}
lib/Astro/Catalog/IO/Cluster.pm view on Meta::CPAN
my $field = ${$stars}[$star]->field;
if (defined $field) {
$output_line = $field . " ";
}
else {
$output_line = "0 ";
}
my $id = ${$stars}[$star]->id;
if (defined $id &&
Scalar::Util::looks_like_number($id)) {
$output_line = $output_line . $id . " ";
}
else {
$output_line = $output_line . $star . " ";
}
# fiddle with the dec, olv versions of the Fortran Cluster
# parser don't like + signs for northern hemisphere dec's
my $dec = ${$stars}[$star]->dec();
$dec =~ s/\+//;
lib/Astro/Catalog/IO/Simple.pm view on Meta::CPAN
1;
__END__
=back
=end __PRIVATE_METHODS__
=head1 FORMAT
The Simple format is defined as follows: Any line that looks like
ID HH MM SS.SS +/-DD MM SS.SS TYPE # Comment
will be matched. A space is allowed between the sign and the
declination. The type is optional (as is the comment) and
can be one of J2000, B1950, GALACTIC, AZEL or SUPERGALACTIC
or the JCMT abbreviations (RJ, RB, GA or AZ). If TYPE is not
present J2000 is assumed.
=head1 COPYRIGHT
( run in 0.410 second using v1.01-cache-2.11-cpan-607d282f910 )