Changeset View
Changeset View
Standalone View
Standalone View
io_convert_image_to_mesh_img/import_img.py
| Context not available. | |||||
| if line.rstrip() == "END": | if line.rstrip() == "END": | ||||
| done = True | done = True | ||||
| label.append(line) | label.append(line) | ||||
| return (label, self.parsePDSLabel(self.iterArr(label))) | return label, self.parsePDSLabel(self.iterArr(label)) | ||||
| def getLinesAndSamples(self, label): | def getLinesAndSamples(self, label): | ||||
| """ uses the parsed PDS Label to get the LINES and LINE_SAMPLES parameters | """ uses the parsed PDS Label to get the LINES and LINE_SAMPLES parameters | ||||
| Context not available. | |||||
| if obj[0] == "LINE_SAMPLES": | if obj[0] == "LINE_SAMPLES": | ||||
| line_samples = int(obj[1]) | line_samples = int(obj[1]) | ||||
| return ( line_samples, lines ) | return line_samples, lines | ||||
| def getValidMinMax(self, label): | def getValidMinMax(self, label): | ||||
| """ uses the parsed PDS Label to get the VALID_MINIMUM and VALID_MAXIMUM parameters | """ uses the parsed PDS Label to get the VALID_MINIMUM and VALID_MAXIMUM parameters | ||||
| Context not available. | |||||
| if pieces[0] == "16" and pieces[1] == "FF7FFFFB": | if pieces[0] == "16" and pieces[1] == "FF7FFFFB": | ||||
| ignore_value = unpack("f", pack("I", 0xFF7FFFFB))[0] | ignore_value = unpack("f", pack("I", 0xFF7FFFFB))[0] | ||||
| return ( ignore_value ) | return ignore_value | ||||
| ############################################################################ | ############################################################################ | ||||
| ## Image operations | ## Image operations | ||||
| Context not available. | |||||