Comments (2)
Not sure if you have already solved the problem. A simple solution would be to use python csv reader or numpy and then write it as pickle. However, in saying so, it is difficult to suggest a solution without looking at the data structure.
Secondly, even if you convert it to pickle, the pickle should provide the data in a format as expected by the functions you are calling from SkillMetrics package. I think you have looked through the test cases, which use pickle as the data used is stored in such fomat.
However, if you look further below, you can see
taylor_stats1 = sm.taylor_statistics(data.pred1,data.ref,'data')
taylor_stats2 = sm.taylor_statistics(data.pred2,data.ref,'data')
taylor_stats3 = sm.taylor_statistics(data.pred3,data.ref,'data')
where, it just expects 1D numpy array. I would suggest you to use numpy arrays. A simple example would be something like this
data = np.loadtxt("file.csv", delimiter=',')
taylor_stats1 = sm.taylor_statistics(data[:,1],data[:, 0],'data')
Here, I have assumed that your csv file has two columns, where first column is observed data and second column is model data. Also, I have assumed at it is comma separated.
from skillmetrics.
You don't need to convert your csv file to pkl. I would directly read the csv file into Python using pandas or some other package. I'm sure you can find many examples on the Internet on how to do this. Then just store your data columns into lists and pass these to the taylor_statistics function. Using the loadtxt
example above this would be
taylor_stats1 = sm.taylor_statistics(data[:,1],data[:, 0])
from skillmetrics.
Related Issues (20)
- Not installing in Google Colab HOT 2
- check_taylor_stats not working properly HOT 2
- Plot taylor_diagram inside subplots HOT 12
- The RMSD value inputed by csv file is different with the RMSD value in the Taylor Diagrme on the same model HOT 1
- Need to be able to change Legend size as well as the color on the Taylor diagrams HOT 3
- Potential pull request: plotting Taylor diagrams as subplots HOT 3
- cmap is not use!!! HOT 2
- Range of values on the standard deviation axis do not adjust during overlay HOT 3
- Issue with numpy function HOT 1
- bold ticks HOT 2
- Error when many marker/colors are needed
- Missing setup.py HOT 1
- How can I show normalized std on the diagram? HOT 2
- Outdated numpy dependancy HOT 5
- Incorrect paper reference in wiki
- Use different marker symbols in example taylor13.py
- Set limits for the angular coordinate in the Taylor diagrams
- Error with cmapzdata functionality
- RMSD title location
- custom control marker color
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skillmetrics.