Isis Developer Reference
ProcessImportFits.h
Go to the documentation of this file.
1 #ifndef ProcessImportFits_h
2 #define ProcessImportFits_h
3 
8 /* SPDX-License-Identifier: CC0-1.0 */
9 
10 
11 #include "ProcessImport.h"
12 
13 template <typename T> class QList;
14 
15 namespace Isis {
41 
42  public:
44  virtual ~ProcessImportFits();
45 
46  PvlGroup standardInstrumentGroup(PvlGroup fitsLabel) const;
47  PvlGroup extraFitsLabel(int labelNumber) const;
48  PvlGroup fitsImageLabel(int labelNumber) const;
49  void setFitsFile(FileName fitsFile);
50  void setProcessFileStructure(int labelNumber);
51 
52  private:
53  void extractFitsLabels();
54 
55  QList<PvlGroup *> *m_fitsImageLabels;
57  QList<PvlGroup *> *m_extraFitsLabels;
61  FileName m_name;
62  std::ifstream m_file;
63  QList<int> *m_headerSizes;
65  QList<int> *m_dataStarts;
66  };
67 };
68 
69 #endif
70 
71 
Isis::SizeOf
int SizeOf(Isis::PixelType pixelType)
Returns the number of bytes of the specified PixelType.
Definition: PixelType.h:46
Isis::ProcessImportFits::ProcessImportFits
ProcessImportFits()
Constructor for ProcessImportFits.
Definition: ProcessImportFits.cpp:31
Isis::PvlKeyword
A single keyword-value pair.
Definition: PvlKeyword.h:82
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
ProcessImportFits.h
Isis::IString::TrimTail
IString TrimTail(const std::string &chars)
Trims the input characters from the end of the object IString.
Definition: IString.cpp:587
Isis::ProcessImport::SetBase
void SetBase(const double base)
Sets the core base of the input cube.
Definition: ProcessImport.cpp:938
Isis::ProcessImport::InputFile
QString InputFile()
Sets the name of the input file to be read in the import StartProcess method and verifies its existan...
Definition: ProcessImport.cpp:2319
Isis::ProcessImport::DataSuffixBytes
int DataSuffixBytes() const
This method returns the number of data duffix bytes.
Definition: ProcessImport.cpp:729
Isis::PvlContainer::addKeyword
void addKeyword(const PvlKeyword &keyword, const InsertMode mode=Append)
Add a keyword to the container.
Definition: PvlContainer.cpp:202
SpecialPixel.h
Isis::FileName
File name manipulation and expansion.
Definition: FileName.h:100
PvlGroup.h
Isis::ProcessImport::BIL
@ BIL
Band Interleaved By Line Format (i.e.
Definition: ProcessImport.h:284
LineManager.h
Isis::ProcessImportFits::setProcessFileStructure
void setProcessFileStructure(int labelNumber)
Sets the Process file structure parameters based on the given image label index.
Definition: ProcessImportFits.cpp:363
Isis::PvlContainer::hasKeyword
bool hasKeyword(const QString &name) const
Check to see if a keyword exists.
Definition: PvlContainer.cpp:159
Isis::SignedWord
@ SignedWord
Definition: PixelType.h:32
ProcessImport.h
Preference.h
IString.h
Isis::ProcessImport::SetDimensions
void SetDimensions(const int ns, const int nl, const int nb)
Sets the physical size of the input cube.
Definition: ProcessImport.cpp:304
Isis::FileName::expanded
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
Isis::Double
@ Double
Definition: PixelType.h:36
PixelType.h
Isis::PvlGroup
Contains multiple PvlContainers.
Definition: PvlGroup.h:41
Isis::ProcessImport::DataPrefixBytes
int DataPrefixBytes() const
This method returns the number of data prefix bytes.
Definition: ProcessImport.cpp:721
Pvl.h
_FILEINFO_
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
Isis::ProcessImport
Byte swapper.
Definition: ProcessImport.h:155
Isis::toInt
int toInt(const QString &string)
Global function to convert from a string to an integer.
Definition: IString.cpp:93
Isis::ProcessImportFits::fitsImageLabel
PvlGroup fitsImageLabel(int labelNumber) const
Supplies the FITS image label corresponding to the given index.
Definition: ProcessImportFits.cpp:259
Isis::ProcessImport::SetInputFile
void SetInputFile(const QString &file)
Sets the name of the input file to be read in the import StartProcess method and verifies its existan...
Definition: ProcessImport.cpp:2302
Isis::ProcessImport::Organization
Interleave Organization() const
Gets the organization of the input cube.
Definition: ProcessImport.cpp:928
Isis::Msb
@ Msb
Definition: Endian.h:45
Isis::ProcessImport::SetPixelType
void SetPixelType(const Isis::PixelType type)
Sets the pixel type of the input file.
Definition: ProcessImport.cpp:264
Isis::IException
Isis exception class.
Definition: IException.h:91
Isis::FileName::toString
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
Isis::ProcessImportFits::extraFitsLabel
PvlGroup extraFitsLabel(int labelNumber) const
Supplies the extra FITS label corresponding to the given index.
Definition: ProcessImportFits.cpp:224
Isis::ProcessImportFits
Import a FITS file.
Definition: ProcessImportFits.h:40
Isis::PixelType
PixelType
Enumerations for Isis Pixel Types.
Definition: PixelType.h:27
IException.h
Isis::toDouble
double toDouble(const QString &string)
Global function to convert from a string to a double.
Definition: IString.cpp:149
Isis::IException::Programmer
@ Programmer
This error is for when a programmer made an API call that was illegal.
Definition: IException.h:146
Isis::ProcessImport::SetMultiplier
void SetMultiplier(const double mult)
Sets the core multiplier of the input cube.
Definition: ProcessImport.cpp:959
Isis::ProcessImportFits::~ProcessImportFits
virtual ~ProcessImportFits()
Destructor for ProcessImportFits.
Definition: ProcessImportFits.cpp:42
Isis::SignedInteger
@ SignedInteger
Definition: PixelType.h:34
Isis::IString::Token
IString Token(const IString &separator)
Returns the first token in the IString.
Definition: IString.cpp:897
Isis::ProcessImport::SetByteOrder
void SetByteOrder(const Isis::ByteOrder order)
Sets the byte order of the input file.
Definition: ProcessImport.cpp:324
Isis::ProcessImport::BSQ
@ BSQ
Band Sequential Format (i.e.
Definition: ProcessImport.h:281
Isis::ProcessImportFits::setFitsFile
void setFitsFile(FileName fitsFile)
Opens a FITS image file with header and reads the FITS labels.
Definition: ProcessImportFits.cpp:324
Isis::ProcessImport::SetFileHeaderBytes
void SetFileHeaderBytes(const int bytes)
This method sets the number of bytes in the header of a file.
Definition: ProcessImport.cpp:349
Isis::IString
Adds specific functionality to C++ strings.
Definition: IString.h:165
Isis::PvlContainer::findKeyword
PvlKeyword & findKeyword(const QString &name)
Find a keyword with a specified name.
Definition: PvlContainer.cpp:62
Isis::IString::TrimHead
IString TrimHead(const std::string &chars)
Trims The input characters from the beginning of the object IString.
Definition: IString.cpp:558
UserInterface.h
Isis::UnsignedByte
@ UnsignedByte
Definition: PixelType.h:29
Isis::ProcessImportFits::standardInstrumentGroup
PvlGroup standardInstrumentGroup(PvlGroup fitsLabel) const
Return a PVL instrument group populated with expected default values.
Definition: ProcessImportFits.cpp:295
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
Isis::ProcessImport::BIP
@ BIP
Band Interleaved By Pixel Format (i.e.
Definition: ProcessImport.h:288
Isis::IString::ToQt
QString ToQt() const
Retuns the object string as a QString.
Definition: IString.cpp:869
Isis::IException::User
@ User
A type of error that could only have occurred due to a mistake on the user's part (e....
Definition: IException.h:126
Isis::Real
@ Real
Definition: PixelType.h:35