A Taylor Diagram is a graphical representation used to evaluate how well models reproduce the observed data. It displays three statistical measures: correlation coefficient, root mean square deviation (RMSD), and the standard deviation of both observed and model data. This repository contains the code for generating Taylor Diagrams to visualize the performance of various models based on multiple evaluation metrics. The Taylor Diagrams are created from a CSV file containing the observed values and model predictions.
- Generates Taylor Diagrams for multiple models from a CSV file.
- Customizable markers and marker sizes.
- Interactive plots with standard deviation and correlation contours.
Ensure you have the following Python packages installed:
numpy
matplotlib
pandas
You can install these packages using pip
:
pip install numpy matplotlib pandas
TaylorDiagram.py
: Contains theTaylorDiagram
class and script to generate Taylor Diagrams.data.csv
: Sample CSV file with observed values and model predictions.
-
Clone the repository:
git clone https://github.com/EbrahimAlwajih/Taylor-Diagram.git cd Taylor-Diagram
-
Prepare your CSV file:
Ensure your CSV file (
data.csv
) has the following structure:model,observed,Model 1,Model 2,Model 3,Model 4,Model 5 value1,observed_value,Model 1_value,Model 2_value,Model 3_value,Model 4_value,Model 5_value value2,observed_value,Model 1_value,Model 2_value,Model 3_value,Model 4_value,Model 5_value ...
-
Run the script:
Execute the script to generate the Taylor Diagrams:
python TaylorDiagram.py
The Taylor Diagrams will be displayed in a new window.
-
Markers: You can customize the markers for the radar charts by modifying the
markers
parameter in theTaylorDiagram
class.markers = ['*', 's', '^', 'D', 'x']
-
Marker Size: You can adjust the size of the markers by changing the
marker_size
parameter.marker_size = 10
This code is licensed under the MIT License - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
If you have any questions, feel free to reach out to the repository owner.