Skip to content
/ ads Public

Command line access to a web search for physics/astronomy articles on the Astrophysical Data System

Notifications You must be signed in to change notification settings

cdominik/ads

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

ads - commandline access to ADS (Astrophysical Data System)

SYNOPSIS

Make the ads file executable and put it on your execution path.

ads [options] [author]... [year] [endyear]

DESCRIPTION

ads is a commandline tool to pass a query to the website of the Astrophysical Data System (ADS). The tool constructs a query URL and sends it to the default web browser. ads takes author names, publishing years, and astronomical object identifiers from the command line with as little fuss as possible. Additional search fields and options can be specified using command line switches.

ARGUMENTS and OPTIONS

AUTHOR NAMES

Alphabetic arguments are parsed as author last names. A first name initial can be added like 'f.last' or 'last,f'. If an argument looks like (the significant tail of) an ORCID, find articles claimed by that ORCID.

PUBLISHING YEARS

Numerical arguments are interpreted as publishing years. Single or double digit years are moved into the current or previous century. Two such arguments or '2012-2014' specify a range. '2004-' and '-2004' work as expected.

[-o] OBJECT

Read the next argument as the name or identifier of an astronomical object. ads is pretty good at distinguishing objects from authors even if -o is omitted, but if that does not work or if you want to be sure, write e.g. '-o Sirius'.

-t STRING, -a STRING, -f STRING

String phrase to be matched in the title, abstract, or fulltext, respectively, of a bibliographic source.

-c

Sort matches by citation count. The default is to sort by date.

-r

List only refereed sources.

-A, -P, -G

Narrow to astronomy, physics, or general database, respectively.

-s SORTING

Sorting mode for matched entries. The mode can be given as a single letter, in full, or abbreviated. See also -c, which is short for -sc.

d  => date                  # This is the default
a  => first_author          # abbreviations: fa
c  => citation_count        # abbreviations: cc
n  => citation_count_norm   # abbreviations: cn ccn nc ncc
s  => score
-d

Print debugging information. This needs to be the first command line argument to be effective. Use -D if the URL should be constructed and shown, but not opened.

EXAMPLES

Get papers by Dullemond and Dominik written in 2004.

ads Dullemond Dominik,C 2004

Same authors, but only refereed papers where Dullemond is first author, and in the range from 1999 to 2004.

ads -r ^Dullemond Dominik 1999 2004
ads -r ^Dullemond Dominik 1999-2004
ads -r ^Dullemond Dominik 99-4

In any of the arguments, underscore can be used instead of space to avoid the need for quotes.

ads "van den heuvel,E"
ads van_den_heuvel,E

Papers by Antonella Natta, sorted by normalized citations.

ads -sn a.natta

ads allows to freely mix switch arguments with author and year arguments.

ads natta,a -sn 1990 2000 -t protostar

Papers by Muro-Arena, Ginski, and Benisty on the object SR 21.

ads ginski muro-arena benisty sr_21

Find articles with the phrase "planet formation" in the abstract.

ads -a "planet formation"

Find articles with both "planet" and "system" anywhere in the abstract.

ads -aplanet -a system

AUTHOR

Carsten Dominik <[email protected]>

This program is free software. It it released under the same rules as Perl itself, see https://dev.perl.org/licenses/.

About

Command line access to a web search for physics/astronomy articles on the Astrophysical Data System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published