lightstack 0.1.6__tar.gz → 0.2.1__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lightstack
3
- Version: 0.1.6
3
+ Version: 0.2.1
4
4
  Summary: Tools for building and processing multi-filter astrophysical datacubes
5
5
  Author: Andressa Wille, Thallis Pessi
6
6
  License: MIT License
@@ -35,13 +35,13 @@ Requires-Dist: regions
35
35
  Requires-Dist: scipy
36
36
  Requires-Dist: photutils
37
37
 
38
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393439.svg)](https://doi.org/10.5281/zenodo.19393439)
38
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393438.svg)](https://doi.org/10.5281/zenodo.19393438)
39
39
 
40
40
  <img src="https://raw.githubusercontent.com/AndressaWille/lightstack/master/images/logo.png" width="120">
41
41
 
42
42
  # Lightstack
43
43
 
44
- Tools for building and processing multi-filter astrophysical datacubes.
44
+ Tools for building and processing multi-filter astrophysical datacubes.
45
45
 
46
46
  ## Features
47
47
 
@@ -49,8 +49,6 @@ Tools for building and processing multi-filter astrophysical datacubes.
49
49
  - Building photometric datacubes
50
50
  - PSF matching
51
51
 
52
- (Currently supports JWST and HST)
53
-
54
52
  ## Installation
55
53
 
56
54
  ```bash
@@ -61,4 +59,4 @@ pip install lightstack
61
59
 
62
60
  https://lightstack.readthedocs.io/en/latest/
63
61
 
64
- See the tutorial notebook!
62
+ See the tutorial notebook (in the "examples" folder)!
@@ -1,10 +1,10 @@
1
- [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393439.svg)](https://doi.org/10.5281/zenodo.19393439)
1
+ [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.19393438.svg)](https://doi.org/10.5281/zenodo.19393438)
2
2
 
3
3
  <img src="https://raw.githubusercontent.com/AndressaWille/lightstack/master/images/logo.png" width="120">
4
4
 
5
5
  # Lightstack
6
6
 
7
- Tools for building and processing multi-filter astrophysical datacubes.
7
+ Tools for building and processing multi-filter astrophysical datacubes.
8
8
 
9
9
  ## Features
10
10
 
@@ -12,8 +12,6 @@ Tools for building and processing multi-filter astrophysical datacubes.
12
12
  - Building photometric datacubes
13
13
  - PSF matching
14
14
 
15
- (Currently supports JWST and HST)
16
-
17
15
  ## Installation
18
16
 
19
17
  ```bash
@@ -24,4 +22,4 @@ pip install lightstack
24
22
 
25
23
  https://lightstack.readthedocs.io/en/latest/
26
24
 
27
- See the tutorial notebook!
25
+ See the tutorial notebook (in the "examples" folder)!
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "lightstack"
3
- version = "0.1.6"
3
+ version = "0.2.1"
4
4
  description = "Tools for building and processing multi-filter astrophysical datacubes"
5
5
  readme = "README.md"
6
6
  authors = [{name = "Andressa Wille"}, {name="Thallis Pessi"}]
@@ -25,6 +25,7 @@ from .crop import (
25
25
  # Datacube / alignment
26
26
  # =========================
27
27
  from .datacube import (
28
+ load_image_fits,
28
29
  align_reproject_fits,
29
30
  build_datacube,
30
31
  cut_region_datacube,
@@ -37,6 +38,9 @@ from .datacube import (
37
38
  # PSF matching
38
39
  # =========================
39
40
  from .psf import (
41
+ centroid_weighted,
42
+ make_odd,
43
+ resample_psf,
40
44
  build_kernel,
41
45
  save_kernel,
42
46
  apply_kernel,
@@ -56,8 +60,19 @@ from .plot import (
56
60
  # Utils
57
61
  # =========================
58
62
  from .utils import (
63
+ get_filter,
64
+ get_filter_info,
65
+ pick_output_group,
66
+ pick_group,
67
+ pick_instrument,
68
+ sort_filters,
69
+ add_custom_dataset,
59
70
  find_ext,
60
- infer_filter,
71
+ save_fits,
72
+ MJy_sr_to_jy,
73
+ get_pixel_scale,
74
+ get_pixel_scale_from_wcs
75
+
61
76
  )
62
77
 
63
78
  # =========================
@@ -72,6 +87,7 @@ __all__ = [
72
87
  "cut_region_2d",
73
88
 
74
89
  # datacube
90
+ "load_image_fits",
75
91
  "align_reproject_fits",
76
92
  "build_datacube",
77
93
  "cut_region_datacube",
@@ -80,6 +96,9 @@ __all__ = [
80
96
  "update_cube_header",
81
97
 
82
98
  # psf
99
+ "centroid_weighted",
100
+ "make_odd",
101
+ "resample_psf",
83
102
  "build_kernel",
84
103
  "save_kernel",
85
104
  "apply_kernel",
@@ -92,13 +111,16 @@ __all__ = [
92
111
 
93
112
  # utils
94
113
  "find_ext",
95
- "infer_filter",
96
- "pick_folder",
97
114
  "get_filter",
98
- "filter_id",
115
+ "get_filter_info",
116
+ "pick_output_group",
117
+ "pick_group",
118
+ "pick_instrument",
119
+ "sort_filters",
120
+ "add_custom_dataset",
99
121
  "save_fits",
100
- "sort_fits",
101
122
  "MJy_sr_to_jy",
102
123
  "get_pixel_scale",
124
+ "get_pixel_scale_from_wcs",
103
125
 
104
126
  ]
@@ -276,7 +276,7 @@ def cut_region_2d(fits_file, x_start, x_end, y_start, y_end, output_path):
276
276
  with fits.open(fits_file) as hdul:
277
277
  ext = find_ext(hdul)
278
278
  if ext is None:
279
- raise ValueError(f"No image data found in {fits_path}")
279
+ raise ValueError(f"No image data found in {fits_file}")
280
280
 
281
281
  data = hdul[ext].data
282
282
  header = hdul[ext].header