program s2dw_fits2mat
        ! Uses
    use s2dw_types_mod
    use s2dw_error_mod
    use s2dw_fileio_mod
    use s2dw_core_mod
        ! Calls
    call parse_options
    call s2dw_core_free_wavdyn
    call s2dw_fileio_fits_wav_read
    call s2dw_fileio_matlab_wav_write
        ! Variables
    type (s2dw_wav_abg), allocatable, dimension (:) :: wavdyn
    complex (kind=dpc), allocatable, dimension (:,:) :: scoeff
    integer :: J
    integer :: B
    integer :: N
    integer :: bl_scoeff
    real (kind=dp) :: alpha
    character (len=STRING_LEN) :: filename_in
    character (len=STRING_LEN) :: filename_out
        ! Subroutines and functions
    subroutine parse_options ()
end program s2dw_fits2mat
 Converts a fits S2DW file containing wavelet and scaling coefficients 
 to a matlab S2DW file.
Usage: s2dw_fits2mat
Author: J. D. McEwen (mcewen@mrao.cam.ac.uk)
Version: 0.1 - May 2008
type (s2dw_wav_abg), allocatable, dimension (:) :: wavdyn
complex (kind=dpc), allocatable, dimension (:,:) :: scoeff
integer :: J
integer :: B
integer :: N
integer :: bl_scoeff
real (kind=dp) :: alpha
character (len=STRING_LEN) :: filename_in
character (len=STRING_LEN) :: filename_out
subroutine parse_options ()
    ! Calls: getArgument
end subroutine parse_options
 Parses the options passed when program called.
! @author J. D. McEwen (mcewen@mrao.cam.ac.uk)
Version: 0.1 - November 2007