[feature request] Python script for converting a FITS file to JP2

Bug #621807 reported by Jack Ireland
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
JP2Gen - JPEG 2000 Generation Tools
Confirmed
Wishlist
Jack Ireland

Bug Description

It would be possible to use Python, PyFITS and the kakadu libraries to create a script that converts an input FITS file into a JP2 file. This would enable JP2Gen to use the most recent releases of Kakadu instead of the currently used IDL 7.1 (which implements Kakadu 4.5). Hopefully this can be done by directly passing the FITS data to Kakadu without having to write an intermediate image format.

Changed in jp2gen:
importance: Undecided → Wishlist
status: New → Confirmed
assignee: nobody → Jack Ireland (jack-ireland)
Revision history for this message
Daniel Mueller (dmueller-esa) wrote : Re: [Bug 621807] [NEW] [feature request] Python script for converting a FITS file to JP2

Hi Jack,

Why not use CFITSIO (http://heasarc.gsfc.nasa.gov/fitsio/) instead? The Kakadu libraries are written in C/C++, so in order to use Python, you would probably have to write a Python extension first to call the Kakadu libraries. Keeping it C/C++ all the way might be easier.

Cheers,
Daniel

On Aug 21, 2010, at 17:07 , Jack Ireland wrote:

> Public bug reported:
>
> It would be possible to use Python, PyFITS and the kakadu libraries to
> create a script that converts an input FITS file into a JP2 file. This
> would enable JP2Gen to use the most recent releases of Kakadu instead of
> the currently used IDL 7.1 (which implements Kakadu 4.5). Hopefully
> this can be done by directly passing the FITS data to Kakadu without
> having to write an intermediate image format.
>
> ** Affects: jp2gen
> Importance: Wishlist
> Assignee: Jack Ireland (jack-ireland)
> Status: Confirmed
>
> ** Changed in: jp2gen
> Importance: Undecided => Wishlist
>
> ** Changed in: jp2gen
> Status: New => Confirmed
>
> ** Changed in: jp2gen
> Assignee: (unassigned) => Jack Ireland (jack-ireland)
>
> --
> [feature request] Python script for converting a FITS file to JP2
> https://bugs.launchpad.net/bugs/621807
> You received this bug notification because you are a member of
> Helioviewer, which is the registrant for JP2Gen - JPEG 2000 Generation
> Tools.
>
> Status in JP2Gen: Confirmed
>
> Bug description:
> It would be possible to use Python, PyFITS and the kakadu libraries to create a script that converts an input FITS file into a JP2 file. This would enable JP2Gen to use the most recent releases of Kakadu instead of the currently used IDL 7.1 (which implements Kakadu 4.5). Hopefully this can be done by directly passing the FITS data to Kakadu without having to write an intermediate image format.
>
>

Revision history for this message
Jack Ireland (jack-ireland) wrote :

Yeah, I thought about that. I've been playing around with Python a lot
recently and it has several different ways to interact with C. Having a
full C/C++ application would be better and probably faster, but I might
be able to hack something together relatively quickly using Python
compared to how long a C application would take me. The usefulness of
the Python based approach will depend on speed.

jack

On 08/23/2010 08:33 AM, Daniel Mueller wrote:
> Hi Jack,
>
> Why not use CFITSIO (http://heasarc.gsfc.nasa.gov/fitsio/) instead? The
> Kakadu libraries are written in C/C++, so in order to use Python, you
> would probably have to write a Python extension first to call the Kakadu
> libraries. Keeping it C/C++ all the way might be easier.
>
> Cheers,
> Daniel
>
> On Aug 21, 2010, at 17:07 , Jack Ireland wrote:
>
>
>> Public bug reported:
>>
>> It would be possible to use Python, PyFITS and the kakadu libraries to
>> create a script that converts an input FITS file into a JP2 file. This
>> would enable JP2Gen to use the most recent releases of Kakadu instead of
>> the currently used IDL 7.1 (which implements Kakadu 4.5). Hopefully
>> this can be done by directly passing the FITS data to Kakadu without
>> having to write an intermediate image format.
>>
>> ** Affects: jp2gen
>> Importance: Wishlist
>> Assignee: Jack Ireland (jack-ireland)
>> Status: Confirmed
>>
>> ** Changed in: jp2gen
>> Importance: Undecided => Wishlist
>>
>> ** Changed in: jp2gen
>> Status: New => Confirmed
>>
>> ** Changed in: jp2gen
>> Assignee: (unassigned) => Jack Ireland (jack-ireland)
>>
>> --
>> [feature request] Python script for converting a FITS file to JP2
>> https://bugs.launchpad.net/bugs/621807
>> You received this bug notification because you are a member of
>> Helioviewer, which is the registrant for JP2Gen - JPEG 2000 Generation
>> Tools.
>>
>> Status in JP2Gen: Confirmed
>>
>> Bug description:
>> It would be possible to use Python, PyFITS and the kakadu libraries to create a script that converts an input FITS file into a JP2 file. This would enable JP2Gen to use the most recent releases of Kakadu instead of the currently used IDL 7.1 (which implements Kakadu 4.5). Hopefully this can be done by directly passing the FITS data to Kakadu without having to write an intermediate image format.
>>
>>
>>
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.