Coder Social home page Coder Social logo

Comments (3)

jhamman avatar jhamman commented on July 19, 2024

@tbohn,

I think it would be easy enough to replace the current implementation with an enumeration like you mentioned. Eliminating the need to deal with the hard coded compile time integer tags. For example, we could set up a enumeration like this:

typedef enum OUTVARS
{
OUT_BASEFLOW,
OUT_DELINTERCEPT,
OUT_DELSOILMOIST,
OUT_DELSURFSTOR,
...
N_OUTVAR_TYPES
}

From there on, the implementation inside of VIC should be the same. N_OUTVAR_TYPES being the last value in the enumeration is the implicitly the number of the output variables.

One last point. With the addition of the netCDF output support in VIC.5, we will need to define metadata for each of these variables. At a bare minimum, we need to define these attributes:

  • units,
  • long name,
  • description.

So, we should also be thinking about how best to store these too.

from vic.

jhamman avatar jhamman commented on July 19, 2024

closed via #175

from vic.

tbohn avatar tbohn commented on July 19, 2024

All these changes are great news!

On Fri, Dec 12, 2014 at 6:41 PM, Joe Hamman [email protected]
wrote:

Closed #36 #36.

—
Reply to this email directly or view it on GitHub
#36 (comment).

from vic.

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.