@arcosmos/astronomy 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +227 -2
  3. package/dist/angles.d.ts +51 -0
  4. package/dist/angles.d.ts.map +1 -0
  5. package/dist/angles.js +261 -0
  6. package/dist/angles.js.map +1 -0
  7. package/dist/constants.d.ts +35 -0
  8. package/dist/constants.d.ts.map +1 -0
  9. package/dist/constants.js +44 -0
  10. package/dist/constants.js.map +1 -0
  11. package/dist/coordinates.d.ts +213 -0
  12. package/dist/coordinates.d.ts.map +1 -0
  13. package/dist/coordinates.js +474 -0
  14. package/dist/coordinates.js.map +1 -0
  15. package/dist/distance.d.ts +26 -0
  16. package/dist/distance.d.ts.map +1 -0
  17. package/dist/distance.js +54 -0
  18. package/dist/distance.js.map +1 -0
  19. package/dist/errors.d.ts +24 -0
  20. package/dist/errors.d.ts.map +1 -0
  21. package/dist/errors.js +24 -0
  22. package/dist/errors.js.map +1 -0
  23. package/dist/index.d.ts +13 -0
  24. package/dist/index.d.ts.map +1 -0
  25. package/dist/index.js +15 -0
  26. package/dist/index.js.map +1 -0
  27. package/dist/kinds.d.ts +86 -0
  28. package/dist/kinds.d.ts.map +1 -0
  29. package/dist/kinds.js +29 -0
  30. package/dist/kinds.js.map +1 -0
  31. package/dist/parse-unit.d.ts +11 -0
  32. package/dist/parse-unit.d.ts.map +1 -0
  33. package/dist/parse-unit.js +222 -0
  34. package/dist/parse-unit.js.map +1 -0
  35. package/dist/quantity.d.ts +150 -0
  36. package/dist/quantity.d.ts.map +1 -0
  37. package/dist/quantity.js +452 -0
  38. package/dist/quantity.js.map +1 -0
  39. package/dist/rounding.d.ts +18 -0
  40. package/dist/rounding.d.ts.map +1 -0
  41. package/dist/rounding.js +35 -0
  42. package/dist/rounding.js.map +1 -0
  43. package/dist/time.d.ts +100 -0
  44. package/dist/time.d.ts.map +1 -0
  45. package/dist/time.js +448 -0
  46. package/dist/time.js.map +1 -0
  47. package/dist/units.d.ts +394 -0
  48. package/dist/units.d.ts.map +1 -0
  49. package/dist/units.js +353 -0
  50. package/dist/units.js.map +1 -0
  51. package/package.json +44 -3
  52. package/src/angles.ts +286 -0
  53. package/src/constants.ts +51 -0
  54. package/src/coordinates.ts +591 -0
  55. package/src/distance.ts +58 -0
  56. package/src/errors.ts +27 -0
  57. package/src/index.ts +27 -0
  58. package/src/kinds.ts +110 -0
  59. package/src/parse-unit.ts +230 -0
  60. package/src/quantity.ts +539 -0
  61. package/src/rounding.ts +33 -0
  62. package/src/time.ts +511 -0
  63. package/src/units.ts +445 -0
