Code Monkey home page Code Monkey logo

Comments (4)

stevengj avatar stevengj commented on August 27, 2024

You want h5math -ve 'd1 - d2' out.h5 f1.h5 f2.h5, I think?

from h5utils.

JohnWeiner avatar JohnWeiner commented on August 27, 2024

YES! The irony is that I started with that syntax about 137 attempts ago and convinced myself that it should be d1 in BOTH files because dn refers to the number n of the data set in EACH file. So I was sure that d1 - d2, while superficially plausible, could not possibly be correct! Suppose you had one data set in f1.h5 and two data sets in f2.h5 AND you wanted to take the difference between the data set in f1.h5 and the second data set in f2.h5. Would the expression be 'd1 - d3'?

from h5utils.

JohnWeiner avatar JohnWeiner commented on August 27, 2024

Wouldn't it be better to use dmn where m Is the sequential (left to right) numbering of the h5 file and n is the numbering of the data set within the mth h5 file? If such were the case, then multiple h5 files and multilple data sets within those files could be used in math expressions without confusion.

from h5utils.

stevengj avatar stevengj commented on August 27, 2024

If you have multiple datasets per file, you specify the files as filename.h5:dataset to indicate which dataset you want. (You can list the same file multiple times with different datasets.)

from h5utils.

Related Issues (14)

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.