CHAMP ASC/CSC
mis-alignment correction

GFZ-MINI-LOGO

Summary

This page contains a calibration parameter file and applications which can be used to correct Level-2 CHAMP FGM-NEC vector data for mis-alignments between the star imager and the vector magnetometer. Contains C-language routines, callable from Fortran and other languages to read in the parameter file sca.txt and perform the star imager mis-alignment correction for Level-2 CHAMP FGM-NEC vector data. Adopted code and a demo script to call and run this from matlab is provided too.

Applicable on FGM-NEC versions lower then 51 only -- in version 51 the star-imager/vector-magnetometer correction is already done!

Files

Calibration Parameter File
Type Format Mbyte Date Contents
Data Zip 0.9 2010 Nov 5
sca-2010-11-05.zip

The file contains the mis-alignment in degrees in NEC coordinates as
(MJD, rot-about-x, rot-about-y, rot-about-z, flag).

This file will be updated, but not regulary. The name of this file indicates the date of last update. For use with the application code below rename it to 'sca.txt' or customize the filename in the code.

Plain C Version
Type Format Mbyte Date Contents
C code ASCII 0.006 2006 May 30 sca-corr.c

C source code of a program able to correct Level-2 CHAMP FGM-NEC vector data for mis-alignments between the star imager and the vector magnetometer, using the parameter data file 'sca.txt'.

Bug-fix (2006-May-30): An error in the subroutine sca_delaz caused an incomplete correction of the misalignment angles for data at high latitudes.
Matlab/Mex Version
Type Format Mbyte Date Contents
C code ASCII 0.008 2006 May 30 sca_corr_ml.c

This is a slightly variant of the plain-C code version sca_corr.c with an interface function added, prepared to use inside matlab by compiling with the matlab utility mex.

The function parameter list differ from the plain-C version. See example batch test.m below for usage in matlab.

Bug-fix (2006-May-30): An error in the subroutine sca_delaz caused an incomplete correction of the misalignment angles for data at high latitudes.
matlab code ASCII 0.001 2004 Jun 22 sca_init.m

Simple matlab -only function to read the parameter file sca.txt, replacing the initialization function sca_open found in sca_corr.c. See example batch test.m below for usage.
matlab code ASCII 0.001 2004 Jun 22 test.m

Simple matlab batch showing usage of the mex/matlab application sca_corr_ml.c and sca_init.m.

Stefan Maus and Martin Rother, June/Oct 2004.
Last modified: Tue Mar 08 10:26 MEST 2011 Alexander Jordan