Basic Usages
Download rotation files
The Python code below downloads the rotation
files from the Cao2024
model into a local folder plate-models-data-dir
and displays the file paths on screen.
1from plate_model_manager import PlateModelManager
2
3mgr = PlateModelManager()
4cao2024_model = mgr.get_model("Cao2024", data_dir="plate-models-data-dir")
5# download the rotation files and print their local paths
6print(cao2024_model.get_rotation_model())
See also
See the List all available model names section for how to get a list of available models.
Download a layer
The Python code below downloads the Coastlines
layer from the Cao2024
model
and displays the file paths on screen.
1from plate_model_manager import PlateModelManager
2
3mgr = PlateModelManager()
4cao2024_model = mgr.get_model("Cao2024", data_dir="plate-models-data-dir")
5# download Coastlines from model Cao2024 and display the local path
6print(cao2024_model.get_layer("Coastlines"))
See also
See the List all layer names section for how to get a list of available layers.
List all layer names
The Python code below displays a list of available layers in the model Cao2024 on the screen.
1from plate_model_manager import PlateModelManager
2
3mgr = PlateModelManager()
4cao2024_model = mgr.get_model("Cao2024", data_dir="plate-models-data-dir")
5# display a list of available layers in model Cao2024
6print(cao2024_model.get_avail_layers())
List all available model names
The Python code below displays a list of available plate models.
1from plate_model_manager import PlateModelManager
2
3print(PlateModelManager().get_available_model_names())