PythonSTB commited on
Commit
1737f86
·
verified ·
1 Parent(s): 6536be3

Upload astropy/ASTROPY_USER_GUIDE.txt with huggingface_hub

Browse files
Files changed (1) hide show
  1. astropy/ASTROPY_USER_GUIDE.txt +87 -0
astropy/ASTROPY_USER_GUIDE.txt ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ================================================================================
2
+ ASTROPY - USER GUIDE (Android Python STB) - Generated by RIMI
3
+ ================================================================================
4
+
5
+ WHAT IT IS
6
+ ----------
7
+ astropy 8.0.1 is the core library for astronomy and astrophysics in Python:
8
+ celestial time and coordinate systems, physical units and quantities,
9
+ FITS/votable/ascii table I/O, WCS sky projections, cosmology, modeling,
10
+ statistics, convolution, and time-series periodograms.
11
+
12
+ Upstream: https://www.astropy.org/ (source: astropy-8.0.1.tar.gz from PyPI)
13
+
14
+ INSTALL ORDER (all required first, then astropy)
15
+ ------------------------------------------------
16
+ 1. numpy 2.5.2 (native wheel, own package folder)
17
+ 2. pyerfa 2.0.1.5 (native wheel, own package folder)
18
+ 3. astropy-iers-data, packaging, PyYAML (pure-Python, any order)
19
+ 4. ONE of:
20
+ astropy-8.0.1-cp312-cp312-android_24_x86_64.whl (emulator / x86_64)
21
+ astropy-8.0.1-cp312-cp312-android_24_arm64_v8a.whl (real phone / ARM64)
22
+
23
+ Install with the PipManager UI in the app (do NOT push arm64 wheels to
24
+ the x86_64 emulator or vice versa).
25
+
26
+ QUICK START
27
+ -----------
28
+ import astropy
29
+ astropy.__version__ # '8.0.1'
30
+
31
+ from astropy.time import Time
32
+ t = Time('2026-01-01T00:00:00', scale='utc')
33
+ t.iso # '2026-01-01 00:00:00.000'
34
+ t.unix # 1767225600.0
35
+
36
+ import astropy.units as u
37
+ (75.0 * u.km / u.s).to(u.m / u.s)
38
+ (1.0 * u.solMass).to(u.kg)
39
+
40
+ from astropy.coordinates import SkyCoord
41
+ c = SkyCoord('10h00m00s', '+30d00m00s', frame='icrs')
42
+ c.galactic # l / b, ERFA-only, works offline
43
+
44
+ from astropy.table import Table
45
+ tab = Table({'a': [1, 2, 3]})
46
+ len(tab) # 3
47
+
48
+ from astropy.io import fits
49
+ import numpy as np
50
+ fits.PrimaryHDU(data=np.zeros((4, 4))).writeto('/path/out.fits')
51
+
52
+ from astropy.wcs import WCS
53
+ w = WCS(naxis=2) # native bundled wcslib 8.6
54
+
55
+ ANDROID NOTES
56
+ -------------
57
+ - Native extensions (18 .so) link the app-lock librimi.so and the stock
58
+ Android libc; no system expat/wcslib/cfitsio is used -- the upstream
59
+ bundled cextern sources (wcslib 8.6, cfitsio subset, expat) are compiled
60
+ in, so the FULL default feature set works out of the box.
61
+ - Optional upstream extras (scipy, matplotlib, pandas, h5py, ...) are NOT
62
+ required. Features that import them raise ImportError only when used.
63
+ - No network is needed for the tested features. Downloads (IERS tables,
64
+ remote data) follow normal astropy behaviour when online.
65
+ - Console scripts (fitsinfo, fitsheader, showtable, ...) are declared in
66
+ dist-info/entry_points.txt like upstream.
67
+
68
+ TESTED FEATURES (Test_Astropy.py, 11 checks)
69
+ --------------------------------------------
70
+ import + version, WCS object, _iterparser import, convolution,
71
+ sigma_clip, FITS in-memory roundtrip, Time object + unix + scale,
72
+ units (m/km, deg/rad, solMass, mile), SkyCoord separation + galactic,
73
+ Table basics, votable/ascii native imports.
74
+ Test logic verified 11/11 against upstream astropy 8.0.1 on the build
75
+ host; run Test_Astropy.py from the app Scripts folder on-device
76
+ (exit 0 means ALL PASS).
77
+
78
+ DEPENDENCIES (declared in METADATA, upstream-faithful)
79
+ -------------------------------------------------------
80
+ astropy-iers-data>=0.2026.6.22.1.23.34, numpy>=2.0,
81
+ packaging>=25.0, pyerfa>=2.0.1.3, PyYAML>=6.0.0
82
+ (plus upstream optional extras markers for recommended/ipython/
83
+ jupyter/all/test/docs, kept verbatim).
84
+
85
+ ================================================================================
86
+ Generated by RIMI
87
+ ================================================================================