Git Product home page Git Product logo

spice_jitter_correction's Introduction

SPICE jitter correction

Correct the pointing of SolarOrbiter/SPICE for each slit position, using the AOCS data present in the FITS files.

Sample SPICE intensity map before and after alignment

This tool transforms regular L2 FITS files into โ€˜L2rโ€™ files, where the pointing instability is corrected and the data is interpolated onto a regular grid.

Note that for rasters, X-positions no longer correspond to slit positions in the interpolated L2r files. As a result, the correspondence between X and time may be lost. This means that intensities at consecutive X-positions could originate non-consecutive time steps, or event that intensities from different time steps could be interpolated onto the same X-position.

Warning: This tool requires that the L2 FITS contain the pointing at each slit position (in image extensions named WCSDVARR). These data are not yet present all FITS files, but will be added in a future release. For files without the WCSDVARR extension, the slit positions can be computed from the SPICE kernels using the spice_stew package.

Installation

pip install git+https://github.com/gpelouze/spice_jitter_correction.git

Usage

From the command line

Use the spice_jitter_correction command in the terminal, eg:

spice_jitter_correction /archive/SOLAR-ORBITER/SPICE/fits/level2/2021/09/14/solo_L2_spice-n-ras_20210914T025031_V07_67109159-000.fits -O ./spice_jitter_correction_test/ --plot-results

See spice_jitter_correction -h for more options.

In Python

Use the spice_jitter_correction.correct_jitter function, eg:

import spice_jitter_correction
spice_jitter_correction.correct_jitter(
    '/archive/SOLAR-ORBITER/SPICE/fits/level2/2021/09/14/solo_L2_spice-n-ras_20210914T025031_V07_67109159-000.fits',
    './spice_jitter_correction_test/',
    plot_results=True,
    )

License

This package is released under a MIT open source licence. See LICENSE.txt.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.