Skip to content
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
7 changes: 7 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
Versions
========

1.35.2 (2026-04-22)
-------------------

- Add OBSGEO keywords to headers to suppress astropy warning
- Shortened comments in headers to prevent truncation
- Fixed path in alembic.ini

1.35.1 (2026-04-20)
-------------------

Expand Down
2 changes: 1 addition & 1 deletion banzai/alembic.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# this is typically a path given in POSIX (e.g. forward slashes)
# format, relative to the token %(here)s which refers to the location of this
# ini file
script_location = %(here)s
script_location = %(here)s/alembic

# template used to generate migration file names; The default value is %%(rev)s_%%(slug)s
# Uncomment the line below if you want the files to be prepended with date and time
Expand Down
8 changes: 7 additions & 1 deletion banzai/astrometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from requests import ConnectionError, HTTPError

from astropy.wcs import WCS
from astropy.coordinates import SkyCoord
from astropy.coordinates import SkyCoord, EarthLocation
from astropy import units
import numpy as np

Expand Down Expand Up @@ -95,6 +95,12 @@ def do_stage(self, image):


def add_ra_dec_to_catalog(image):
if all(k in image.meta for k in ('OBSGEO-X', 'OBSGEO-Y', 'OBSGEO-Z')):
loc = EarthLocation.from_geocentric(image.meta['OBSGEO-X'], image.meta['OBSGEO-Y'],
image.meta['OBSGEO-Z'], unit=units.m)
image.meta['OBSGEO-L'] = loc.lon.deg, '[deg] Longitude of telescope, East positive'
image.meta['OBSGEO-B'] = loc.lat.deg, '[deg] Latitude or telescope, North positive'
image.meta['OBSGEO-H'] = loc.height.to(units.m).value, '[m] Height of telescope'
image_wcs = WCS(image.meta)
image_catalog = image['CAT'].data
ras, decs = image_wcs.all_pix2world(image_catalog['x'], image_catalog['y'], 1)
Expand Down
2 changes: 1 addition & 1 deletion banzai/bpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def apply_master_calibration(self, image, master_calibration_image):
except:
logger.error(f"Can't add BPM to image, stopping reduction: {format_exception()}", image=image)
return None
image.meta['L1IDMASK'] = master_calibration_image.filename, 'Id. of mask file used'
image.meta['L1IDMASK'] = master_calibration_image.filename, 'ID of mask'
return image

def on_missing_master_calibration(self, image):
Expand Down
2 changes: 1 addition & 1 deletion banzai/readnoise.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def apply_master_calibration(self, image, master_calibration_image):
except:
logger.error(f"Can't add READNOISE to image, stopping reduction: {format_exception()}", image=image)
return None
image.meta['L1IDRDN'] = master_calibration_image.filename, 'Id. of readnoise map file used'
image.meta['L1IDRDN'] = master_calibration_image.filename, 'Readnoise map'
Comment thread
cmccully marked this conversation as resolved.
return image

def on_missing_master_calibration(self, image):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "lco-banzai"
requires-python = ">=3.11,<4"
version = "1.35.1"
version = "1.35.2"
description = "Python data reduction package for LCOGT data"

authors = [
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading