1airmass(1) C-Munipack 1.2 airmass(1)
2
3
4
6 airmass - utility for computing airmass coefficient
7
9 airmass [ options ] input-files ...
10 airmass [ options ] -j julian-date
11
13 The airmass command computes value of airmass coefficient (X) for given
14 julian date, object´s coordinates and observer´s coordinates. It may
15 also append the values to a set of measurements stored in a text file.
16
17 When the -j option is present on the command line, the value of airmass
18 coefficient is printed to the standard output stream.
19
20 If one or more filenames are present on the command line, each source
21 file given is processed line by line, the program expects the JD value
22 in the first column, which must be divided at least one of common used
23 dividers (semicolon, comma, space, tab char, ...). The JD value can be
24 in full (2453xxx.x) or short (53xxx.x) form. Decimal places must be
25 separated by point, not comma. The value of airmass coefficient is com‐
26 puted and appended to the end of the line. If the line starts with the
27 text JD, it is considered to be a table header and the text AIRMASS is
28 appended to the end of the line. All other lines which do not fit to
29 any of previous rules are copied to the output file without modifica‐
30 tion.
31
33 Names of input files can be specified directly on a command-line as
34 command arguments; it is allowed to use the usual wildcard notation. In
35 case the input files are placed outside the working directory, you have
36 to specify the proper path relative to the current working directory.
37
38 Alternatively, you can also prepare a list of input file names in a
39 text file, each input file on a separate line. It is not allowed to use
40 the wildcard notation here. Use the -i option to instruct the program
41 to read the file.
42
44 By default, output files are stored to the current working directory.
45 Their names are derived from the command name followed by a sequential
46 number starting by 1. Command options allows a caller to modify the
47 default naming of output files:
48
49 The -o option sets the format string; it may contain a path where the
50 files shall be stored to. Special meaning has a sequence of question
51 marks, it is replaced by the ordinal number of a file indented by
52 leading zeros to the same number of decimal places as the number of the
53 question marks.
54
55 By means of the -i option, you can modify the initial value of a
56 counter.
57
58 On request, the program can write a list of output files to a text
59 file, use the -g option to specify a file name.
60
62 Options are used to provide extra information to customize the execu‐
63 tion of a command. They are specified as command arguments.
64
65 Each option has a full form starting with two dashes and an optional
66 short form starting with one dash only. Options are case-sensitive. It
67 is allowed to merge two or more successive short options together. Some
68 options require a value; in this case a value is taken from a subse‐
69 quent argument. When a full form is used, an option and its value can
70 also be separated by an equal sign. When a short form is used, its
71 value can immediately follow the option.
72
73 Whenever there is a conflict between a configuration file parameter and
74 an option of the same meaning, the option always take precedence.
75
76 -j, --julian-date jd
77 compute and print air-mass coeficient for given julian date. Do
78 not combine this option with input file names.
79
80 -a, --right-ascension hhmmss
81 right ascension of object in hours, minutes and seconds
82
83 -d, --declination -ddmmss
84 declination of object in degrees, minutes and seconds
85
86 -l, --longitude dddmmss
87 longitude of observer in degrees, minutes and seconds; positive
88 values for a location to the east of zero meridian, negative
89 values for a location to the west of zero meridian.
90
91 -b, --latitude -ddmmss
92 latitude of observer in degrees, minutes and seconds; positive
93 values for a location to the north of equator, negative values
94 for a location to the south of equator.
95
96 --altitude
97 compute and print also the altitude of the object in degrees.
98
99 -s, --set name=value
100 set value of configuration parameter
101
102 -i, --read-dirfile filepath
103 read list of input files from specified file; see the Files sec‐
104 tion for details.
105
106 -g, --make-dirfile filepath
107 save list of output files to specified file, existing content of
108 the file will be overwritten; see the Files section for details.
109
110 -o, --output-mask mask
111 set output file mask (default=amass????.dat), see the Files sec‐
112 tion for details.
113
114 -c, --counter value
115 set initial counter value (default=1), see the Files section for
116 details.
117
118 -p, --configuration-file filepath
119 read parameters from given configuration file. See the Configu‐
120 ration file section for details.
121
122 -h, --help
123 print list of command-line parameters
124
125 -q, --quiet
126 quiet mode; suppress all messages
127
128 --version
129 print software version string
130
131 --licence
132 print software licence
133
134 --verbose
135 verbose mode; print debug messages
136
138 Configuration files are used to set the input parameters to the process
139 that is going to be executed by a command. Use the -p option to
140 instruct the program to read the file before other command-line options
141 are processed.
142
143 The configuration file consists of a set of parameters stored in a text
144 file. Each parameter is stored on a separate line in the following
145 form: name = value, all other lines are silently ignored. Parameter
146 names are case-sensitive.
147
148 right-ascension = hhmmss
149 right ascension of object in hours, minutes and seconds
150
151 declination = -ddmmss
152 declination of object in degrees, minutes and seconds
153
154 longitude = dddmmss
155 longitude of observer in degrees, minutes and seconds; positive
156 values for a location to the east of zero meridian, negative
157 values for a location to the west of zero meridian.
158
159 latitude = -ddmmss
160 latitude of observer in degrees, minutes and seconds; positive
161 values for a location to the north of equator, negative values
162 for a location to the south of equator.
163
165 airmass -l164000 -b491300 -a182932 -d223424 -j2452763.5670
166 The command computes and prints value of airmass coeficient to
167 the standard output. The object´s coordinates are R.A. = 18h 29m
168 32s, DEC. = +22d 34m 24s, the observer´s coordinates are LON. =
169 16d 40m to the east of the zero meridian and LAT. = 49d 13m to
170 the north of the equator. Julian date of observation is
171 2452763.5670.
172
173 airmass -l164000 -b491300 -a182932 -d223424 -oamass.dat table.dat
174 The command adds values of airmass coefficient to the table
175 stored in table.dat file and the resulting table stores in
176 amass.dat file. The object´s and observer´s coordinates are the
177 same as in previous example.
178
180 The command returns a zero exit status if it succeeds to process all
181 specified files. Otherwise, it will stop immediately when an error
182 occurs and a nonzero error code is returned.
183
185 http://c-munipack.sourceforge.net/
186
188 David Motl, dmotl@volny.cz
189
191 This program is free software; you can redistribute it and/or modify it
192 under the terms of the GNU General Public License version 2 as pub‐
193 lished by the Free Software Foundation.
194
195 This program is distributed in the hope that it will be useful, but
196 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
197 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
198 Public License for more details.
199
201 cmunipack(3), muniwin(1), meanbias(1), meandark(1), autoflat(1), bias‐
202 bat(1), darkbat(1), flatbat(1), timebat(1), helcor(1), kombine(1),
203 konve(1), muniphot(1), munimatch(1), munilist(1)
204
205
206
207version 1.2.10 May 16, 2010 airmass(1)