[Kst] [Bug 123399] error reading certain fits files

Ted Kisner tskisner.public at gmail.com
Tue Mar 14 21:47:41 CET 2006


Perhaps we should leave this alone for now.  It fixes the problem that
Carrie was seeing (at least for me).

For 1.3, maybe we should rename LFIIO to "fitstable" to better match
the existing "fitsimage" datasource?  It would also be nice to have
fitstable scan through all HDU's in the  FITS file that contain a
table, and make all these fields available.  Same with fitsimage.

I will play with this in HEAD if no one objects.

-Ted


On 14 Mar 2006 20:10:56 -0000, George Staikos <staikos at kde.org> wrote:
> ------- You are receiving this mail because: -------
> You are the assignee for the bug, or are watching the assignee.
>
> http://bugs.kde.org/show_bug.cgi?id=123399
>
>
>
>
> ------- Additional Comments From staikos kde org  2006-03-14 21:10 -------
> That shouldn't be a problem for backport, and I don't mind doing it as long as
> the user response is positive.  This is a low-impact area that we can easily
> update if there is a regression (in the worst case).
>
> On Tuesday 14 March 2006 14:46, Theodore Kisner wrote:
> > As a long term solution, I don't think we should be using fits_get_colname.
> >  I think the most general way to read a table is:
> >
> > 1.  fits_open_table:  open file and move to first HDU containing a table
> > 2.  fits_get_hdu_type:  determine whether ascii or binary
> > 3.  fits_read_atblhdr:  read number of columns / rows and get all names
> >     OR fits_read_btblhdr
> > 4.  create fieldnames based on column number and column name (if it exists)
> >
> > This is what I was going to implement before I was interrupted by this
> > commit. Perhaps this is too many changes to be backported to 1.2, but I
> > think it is the safest way to read all the brain-dead FITS files out there.
> >
> > -Ted
> >
> > On Tuesday 14 March 2006 11:28, Andrew Walker wrote:
> > | ------- You are receiving this mail because: -------
> > | You are the assignee for the bug, or are watching the assignee.
> > |
> > | http://bugs.kde.org/show_bug.cgi?id=123399
> > | arwalker sumusltd com changed:
> > |
> > |            What    |Removed                     |Added
> > | -------------------------------------------------------------------------
> > |-- - Status|UNCONFIRMED                 |RESOLVED
> > |          Resolution|                            |FIXED
> > |
> > |
> > |
> > | ------- Additional Comments From arwalker sumusltd com  2006-03-14 20:28
> > | ------- SVN commit 518642 by arwalker:
> > |
> > | BUG:123399 Allow for the posibility that column labels are identical.
> > |
> > |  M  +12 -3     lfiio.cpp
> > |
> > |
> > | --- trunk/extragear/graphics/kst/src/datasources/lfiio/lfiio.cpp
> > | #518641:518642 @ -117,19 +117,28  @
> > |            for( i=0; i<iNumCols; i++ )
> > |            {
> > |              iStatus = 0;
> > | -
> > | +
> > |              sprintf( charTemplate, "%d", i+1 );
> > |              iResult = fits_get_colname( ffits, CASEINSEN, charTemplate,
> > | charName, &iColNumber, &iStatus ); if( iResult == 0 )
> > |              {
> > | +              int iOffset = i;
> > | +
> > |                strName = charName;
> > | -              _fieldList.append( strName );
> > | +              //
> > | +              // ensure that we don't add duplicates to the
> > | _fieldList... +              //
> > | +              while( _fieldList.findIndex( strName ) != -1 )
> > | +              {
> > | +                strName = QString("%1[%2]").arg( charName ). arg(
> > | iOffset ); +                iOffset++;
> > | +              }
> > |              }
> > |              else
> > |              {
> > |                strName.setNum( i );
> > | -              _fieldList.append( strName );
> > |              }
> > | +            _fieldList.append( strName );
> > |
> > |              iStatus = 0;
> > |              iResult = fits_get_coltype( ffits, i+1, &iTypeCode,
> > | &lRepeat, &lWidth, &iStatus );
> > | _______________________________________________ Kst mailing list
> > | Kst kde org
> > | https://mail.kde.org/mailman/listinfo/kst
> >
> > _______________________________________________
> > Kst mailing list
> > Kst kde org
> > https://mail.kde.org/mailman/listinfo/kst
> _______________________________________________
> Kst mailing list
> Kst at kde.org
> https://mail.kde.org/mailman/listinfo/kst
>


More information about the Kst mailing list