@@ -0,0 +1,394 @@
1
+ /** The base units, in the order a dimension lists their exponents. */
2
+ export declare const BASE_UNITS: readonly ['m', 'kg', 's', 'A', 'K', 'mol', 'cd', 'rad'];
3
+ /** Exponents of the base units, in BASE_UNITS' order. */
4
+ type Dims = readonly number[];
5
+ /**
6
+ * Each kind of quantity this library names, by its dimension. The names are Astropy's
7
+ * physical types (its first name where it has several, such as "speed" for speed/velocity).
8
+ */
9
+ declare const KIND_DIMS: {
10
+ readonly dimensionless: {};
11
+ readonly length: {
12
+ readonly m: 1;
13
+ };
14
+ readonly mass: {
15
+ readonly kg: 1;
16
+ };
17
+ readonly time: {
18
+ readonly s: 1;
19
+ };
20
+ readonly 'electrical current': {
21
+ readonly A: 1;
22
+ };
23
+ readonly temperature: {
24
+ readonly K: 1;
25
+ };
26
+ readonly 'amount of substance': {
27
+ readonly mol: 1;
28
+ };
29
+ readonly 'luminous intensity': {
30
+ readonly cd: 1;
31
+ };
32
+ readonly angle: {
33
+ readonly rad: 1;
34
+ };
35
+ readonly 'solid angle': {
36
+ readonly rad: 2;
37
+ };
38
+ readonly area: {
39
+ readonly m: 2;
40
+ };
41
+ readonly volume: {
42
+ readonly m: 3;
43
+ };
44
+ readonly speed: {
45
+ readonly m: 1;
46
+ readonly s: -1;
47
+ };
48
+ readonly acceleration: {
49
+ readonly m: 1;
50
+ readonly s: -2;
51
+ };
52
+ readonly frequency: {
53
+ readonly s: -1;
54
+ };
55
+ readonly 'angular speed': {
56
+ readonly rad: 1;
57
+ readonly s: -1;
58
+ };
59
+ readonly momentum: {
60
+ readonly kg: 1;
61
+ readonly m: 1;
62
+ readonly s: -1;
63
+ };
64
+ readonly force: {
65
+ readonly kg: 1;
66
+ readonly m: 1;
67
+ readonly s: -2;
68
+ };
69
+ readonly energy: {
70
+ readonly kg: 1;
71
+ readonly m: 2;
72
+ readonly s: -2;
73
+ };
74
+ readonly power: {
75
+ readonly kg: 1;
76
+ readonly m: 2;
77
+ readonly s: -3;
78
+ };
79
+ readonly 'energy flux': {
80
+ readonly kg: 1;
81
+ readonly s: -3;
82
+ };
83
+ readonly 'spectral flux density': {
84
+ readonly kg: 1;
85
+ readonly s: -2;
86
+ };
87
+ readonly pressure: {
88
+ readonly kg: 1;
89
+ readonly m: -1;
90
+ readonly s: -2;
91
+ };
92
+ readonly 'mass density': {
93
+ readonly kg: 1;
94
+ readonly m: -3;
95
+ };
96
+ };
97
+ /** A kind of quantity with a linear unit, such as "length" or "angular speed". */
98
+ export type LinearKind = keyof typeof KIND_DIMS;
99
+ /**
100
+ * A kind this library names. Logarithmic units have kinds of their own: "magnitude", "dex"
101
+ * (a dimensionless dex, such as a metallicity), and "log(K)" for log10 of a unit of kind K.
102
+ */
103
+ export type KnownKind = LinearKind | 'magnitude' | 'dex' | `log(${LinearKind})`;
104
+ /** Any kind. One with no name is written as its dimension in base units, such as "m^3 kg^-1 s^-2". */
105
+ export type Kind = KnownKind | (string & {});
106
+ /**
107
+ * A unit's size in base units: num / den × pi^pi × G^g. Pi and G are kept apart so they
108
+ * cancel exactly: arcsec to deg is then exactly 180/648000, and a mass ratio is a ratio of GMs,
109
+ * free of G's uncertainty. num and den are exact wherever the definitions allow.
110
+ */
111
+ interface Scale {
112
+ readonly num: number;
113
+ readonly den: number;
114
+ readonly pi: number;
115
+ readonly g: number;
116
+ }
117
+ /**
118
+ * A power snapped to the nearest fraction with a denominator up to 10, as Astropy does, so
119
+ * float error doesn't build up: 0.1 × 3 is 0.3, and 1/6 six times is 1.
120
+ */
121
+ export declare function snapPower(p: number): number;
122
+ /**
123
+ * Every unit symbol this library reads, with Astropy's spellings as aliases. The kind is
124
+ * repeated here for the type system, which reads it to type a quantity from its unit; a test
125
+ * checks it matches the dimension.
126
+ */
127
+ export declare const DEFINITIONS: {
128
+ readonly m: {
129
+ readonly kind: 'length';
130
+ readonly size: Scale;
131
+ readonly prefixes: true;
132
+ };
133
+ readonly au: {
134
+ readonly kind: 'length';
135
+ readonly size: Scale;
136
+ readonly aliases: readonly ["AU"];
137
+ };
138
+ readonly pc: {
139
+ readonly kind: 'length';
140
+ readonly size: Scale;
141
+ readonly prefixes: true;
142
+ readonly aliases: readonly ["parsec"];
143
+ };
144
+ readonly lyr: {
145
+ readonly kind: 'length';
146
+ readonly size: Scale;
147
+ readonly aliases: readonly ["ly", "lightyear"];
148
+ };
149
+ readonly Angstrom: {
150
+ readonly kind: 'length';
151
+ readonly size: Scale;
152
+ readonly aliases: readonly ["AA", "angstrom"];
153
+ };
154
+ readonly R_sun: {
155
+ readonly kind: 'length';
156
+ readonly size: Scale;
157
+ readonly aliases: readonly ["solRad"];
158
+ };
159
+ readonly R_earth: {
160
+ readonly kind: 'length';
161
+ readonly size: Scale;
162
+ readonly aliases: readonly ["earthRad"];
163
+ };
164
+ readonly R_jup: {
165
+ readonly kind: 'length';
166
+ readonly size: Scale;
167
+ readonly aliases: readonly ["jupiterRad"];
168
+ };
169
+ readonly g: {
170
+ readonly kind: 'mass';
171
+ readonly size: Scale;
172
+ readonly prefixes: true;
173
+ };
174
+ readonly M_sun: {
175
+ readonly kind: 'mass';
176
+ readonly size: Scale;
177
+ readonly aliases: readonly ["solMass"];
178
+ };
179
+ readonly M_earth: {
180
+ readonly kind: 'mass';
181
+ readonly size: Scale;
182
+ readonly aliases: readonly ["earthMass"];
183
+ };
184
+ readonly M_jup: {
185
+ readonly kind: 'mass';
186
+ readonly size: Scale;
187
+ readonly aliases: readonly ["jupiterMass"];
188
+ };
189
+ readonly s: {
190
+ readonly kind: 'time';
191
+ readonly size: Scale;
192
+ readonly prefixes: true;
193
+ };
194
+ readonly min: {
195
+ readonly kind: 'time';
196
+ readonly size: Scale;
197
+ };
198
+ readonly h: {
199
+ readonly kind: 'time';
200
+ readonly size: Scale;
201
+ };
202
+ readonly d: {
203
+ readonly kind: 'time';
204
+ readonly size: Scale;
205
+ };
206
+ readonly yr: {
207
+ readonly kind: 'time';
208
+ readonly size: Scale;
209
+ readonly prefixes: true;
210
+ readonly aliases: readonly ["year"];
211
+ };
212
+ readonly K: {
213
+ readonly kind: 'temperature';
214
+ readonly size: Scale;
215
+ readonly prefixes: true;
216
+ };
217
+ readonly A: {
218
+ readonly kind: 'electrical current';
219
+ readonly size: Scale;
220
+ };
221
+ readonly mol: {
222
+ readonly kind: 'amount of substance';
223
+ readonly size: Scale;
224
+ };
225
+ readonly cd: {
226
+ readonly kind: 'luminous intensity';
227
+ readonly size: Scale;
228
+ };
229
+ readonly rad: {
230
+ readonly kind: 'angle';
231
+ readonly size: Scale;
232
+ readonly prefixes: true;
233
+ };
234
+ readonly deg: {
235
+ readonly kind: 'angle';
236
+ readonly size: Scale;
237
+ readonly aliases: readonly ["degree"];
238
+ };
239
+ readonly arcmin: {
240
+ readonly kind: 'angle';
241
+ readonly size: Scale;
242
+ };
243
+ readonly arcsec: {
244
+ readonly kind: 'angle';
245
+ readonly size: Scale;
246
+ };
247
+ readonly mas: {
248
+ readonly kind: 'angle';
249
+ readonly size: Scale;
250
+ };
251
+ readonly uas: {
252
+ readonly kind: 'angle';
253
+ readonly size: Scale;
254
+ };
255
+ readonly hourangle: {
256
+ readonly kind: 'angle';
257
+ readonly size: Scale;
258
+ };
259
+ readonly sr: {
260
+ readonly kind: 'solid angle';
261
+ readonly size: Scale;
262
+ };
263
+ readonly Hz: {
264
+ readonly kind: 'frequency';
265
+ readonly size: Scale;
266
+ readonly prefixes: true;
267
+ };
268
+ readonly J: {
269
+ readonly kind: 'energy';
270
+ readonly size: Scale;
271
+ readonly prefixes: true;
272
+ };
273
+ readonly erg: {
274
+ readonly kind: 'energy';
275
+ readonly size: Scale;
276
+ };
277
+ readonly eV: {
278
+ readonly kind: 'energy';
279
+ readonly size: Scale;
280
+ readonly prefixes: true;
281
+ };
282
+ readonly W: {
283
+ readonly kind: 'power';
284
+ readonly size: Scale;
285
+ readonly prefixes: true;
286
+ };
287
+ readonly L_sun: {
288
+ readonly kind: 'power';
289
+ readonly size: Scale;
290
+ readonly aliases: readonly ["solLum"];
291
+ };
292
+ readonly Jy: {
293
+ readonly kind: 'spectral flux density';
294
+ readonly size: Scale;
295
+ readonly prefixes: true;
296
+ };
297
+ readonly S_earth: {
298
+ readonly kind: 'energy flux';
299
+ readonly size: Scale;
300
+ };
301
+ };
302
+ /** SI prefixes and their powers of ten. `u` is micro; µ and μ are read as u. */
303
+ export declare const PREFIXES: {
304
+ readonly Y: 24;
305
+ readonly Z: 21;
306
+ readonly E: 18;
307
+ readonly P: 15;
308
+ readonly T: 12;
309
+ readonly G: 9;
310
+ readonly M: 6;
311
+ readonly k: 3;
312
+ readonly h: 2;
313
+ readonly da: 1;
314
+ readonly d: -1;
315
+ readonly c: -2;
316
+ readonly m: -3;
317
+ readonly u: -6;
318
+ readonly n: -9;
319
+ readonly p: -12;
320
+ readonly f: -15;
321
+ readonly a: -18;
322
+ readonly z: -21;
323
+ readonly y: -24;
324
+ };
325
+ /** A symbol the parser knows: its canonical spelling, dimension and size. */
326
+ interface Entry {
327
+ readonly key: string;
328
+ readonly dims: Dims;
329
+ readonly size: Scale;
330
+ }
331
+ /** Every symbol, alias and prefixed symbol. Built once; a clash between two is a bug here. */
332
+ export declare const REGISTRY: ReadonlyMap<string, Entry>;
333
+ /** One symbol of a unit and its power, as written: `display` keeps the spelling given. */
334
+ interface Term {
335
+ readonly key: string;
336
+ readonly display: string;
337
+ readonly power: number;
338
+ }
339
+ /** The logarithmic part of mag, dex and log10(X): which logarithm, and of what unit. */
340
+ export interface LogPart {
341
+ readonly type: 'mag' | 'dex';
342
+ readonly physical: Unit;
343
+ }
344
+ /**
345
+ * A unit: a product of symbols with powers, such as km/s or log10(cm/s^2). Make one with
346
+ * `unit("km/s")`. `K` is its kind, such as "speed", where the type system can tell.
347
+ */
348
+ export declare class Unit<K extends string = Kind> {
349
+ /** @internal The symbols and their powers, in the order written. */
350
+ readonly terms: readonly Term[];
351
+ /** @internal Exponents of the base units. */
352
+ readonly dims: Dims;
353
+ /** @internal The size in base units. */
354
+ readonly size: Scale;
355
+ /** @internal Set for mag, dex and log10(X). */
356
+ readonly log: LogPart | null;
357
+ /** @internal Use `unit()`. */
358
+ constructor(terms: readonly Term[], dims: Dims, size: Scale, log?: LogPart | null);
359
+ /** @internal A logarithmic unit: mag, dex, or log10 of `physical` ("dex(X)" in Astropy). */
360
+ static logarithmic(type: 'mag' | 'dex', physical: Unit): Unit;
361
+ /** The kind of quantity, such as "length", "speed", "magnitude" or "log(power)". */
362
+ get kind(): K;
363
+ /** Whether this is mag, dex or log10(X). */
364
+ get isLogarithmic(): boolean;
365
+ /** This unit times another, such as `unit("km").times(unit("s"))` for km s. */
366
+ times(other: Unit): Unit;
367
+ /** This unit divided by another. */
368
+ div(other: Unit): Unit;
369
+ /** This unit to a power, which may be a fraction (`unit("m^2").pow(0.5)` is m). */
370
+ pow(n: number): Unit;
371
+ /**
372
+ * The number a value in this unit is multiplied by to give it in `other`: `unit("km").to(unit("m"))`
373
+ * is 1000. Throws a UnitConversionError for units of different kinds. Logarithmic units
374
+ * don't convert by a factor: convert a quantity in them with Quantity.to.
375
+ */
376
+ to(other: Unit): number;
377
+ /**
378
+ * Whether a quantity in this unit converts to `other`: the same kind, both logarithmic of one
379
+ * kind, or log10 of a unit and the unit (mag and dex of a plain number).
380
+ */
381
+ isEquivalent(other: Unit): boolean;
382
+ /** Whether the two units are the same size and kind, however written: km/s equals m/ms. */
383
+ equals(other: Unit): boolean;
384
+ /** The unit as written: "km/s", "erg/(cm^2 s)", "log10(cm/s^2)". Dimensionless is "". */
385
+ toString(): string;
386
+ toJSON(): string;
387
+ private requireLinear;
388
+ }
389
+ /** @internal The unit of one symbol, as written. */
390
+ export declare function symbolUnit(display: string, entry: Entry): Unit;
391
+ /** The dimensionless unit, written "". */
392
+ export declare const DIMENSIONLESS: Unit<'dimensionless'>;
393
+ export {};
394
+ //# sourceMappingURL=units.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"units.d.ts","sourceRoot":"","sources":["../src/units.ts"],"names":[],"mappings":"AAkBA,sEAAsE;AACtE,eAAO,MAAM,UAAU,YAAI,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAU,CAAA;AAGjF,yDAAyD;AACzD,KAAK,IAAI,GAAG,SAAS,MAAM,EAAE,CAAA;AAS7B;;;GAGG;AACH,QAAA,MAAM,SAAS;;;iBAEH,CAAC,EAAE,CAAC;;;iBACN,EAAE,EAAE,CAAC;;;iBACL,CAAC,EAAE,CAAC;;;iBACY,CAAC,EAAE,CAAC;;;iBACb,CAAC,EAAE,CAAC;;;iBACM,GAAG,EAAE,CAAC;;;iBACP,EAAE,EAAE,CAAC;;;iBACpB,GAAG,EAAE,CAAC;;;iBACE,GAAG,EAAE,CAAC;;;iBACf,CAAC,EAAE,CAAC;;;iBACF,CAAC,EAAE,CAAC;;;iBACL,CAAC,EAAE,CAAC;iBAAE,CAAC,EAAE,CAAC,CAAC;;;iBACJ,CAAC,EAAE,CAAC;iBAAE,CAAC,EAAE,CAAC,CAAC;;;iBACd,CAAC,EAAE,CAAC,CAAC;;;iBACC,GAAG,EAAE,CAAC;iBAAE,CAAC,EAAE,CAAC,CAAC;;;iBACpB,EAAE,EAAE,CAAC;iBAAE,CAAC,EAAE,CAAC;iBAAE,CAAC,EAAE,CAAC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