Giter VIP home page Giter VIP logo

Comments (6)

bmu avatar bmu commented on June 12, 2024

Recent matlab files should be hdf5 based (see this question on SO). So maybe we could simply update this file and read it with pd.read_hdf (Seems not to work with the current file, so maybe this is created with an older matlab version).

from pvlib-python.

wholmgren avatar wholmgren commented on June 12, 2024

Looks like it's matlab 5.

$ head pvlib/data/LinkeTurbidities.mat 
MATLAB 5.0 MAT-file, Platform: PCWIN64, Created on: Mon Jul 16 10:16:10 2012

I checked the PVLIB 1.2 release and it's the same. I think that the ideal situation would be for both the matlab and python projects to use the same .h5 file. Maybe this could be a part of the work going into #3.

from pvlib-python.

robwandrews avatar robwandrews commented on June 12, 2024

Yes, I think the best would be for us to lead in translating this into a more portable file format, best case would be a .csv that can then be read with standard techniques (as this is just a 2D array). Any takers? In the near term, @wholmgren , could you add scipy.io to the setup.py to make sure we're internally consistent?

from pvlib-python.

wholmgren avatar wholmgren commented on June 12, 2024

Yes, but I would prefer to go with something like

try: 
    import scipy.io
except ImportError:
    raise(ImportError, 'You must install scipy to automatically load the Linke Turbidities')

right before line 137.

from pvlib-python.

robwandrews avatar robwandrews commented on June 12, 2024

Sounds good to me

from pvlib-python.

bmu avatar bmu commented on June 12, 2024

I close this for 0.1 in favor of #36

from pvlib-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.