RAPYUTA
libraRy of Astronomical PYthon UTilities for Astrophysics nerds
Introduction
Laputa: Castle in the Sky / 怩ç©șăźćă©ăă„ăż (TenkĆ« no Shiro Rapyuta)
Laputan is an inhabitant of a flying island in Swiftâs Gulliverâs Travels characterized by a neglect of useful occupations and a devotion to visionary projects.
(VOTE link)
Acronyms- libraRy of Astronomical PYthon UTilities for Astrophysics nerds
- Ready-to-use AstroPhysicistsâ Yon-jigen poketto UlTimAte edition
- Real AstroPY UTopiAn
Helpdesk
Installation
## Install/Update
pip install rapyuta --upgrade
## Uninstall
pip uninstall rapyuta
Dependencies
In order to access the full functionality, you will need the following extra dependencies:
User manual
For the moment, there is only built-in documentation available, which can be called interactively by help()
Contact
dangning.hu@outlook.com
Version log
v2.2 (20220220)
-
plots.plotool
- Added tick label formatter âmylogâ (opitimized for <1 case)
- Added
tests/use_cases/
v2.1 (20211202)
-
plots.plotool
- Merged
figure
to__init__
(usingsqueeze
kw to getself.axes
) - 0-indexed
subpos
- Supported transformation between coordinate systems with
self.trans
kw - Supported multi-legends by adding
reset_handles
,append_handles
, andget_handles
- Defined default tick settings in
set_ax
- Clarified
**kwargs
usage in each function - Other kw changes
- Merged
-
plots.pplot
- Adapted to higher level class changes
- Defined default uni-plot settings
- Updated tests
- Not compatible with scripts using former version
plots.plotool
class
v2.0.4 (20211117)
- [VITAL] Fixed kernel selection
imaging.iconvolve
(should be FWHM instead of Gaussian 1-sigmaâŠ) -
imaging.improve
- Allowed external wgrid input for
smooth
- Allowed external wgrid input for
- Fixed bugs in
plots
- Set default
subpos=(0,0)
(keep current axis)
- Set default
v2.0.3 (20211008)
- Updated output name conventions
- âtypeâ outputs (e.g.
ds
):header
,data
,unc
,wave
,hyperdata
, etc. - âclassâ outputs (e.g.
improve
):hdr
,im
,unc
,wvl
, etc. - âclassâ function ouputs:
header()
,image()
,unc
,wave()
- âtypeâ outputs (e.g.
- Added
rand_pointing
to all functions withdist
- Revisited all 3D/2D conditional statements with
self.Ndim
-
imaging.improve
- Added original NaN mask for
rand_pointing
(in order not to invent data at NaN pixels) - Changed resampling from âby axisâ to âby grouped pixelsâ for
groupixel
(NaN mean)
- Added original NaN mask for
-
imaging.iswarp
- Renamed
reproject_mc
tocombine_mc
(which works also for coadding)
- Renamed
-
imaging.cupid
: minor changes in outputs
v2.0.2 (20211001)
-
calib.intercalib
- Added super pixel support
-
imaging.iswarp
- Added
reproject_mc
- Added
- Added
arrays.pix2sup
,arrays.sup2pix
,imaging.igroupixel
andimaging.ismooth
- Merged
imaging.respect
toimaging.improve
- Removed
concat
(alternative ofimaging.concatenate
) - Renamed old
smooth
toartifact
- Added
smooth
(new) andgroupixel
- Removed
- Renamed
imaging.sextract
toimaging.cupid
- Modified inputs variables
- Added super pixel (non-square rebinning) support
- Moved
rand_pointing
toimaging.improve
and supported convert pos err to flux unc - [VITAL] Reported wrong
ispec
inspec_build
in former version
- Updated tests
v2.0.1 (20210916)
- Imported error ellipse support from a marvelous Python library of F. Galliano
-
arrays
:arrayize
,ramp
-
plots
:plotrange
,Btau
,Ctau
,ellipse
andSUE
-
plots.plotool
:eplot
-
-
plots.plotool
- Fixed the bug when any of
nrows
orncols
equals to 1,self.axes
is 1D soself.ax
cannot be attributed - Added
xisln
andyisln
kw forplot
- Added
close
- Fixed the bug when any of
-
plots.pplot
- Fixed the bug when legend anchor kw appears tight layout is auto deactivated
- Added
tests/test_plots.py
- Renamed
arrays.allist
toarrays.listize
v2.0 (20210914)
- Rename package from
laputan
torapyuta
due to the French punâŠthus it turns to the Ghibli origin! -
plots.plotool
- Removed
set_font
and fixed font size and tick problems - Added
set_legend
which supports lengend boxes outside the axes - Renamed
set_border
asset_fig
and added suptitle -
set_ax
- Added font size kw
- Renamed
xlab
asxlabel
(idem. forylab
, thus coherent to matplotlib) - Changed
nonposx
default value from âsymâ to âclipâ
- Note that all kw in
set_fig
andset_ax
can also be executed individually withself.ax.set_kw
- Removed