asteroid_spinprops 0.2.14__tar.gz → 0.2.15__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.
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/PKG-INFO +1 -1
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/modelfit.py +6 -4
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/utils.py +53 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/pyproject.toml +1 -1
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/README.md +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/__init__.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/__init__.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/dataprep.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/periodest.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/pipetools.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/ssptools.py +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_1.parquet +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/atlas_x_ztf_testing/test_pqfile_2.parquet +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2000 WL152 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 PC +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2001 SG276 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2008 GX32 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2009 BE185 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2011 EY17 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/2134 T-1 +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Bellmore +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Dermott +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Duke +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Izenberg +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Lermontov +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Poullain +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/ephemeris_testing/Sonneberga +0 -0
- {asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/testing/testing_ssoname_keys.pkl +0 -0
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/modelfit.py
RENAMED
|
@@ -85,11 +85,13 @@ def get_fit_params(
|
|
|
85
85
|
)
|
|
86
86
|
|
|
87
87
|
ra0, dec0 = shg1g2_params["alpha0"], shg1g2_params["delta0"]
|
|
88
|
-
ra0alt, dec0alt = utils.flip_spin(
|
|
89
|
-
|
|
88
|
+
# ra0alt, dec0alt = utils.flip_spin(
|
|
89
|
+
# shg1g2_params["alpha0"], shg1g2_params["delta0"]
|
|
90
|
+
# )
|
|
91
|
+
ra_init, dec_init = utils.generate_initial_points(
|
|
92
|
+
ra0, dec0, dec_shift=45
|
|
90
93
|
)
|
|
91
|
-
|
|
92
|
-
for ra, dec in zip([ra0, ra0alt], [dec0, dec0alt]):
|
|
94
|
+
for ra, dec in zip(ra_init, dec_init):
|
|
93
95
|
for period_in in period_scan:
|
|
94
96
|
p_in = [
|
|
95
97
|
shg1g2_params["H_1"],
|
|
@@ -412,3 +412,56 @@ def read_clean_data(
|
|
|
412
412
|
|
|
413
413
|
def oblateness(a_b, a_c):
|
|
414
414
|
return 1 / 2 * a_b / a_c + 1 / 2 * 1 / a_b
|
|
415
|
+
|
|
416
|
+
|
|
417
|
+
def wrap_longitude(long):
|
|
418
|
+
"""Wrap RA to [0, 360)."""
|
|
419
|
+
return long % 360
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
def wrap_latitude(lat):
|
|
423
|
+
"""Wrap Dec to [-90, 90] by folding over the poles."""
|
|
424
|
+
m = (lat + 90) % 360 # shift so -90 maps to 0
|
|
425
|
+
if m > 180:
|
|
426
|
+
m = 360 - m
|
|
427
|
+
return m - 90
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
def generate_initial_points(ra, dec, dec_shift=45):
|
|
431
|
+
"""
|
|
432
|
+
Generate 18 initial (RA, Dec) points
|
|
433
|
+
|
|
434
|
+
Parameters:
|
|
435
|
+
ra (float): base RA in degrees
|
|
436
|
+
dec (float): base Dec in degrees
|
|
437
|
+
dec_shifts (tuple): the two Dec shifts (in degrees) to try in step 2
|
|
438
|
+
"""
|
|
439
|
+
if np.abs(2 * dec - dec_shift) < 10:
|
|
440
|
+
dec_shift += 20
|
|
441
|
+
|
|
442
|
+
ra_list = []
|
|
443
|
+
dec_list = []
|
|
444
|
+
|
|
445
|
+
base_coords = [(ra, dec), flip_spin(ra, dec)]
|
|
446
|
+
|
|
447
|
+
ra_sweep = [0, 120, 240]
|
|
448
|
+
|
|
449
|
+
for base_ra, base_dec in base_coords:
|
|
450
|
+
for offset in ra_sweep:
|
|
451
|
+
ra_list.append(wrap_longitude(base_ra + offset))
|
|
452
|
+
dec_list.append(base_dec)
|
|
453
|
+
|
|
454
|
+
dec_sweep = [-dec_shift, dec_shift]
|
|
455
|
+
for shift in dec_sweep:
|
|
456
|
+
for base_ra, base_dec in base_coords:
|
|
457
|
+
if (base_dec + shift > 90) | (base_dec - shift < 90):
|
|
458
|
+
flag = 1
|
|
459
|
+
else:
|
|
460
|
+
flag = 0
|
|
461
|
+
shifted_dec = wrap_latitude(base_dec + shift)
|
|
462
|
+
|
|
463
|
+
for offset in ra_sweep:
|
|
464
|
+
temp_ra = base_ra + (180 if flag == 1 else 0)
|
|
465
|
+
ra_list.append(wrap_longitude(temp_ra + offset))
|
|
466
|
+
dec_list.append(shifted_dec)
|
|
467
|
+
return ra_list, dec_list
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "asteroid_spinprops"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.15"
|
|
4
4
|
description = "Collection of tools used for fitting sHG1G2 and ssHG1G2 photometric models to sparse asteroid photometry"
|
|
5
5
|
authors = [
|
|
6
6
|
{name = "Odysseas",email = "odysseas.xenos@proton.me"}
|
|
File without changes
|
|
File without changes
|
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/__init__.py
RENAMED
|
File without changes
|
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/dataprep.py
RENAMED
|
File without changes
|
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/periodest.py
RENAMED
|
File without changes
|
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/pipetools.py
RENAMED
|
File without changes
|
{asteroid_spinprops-0.2.14 → asteroid_spinprops-0.2.15}/asteroid_spinprops/ssolib/ssptools.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|