24 #ifndef _Generic_PDS_Converter_
25 #define _Generic_PDS_Converter_
54 static const char*
const
105 const char** excluded_names = NULL,
const char** image_names = NULL);
168 const std::string& PDS_label_pathname,
169 const std::string& JP2_pathname,
170 const char** removed_parameter_names = NULL,
171 PDS_Data* additional_parameters = NULL
231 const std::string& PDS_label_pathname,
233 unsigned int resolution_level = 1,
234 const char** removed_parameter_names = NULL,
235 PDS_Data* additional_parameters = NULL
261 bool throw_unless_found =
true);
A Generic_PDS_Converter is used to convert a generic image data product PDS label between its attache...
Definition: Generic_PDS_Converter.hh:48
static const int DEFAULT_PDS_LABEL_SIZE
Default size (bytes) of an attached PDS label.
Definition: Generic_PDS_Converter.hh:79
static const char * DATA_POINTER_PARAMETER_UNITS
Units of parameters pointing to data blocks.
Definition: Generic_PDS_Converter.hh:63
static const char * PRODUCT_TYPE
The PDS product type name.
Definition: Generic_PDS_Converter.hh:59
static const char * REMOVED_PDS_PARAMETER_NAMES[]
Names of parameters to be removed from the copy of the source PDS label when generating the converted...
Definition: Generic_PDS_Converter.hh:69
static const char * REMOVED_PDS_JP2_PARAMETER_NAMES[]
Names of parameters to be removed from the copy of the source PDS/JP2 label when generating the conve...
Definition: Generic_PDS_Converter.hh:75
Generic_PDS_Converter()
Constructs an empty Generic_PDS_Converter.
Definition: Generic_PDS_Converter.cc:123
bool label_recognized() const
Test whether the label parameters are recognized by this converter.
Definition: Generic_PDS_Converter.cc:150
void write_PDS_label(const std::string &PDS_label_pathname, const Rectangle *image_region=NULL, unsigned int resolution_level=1, const char **removed_parameter_names=NULL, PDS_Data *additional_parameters=NULL)
Write a PDS label for image data to be appended.
Definition: Generic_PDS_Converter.cc:314
Parameter * parameter_of(idaeim::PVL::Aggregate ¶meters, const char *name, bool throw_unless_found=true)
Convenience parameter finder function that may throw an exception on failure.
Definition: Generic_PDS_Converter.cc:625
std::string product_names() const
Get the name of the product types that this converter is intended to process.
Definition: Generic_PDS_Converter.cc:145
void write_PDS_JP2_label(const std::string &PDS_label_pathname, const std::string &JP2_pathname, const char **removed_parameter_names=NULL, PDS_Data *additional_parameters=NULL)
Write a detached PDS/JP2 label file.
Definition: Generic_PDS_Converter.cc:160
static const char *const ID
Class identification name with source code version and date.
Definition: Generic_PDS_Converter.hh:55
A PDS_Converter is used to convert an attached PDS image label to or from a detached PDS/JP2 label.
Definition: PDS_Converter.hh:56
PDS_Data contains PDS label PVL parameters.
Definition: PDS_Data.hh:52
virtual PDS_Data & parameters(const std::string &pathname)
Set the parameters from a source file.
Definition: PDS_Data.cc:305
Parameter(const Parameter ¶meter)
std::string pathname(const Parameter *root=NULL) const
Definition: Dimensions.cc:30
A Rectangle is a position with a size.
Definition: Dimensions.hh:223