Ian Bell 8a1ce06f62 Writing to single-phase tabular tables works now using msgpack-c
Packed data can be read back into python using something like

``` python
import json
import msgpack
import numpy as np
import matplotlib.pyplot as plt

with open(r'C:\Users\Belli\Documents\Code\coolprop-v5-new\dev\codelite\Debug\single_phase.bin','rb') as fp:
    i, matrices = msgpack.load(fp)
    T,h,p,rho = np.array(matrices['T']), np.array(matrices['hmolar']), np.array(matrices['p']), np.array(matrices['rhomolar'])
    T[np.logical_or(np.isnan(T),np.isinf(T))] = np.nan
    rho[np.logical_or(np.isnan(rho),np.isinf(rho))] = np.nan
    h[np.logical_or(np.isnan(h),np.isinf(h))] = np.nan
    p[np.logical_or(np.isnan(p),np.isinf(p))] = np.nan

    plt.scatter(T, np.log(p), c = rho, linewidths = 0)
    plt.show()
```
2015-02-21 17:34:27 -07:00
2015-02-21 19:59:46 +01:00
2014-12-09 12:30:11 +01:00
2014-08-26 23:16:57 +02:00

Welcome to CoolProp
===================

CoolProp is a thermophysical property database and wrappers for a selection of programming environments. 
It offers similar functionality to REFPROP, but CoolProp is open-source and free. 
It was originally developed by Ian Bell, currently a post-doc at the University of Liege, in Liege, Belgium.

* CoolProp has flexible licensing terms: Commercial - ok! Academic? - ok! |license|

* For Python, you can get the latest release via ``pip install coolprop``. Currently |downloads| of |version|  

* ... other binaries can be downloaded here: `latest release <http://sourceforge.net/projects/coolprop/files>`_ and `development version <http://sourceforge.net/projects/coolprop/files/CoolProp/nightly>`_  

* The documentation is available for the `latest release <http://www.coolprop.org>`_ and the `development version <http://www.coolprop.dreamhosters.com:8010/sphinx>`_  

* Please, if there are any issues of any kind, file an issue `here <https://github.com/CoolProp/CoolProp/issues>`_ 

* ... you might also find answers in our `FAQ <https://github.com/CoolProp/CoolProp/blob/master/FAQ.md>`_ 



.. |travis| image:: https://travis-ci.org/CoolProp/CoolProp.png?branch=master
    :target: https://travis-ci.org/CoolProp/CoolProp
    :alt: travis-ci

.. |downloads| image:: https://pypip.in/d/CoolProp/badge.png
    :target: http://pypi.python.org/pypi/CoolProp/
    :alt: downloads

.. |version| image:: https://pypip.in/v/CoolProp/badge.png
    :target: http://pypi.python.org/pypi/CoolProp/
    :alt: latest stable version

.. |license| image:: https://pypip.in/license/CoolProp/badge.png
    :target: http://pypi.python.org/pypi/CoolProp/
    :alt: license
Description
No description provided
Readme MIT 58 MiB
Languages
C++ 59.2%
Python 24%
CMake 3.2%
TeX 2.4%
Cython 2.2%
Other 8.7%