Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.6.9 #307

Merged
merged 2 commits into from
Dec 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions pyobs/mixins/fitsheader.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,14 @@ def v(k: str) -> Any:

# PC matrix: rotation only, shift comes from CDELT1/2
if self._fitsheadermixin_rotation is not None:
hdr["POSANG"] = (self._fitsheadermixin_rotation, "Position angle [deg e of n]")
theta_rad = math.radians(self._fitsheadermixin_rotation)
# position angle is set rotation + DEROTOFF if defined
posang = self._fitsheadermixin_rotation
if "DEROTOFF" in hdr:
posang += hdr["DEROTOFF"]

# write position angle
hdr["POSANG"] = (posang, "Position angle [deg e of n]")
theta_rad = math.radians(posang)
cos_theta = math.cos(theta_rad)
sin_theta = math.sin(theta_rad)
hdr["PC1_1"] = (+cos_theta, "Partial of first axis coordinate w.r.t. x")
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "pyobs-core"
packages = [{ include = "pyobs" }]
version = "1.6.8"
version = "1.6.9"
description = "robotic telescope software"
authors = ["Tim-Oliver Husser <[email protected]>"]
license = "MIT"
Expand Down