Giter Club home page Giter Club logo

dsurf's Introduction

dsurf

Library for D programming language that provides tools to work with surfaces (2D grids)

D D

Simple library for D to deal with surfaces (2D grids). Regular cartesian-cell 2D grids currently are supported.

Information

Documentation is available here

Author: Dmitriy Linev

License: MIT

Features

  • Import 2D grids from popular formats
  • Perform arithmetic calculations with 2D grids
  • Export to popular formats to be able to open it in special software (like Golden Software Surfer or Schlumberger Petrel)

Supported import formats

  • CPS-3 ASCII
  • ZMap+
  • IRAP Classic ASCII (aka ROXAR text)

Supported export formats

  • CPS-3 ASCII
  • ZMap+
  • IRAP Classic ASCII (aka ROXAR text)

Example

auto surface = new CartesianSurface;
surface.loadFromFile("./data/surface.cps");
// perform some serious calculation
foreach(i; 0 .. surface.nx) {
    foreach(j; 0 .. surface.ny) {
        surface.z[i][j] = someSeriousCalculation();
    }
}

// inverse Z axis polarity for export
surface *= -1;
surface.saveToFile("./data/calculated.cps", "cps");

Package content

Directory Contents
./source Source code.
./test Unittest data.

Installation

dsurf is available in dub. If you're using dub run dub add dsurf in your project folder and dub will add dependency and fetch the latest version.

dsurf's People

Contributors

beardedbeaver avatar

Stargazers

 avatar

Watchers

 avatar

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.