|
|
PDS_JP2
|
#include <HiRISE_PDS_Converter.hh>
Inheritance diagram for HiRISE_PDS_Converter:


Public Member Functions | |
| HiRISE_PDS_Converter () | |
| Constructs an empty HiRISE_PDS_Converter. | |
| HiRISE_PDS_Converter (const std::string &pathname, const char **excluded_names=NULL, const char **image_names=NULL) | |
| Constructs a HiRISE_PDS_Converter from a named file. | |
| bool | label_recognized () const |
| Test whether the label parameters are recognized by this converter. | |
| 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. | |
| 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. | |
| std::string | product_names () const |
| Get the name of the product types that this converter is intended to process. | |
| void | data_set_version (PDS_Data *additional_parameters) |
| Adjust the data set version parameters. | |
| void | adjust_image_map_projection (idaeim::PVL::Aggregate *image_map_projection, const Rectangle &image_region, unsigned int ratio) |
| Adjust the IMAGE_MAP_PROJECTION_GROUP_NAME of parameters. | |
Static Public Attributes | |
| static const char *const | ID |
| Class identification name with source code version and date. | |
| static const char * | PRODUCT_TYPE_PARAMETER_NAME = "INSTRUMENT_ID" |
| Name of the parameter whose value is the product name being converted. | |
| static const char * | HIRISE_PRODUCT_TYPE = "HIRISE" |
| Default product name if the PRODUCT_TYPE_PARAMETER_NAME is not found. | |
| static const char * | EXCLUDED_DATA_BLOCK_NAMES [] |
| Names of data blocks to be ignored (redundant with other data blocks). | |
| static const char * | IMAGE_DATA_BLOCK_NAMES [] |
| Names of additional Image_Data_Block parameter aggregates. | |
| static const int | DEFAULT_PDS_LABEL_SIZE = 32768 |
| Default size (bytes) of an attached PDS label. | |
| static const char * | UPDATE_VERSION_PARAMETER_NAMES [] |
| static const int | DATA_SET_VERSION_MINOR_VALUE = 1 |
| DATA_SET_xxx version minor value. | |
| static const char * | IMAGE_MAP_PROJECTION_GROUP_NAME = "IMAGE_MAP_PROJECTION" |
| IMAGE_MAP_PROJECTION parameters to be adjusted. | |
| static const char * | PROJECTION_TYPE_PARAMETER_NAME = "MAP_PROJECTION_TYPE" |
| Projection type. | |
| static const char * | HORIZONATAL_OFFSET_PARAMETER_NAME = "SAMPLE_PROJECTION_OFFSET" |
| Horizonatal offset. | |
| static const char * | VERTICAL_OFFSET_PARAMETER_NAME = "LINE_PROJECTION_OFFSET" |
| Vertical offset. | |
| static const char * | IMAGE_HEIGHT_PARAMETER_NAME = "LINE_LAST_PIXEL" |
| Image height. | |
| static const char * | IMAGE_WDITH_PARAMETER_NAME = "SAMPLE_LAST_PIXEL" |
| Image width. | |
| static const char * | PIXELS_PER_DEGREE_PARAMETER_NAME = "MAP_RESOLUTION" |
| Pixels per degree. | |
| static const char * | METERS_PER_PIXEL_PARAMETER_NAME = "MAP_SCALE" |
| Meters per pixel. | |
| static const char * | MINIMUM_LATITUDE_PARAMETER_NAME = "MINIMUM_LATITUDE" |
| Minimum latitude. | |
| static const char * | MAXIMUM_LATITUDE_PARAMETER_NAME = "MAXIMUM_LATITUDE" |
| Maximum latitude. | |
| static const char * | EASTERN_LONGITUDE_PARAMETER_NAME = "EASTERNMOST_LONGITUDE" |
| Eastern longitude. | |
| static const char * | WESTERN_LONGITUDE_PARAMETER_NAME = "WESTERNMOST_LONGITUDE" |
| Western longitude. | |
This class provides the HiRISE product-specific implementation of a PDS_Converter.
|
|
Constructs an empty HiRISE_PDS_Converter.
|
|
||||||||||||||||
|
Constructs a HiRISE_PDS_Converter from a named file. The PDS file may contain an attached PDS label or be a detached PDS/JP2 label file. Either the write_PDS_label or write_PDS_JP2_label methods can be used to convert either source, respectively.
|
|
|
Test whether the label parameters are recognized by this converter. The test will succeed if an image data block can be found in the source file label and a PRODUCT_TYPE_PARAMETER_NAME is found with the HIRISE_PRODUCT_TYPE value.
Reimplemented from Generic_PDS_Converter. |
|
||||||||||||||||||||
|
Write a detached PDS/JP2 label file. A copy is made of the source label represented by the Parameter Aggregate of the PDS_Converter base class. The original parameters are then have data set version updates applied if appropriate. Then the base class write_PDS_JP2_label method is called to apply the generic label modifications and write the label file. Finally the copy of the original parameters is restored to the content of this converter.
Reimplemented from Generic_PDS_Converter. |
|
||||||||||||||||||||||||
|
Write a PDS label for image data to be appended. A copy is made of the source label represented by the Parameter Aggregate of the PDS_Converter base class. The original parameters then have their image map projection parameters adjusted to be consistent with the selected image region and rendering resolution. Then the base class write_PDS_label method is called to apply the generic label modifications and write the label file. Finally the copy of the original parameters is restored to the content of this converter.
Reimplemented from Generic_PDS_Converter. |
|
|
Get the name of the product types that this converter is intended to process. The value of the INSTRUMENT_ID parameter is used.
Reimplemented from Generic_PDS_Converter. |
|
|
Adjust the data set version parameters. Unless the additional_parameters are non-null and contain a GeoTIFF_PARAMETER_NAME or GML_PARAMETER_NAME parameter with a value of "TRUE" or "1", nothing is done. For each of the UPDATE_VERSION_PARAMETER_NAMES the parameter value has its minor version number set to the DATA_SET_VERSION_MINOR_VALUE if it is less than that value. The version number is expected to be at the end of the parameter value string in the format "Vm.n", where m is the major version number and n is the minor version number. If any of the UPDATE_VERSION_PARAMETER_NAMES can not be found or a minor version number is not found in its value, it is left unchanged.
|
|
||||||||||||||||
|
Adjust the IMAGE_MAP_PROJECTION_GROUP_NAME of parameters. This method is only used during the write_PDS_label PDS/JP2 to PDS label conversion. N.B.: The parameters are modified in place. The following parameters are adjusted to be consistent with a selected subarea and/or reduced resolution rendering of the image:
N.B.: If the IMAGE_MAP_PROJECTION_GROUP_NAME parameter value specifies that a stereographicp projection was used and the image region is not the entire image then the image boundary parameters will be removed from the converted label because the linear re-mapping normally used would not be reliable for the non-linear projection. An implementation of the non-linear projection algorithm is needed to correct this defect. These parameters are not necessary to perform mappings between image (sample, line) and real world (longitude,latitude) locations using the appropriate projection algorithm.
|
|
|
Initial value:
"UA::HiRISE::HiRISE_PDS_Converter (1.17 2008/01/09 21:42:26)"
Reimplemented from Generic_PDS_Converter. |
|
|
Name of the parameter whose value is the product name being converted.
|
|
|
Default product name if the PRODUCT_TYPE_PARAMETER_NAME is not found.
|
|
|
Initial value:
{
"CALIBRATION_LINE_PREFIX_TABLE",
"CALIBRATION_LINE_SUFFIX_TABLE",
"LINE_PREFIX_TABLE",
"LINE_SUFFIX_TABLE",
0
}
|
|
|
Initial value:
{
"CALIBRATION_IMAGE",
0
}
|
|
|
Default size (bytes) of an attached PDS label.
Reimplemented from Generic_PDS_Converter. |
|
|
Initial value:
{
"DATA_SET_ID",
"DATA_SET_NAME",
NULL
}
|
|
|
DATA_SET_xxx version minor value.
|
|
|
IMAGE_MAP_PROJECTION parameters to be adjusted.
|
|
|
Projection type.
|
|
|
Horizonatal offset.
|
|
|
Vertical offset.
|
|
|
Image height.
|
|
|
Image width.
|
|
|
Pixels per degree.
|
|
|
Meters per pixel.
|
|
|
Minimum latitude.
|
|
|
Maximum latitude.
|
|
|
Eastern longitude.
|
|
|
Western longitude.
|
1.4.6