Giter Site home page Giter Site logo

pyparticleprobe's Introduction

pyparticleprobe

A python package to process cloud and precipitation particle probe data.

Author: Nick Guy ([email protected])

Created: 21 Jan 2014
Updated: 14 May 2014 โ€“ Restructured functions and pathways
Updated: 15 Jul 2014 - Refactored to take class structure. Heavily influenced by the PyDisdrometer package by Joseph Hardin.
Updated: 4 Aug 2014 - Implemented a number of housekeeping changed by Joseph Hardin to allow the possible future merge with the PyDisdrometer package.

Installation

As of now, I have used these as a standalone package that was not installed as a package. To access, I just added the path where the folder was unpacked to my PYTHONPATH environmental variable path (in my .bashrc file)

e.g. export PYTHONPATH=/Users/nickguy/programs/python/pythonlib:/Users/nickguy/programs/python/pythonlib/pyparticleprobe

There is a setup.py file provided, HOWEVER this may not work properly and I would suggest using the above method to access the package until the software becomes more mature.

Usage

Initiate class by opening a file. There are a number of optional arguments that help in processing the file. As of now these attributes are tailored to files created after processing the CIP/PIP probes aboard the NOAA P-3 aircraft.

import pyparticleprobe

dsd = pyparticleprobe.read_file(filename)

To add additional analyis information:

dsd.get_bin_parameters() # Bin the data over diameters bin

dsd.get_ts_parameters() # Bin the data over each time step

dsd.get_model_parameters(modelName='gamma_ua98') # Get the model fit parameters, default uses gamma model as in Ulbrich and Atlas (1998)

Requirements

This library borrow heavily from the PyDisdrometer package. Therefore it uses the typical scientific python stack. Development used the Anaconda distribution (1.9.1 & Python 2.7.7).

It also requires the PyTMatrix Package for scattering calculations.

Notes

This code is in beta format and was designed to work with data from the NOAA P-3 aircraft that has been processed (by the University of California, Santa Cruz). It should be extendable to other probe data, but will need to have a new reader if file structure is different.

Future enhancements will hopefully include the ability to read other data files.
Also, the plotting portion depends on a local library on my machine and therefore won't work. This will eventually be changed to allow some plots to be produced.

pyparticleprobe's People

Contributors

josephhardinee avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.