Giter VIP home page Giter VIP logo

proffilo's Introduction

Proffilo

https://travis-ci.com/amoodie/proffilo.svg?token=JkLAyPZnuAPbRb3qbzHn&branch=master

Proffilo is a Python package for manipulating sedimentologic survey data. In particular, Proffilo has objects designed to help organize, visualize, and analyze vertical profiles of sediment concentration and velocity in a river flow.

Full documentation here.

Status

Proffilo is currently in development, with a constantly changing API. We make no guarantee of stability, correctness, or functionality.

proffilo's People

Watchers

 avatar  avatar

proffilo's Issues

Remove legend entry if no Distributions plotted at a certain elevation.

A legend entry is generated for samples that do not have distributions.

For example:

df_dist = pd.DataFrame([[0.0003, 0.12, pf.distribution.NormalDistribution(mean=200, sigma=50)],
                        [0.0004, 0.12, pf.distribution.NormalDistribution(mean=340, sigma=50)], 
                        [0.0002, 0.7, pf.distribution.NormalDistribution(mean=340, sigma=20)], 
                        [0.00012, 1.1, pf.distribution.NormalDistribution(mean=90, sigma=30)], 
                        [0.00004, 2.3, pf.distribution.NormalDistribution(mean=310, sigma=50)]],
                  index=['ID1', 'ID2', 'ID3', 'ID4', 'ID5'],
                columns=['conc', 'elevation', 'distribution'])
stn.conc_obs = pf.observation.SedimentConcentrationObservations(data=df_dist, connection=connection)
stn.conc_obs._data.at['ID5', 'distribution'] = np.nan
stn.conc_obs2.show_distributions(cumulative=True, savestr='temp/dists_cum.png', log_x=True)

returns:
dists_cum2


The show_distributions method should remove the legend entry for elevations that do not have sediment samples. This can probably just augment the _unique_proxies() submethod of the function.

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.