pygplates.GpmlOldPlatesHeader
- class pygplates.GpmlOldPlatesHeader
Bases:
PropertyValue
A property value containing metadata inherited from imported PLATES data files.
A GpmlOldPlatesHeader can also be pickled.
Changed in version 0.42: Added pickle support.
- __init__(region_number, reference_number, string_number, geographic_description, plate_id_number, age_of_appearance, age_of_disappearance, data_type_code, data_type_code_number, data_type_code_number_additional, conjugate_plate_id_number, colour_code, number_of_points)
Create a property value containing PLATES metadata.
- Parameters:
region_number (int) – region number
reference_number (int) – reference number
string_number (int) – string number
geographic_description (string) – geographic description
plate_id_number (float) – plate id number
age_of_appearance (float) – age of appearance
age_of_disappearance (int) – age of disappearance
data_type_code (string) – data type code
data_type_code_number (int) – data type code number
data_type_code_number_additional (string) – data type code number additional
conjugate_plate_id_number (int) – conjugate plate id number
colour_code (int) – colour code
number_of_points (int) – number of points - not counting the final ‘terminator’ point (99.0000,99.0000)
Methods
__init__
(region_number, reference_number, ...)Create a property value containing PLATES metadata.
accept_visitor
(visitor)Accept a property value visitor so that it can visit this property value.
clone
()Create a duplicate of this property value (derived) instance, including a recursive copy of any nested property values that this instance might contain.
Returns the age of appearance.
Returns the age of disappearance.
Returns the colour code.
Returns the conjugate plate id number.
Returns the data type code.
Returns the data type code number.
Returns the data type code number additional.
Returns the geographic description.
get_geometry
()Extracts the
geometry
if this property value contains a geometry.Returns the number of points.
Returns the plate id number.
Returns the reference number.
Returns the region number.
Returns the string number.
get_value
([time=0])Extracts the value, of this possibly time-dependent property value, at the reconstruction time.
set_age_of_appearance
(age_of_appearance)Sets the age of appearance.
set_age_of_disappearance
(age_of_disappearance)Sets the age of disappearance.
set_colour_code
(colour_code)Sets the colour code.
Sets the conjugate plate id number.
set_data_type_code
(data_type_code)Sets the data type code.
set_data_type_code_number
(data_type_code_number)Sets the data type code number.
Sets the data type code number additional.
Sets the geographic description.
set_number_of_points
(number_of_points)Sets the number of points.
set_plate_id_number
(plate_id_number)Sets the plate id number.
set_reference_number
(reference_number)Sets the reference number.
set_region_number
(region_number)Sets the region number.
set_string_number
(string_number)Sets the string number.
- get_age_of_appearance()
Returns the age of appearance.
- Return type:
float
- get_age_of_disappearance()
Returns the age of disappearance.
- Return type:
float
- get_colour_code()
Returns the colour code.
- Return type:
int
- get_conjugate_plate_id_number()
Returns the conjugate plate id number.
- Return type:
int
- get_data_type_code()
Returns the data type code.
- Return type:
string
- get_data_type_code_number()
Returns the data type code number.
- Return type:
int
- get_data_type_code_number_additional()
Returns the data type code number additional.
- Return type:
string
- get_geographic_description()
Returns the geographic description.
- Return type:
string
- get_number_of_points()
Returns the number of points.
- Return type:
int
- get_plate_id_number()
Returns the plate id number.
- Return type:
int
- get_reference_number()
Returns the reference number.
- Return type:
int
- get_region_number()
Returns the region number.
- Return type:
int
- get_string_number()
Returns the string number.
- Return type:
int
- set_age_of_appearance(age_of_appearance)
Sets the age of appearance.
- Parameters:
age_of_appearance (float) – age of appearance
- set_age_of_disappearance(age_of_disappearance)
Sets the age of disappearance.
- Parameters:
age_of_disappearance (float) – age of disappearance
- set_colour_code(colour_code)
Sets the colour code.
- Parameters:
colour_code (int) – colour code
- set_conjugate_plate_id_number(conjugate_plate_id_number)
Sets the conjugate plate id number.
- Parameters:
conjugate_plate_id_number (int) – conjugate plate id number
- set_data_type_code(data_type_code)
Sets the data type code.
- Parameters:
data_type_code (string) – data type code
- set_data_type_code_number(data_type_code_number)
Sets the data type code number.
- Parameters:
data_type_code_number (int) – data type code number
- set_data_type_code_number_additional(data_type_code_number_additional)
Sets the data type code number additional.
- Parameters:
data_type_code_number_additional (string) – data type code number additional
- set_geographic_description(geographic_description)
Sets the geographic description.
- Parameters:
geographic_description (string) – geographic description
- set_number_of_points(number_of_points)
Sets the number of points.
- Parameters:
number_of_points (int) – number of points
- set_plate_id_number(plate_id_number)
Sets the plate id number.
- Parameters:
plate_id_number (int) – plate id number
- set_reference_number(reference_number)
Sets the reference number.
- Parameters:
reference_number (int) – reference number
- set_region_number(region_number)
Sets the region number.
- Parameters:
region_number (int) – region number
- set_string_number(string_number)
Sets the string number.
- Parameters:
string_number (int) – string number