Skip to content

Instantly share code, notes, and snippets.

@nudomarinero
nudomarinero / scale_fits.py
Created June 23, 2020 20:16
Scale FITS image by a factor
"""
Scale data in fits file by a factor
TODO: Inplace mode is not working
"""
import argparse
import os
from pathlib import Path
from astropy.io import fits
import numpy as np
@nudomarinero
nudomarinero / dk_group.py
Last active April 16, 2022 19:24
Command line interface to group raw and normal files in a Digikam album.
#!/usr/bin/env python3
# -*- coding: utf8 -*-
#####
# Copyright (C) 2015 J. Sabater
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#