Skip to content
/ p3dthon Public
forked from tulasinandan/p3dthon

Data Analysis Software built with python/scipy to handle the data output from P3D plasma pic simulations

Notifications You must be signed in to change notification settings

mshay/p3dthon

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

74 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

p3dthon

Data Analysis Software built with python/scipy to handle the data output from P3D plasma pic simulations ######################################################################################################################################################## ########################################################################################################################################################

Python Progs : README

Aruthor : Colby Haggerty

Date : 2013.10.30

######################################################################################################################################################## ########################################################################################################################################################

####################### Starters-Colby #####################################

All of our pythong programs will be making use of SciPy and NumPy If you are unfamilar with these, it might be good to go and read about them. Currently I am using this on yellowstone, hopefully nothing will change between super computers. So to use python on yellowstone first you need to load the modules with;

module load python module load all-python-libs

This will load all the nessesarty libraries Then you can enter the interactive python front end and run your scripts, with

ipython --pylab

You should also add the p3dthon direcotory to your path. I would just go ahead and add the following lines in your ipython config startup file: in the file located at ~/.ipython/profile_default/startup/ipython_config.py Add the following code

import sys sys.path.append('/glade/u/home/colbyh/pythonprogs/2014.04.p3d_etal/p3dthon/objects/') sys.path.append('/glade/u/home/colbyh/pythonprogs/2014.04.p3d_etal/p3dthon/scripts/') from p3d_runs import p3d_run

But replase the path with your own path to p3dthon

this will let you use p3d_runs right off the bat. Good luck!

########################### HOW-TO ######################################## To create the run object, do the following

CR = p3d_run('run_type###')

where CR just the varible name you choose to use and run_type### is the name you will be using to identify your run I usealy just use CR, and reconn601 or what ever number it maybe.

Read the dialogs when they come up and respond acordingly

to load a moive just use

var = CR.load_movie()

and this will bring up a dialog that should let you load a moive

####################### Edit: 2014.08.07 -Colby ############################ God I have done a lot of work on this stuff. So we have two main classes a run class and a movie class. the movie class is called from innside the run class. Most things still work the same but I have been trying to create a solid fondation.

####################### Edit: 2013.10.30 -Colby ############################ I am tring to slowly move from IDL to python and so this diretory is my scratch work for this. I am hoping to talk to danial about making this a repository, but since I am currently the only one who uses this, perhaps I will wait. It seems like the best play to start is with code that can read the movie files from p3d. Although I am thinking that somthing analgous to sub.pro will need to come about for all of this to work.

####################### Edit: 2013.11.13 -Colby ############################ I made a p3d_sub.pro and I am just going to build up some function in this python program. I am hoping that as sub.py improves I can port it over to some kind of object... Right now I am thinking that I will need some kind of table that hold relevent information about every run. so you say load up reconn621 and it reads the table and then you can call atributes of it to see what you are intrested in.

####################### Edit: 2014.03.24 -Colby ############################ I have made a lot of changes! I will have to go back and document progress better. But for right now just remeber these points you should code: 1- Seperate the vdist stuff into its own class! This class should accept a run object as an agument and then be able to do all the same stuff 2- Fix the run_list loading system! It makes more sence (I think) to have a run_list that points to files with all of the run data. So each run can have its own set of things. 3- Implement a loading system that is more robust! Eventualy what I want is to check to see if a run exists, and if it doesnt, offer the option to write in all the important quantities Please colby! document what you are doing

4- You should be able to use these methods even if you dont have a run object so i should create a special instance that justs asks you to enter the relavent quantitys.

####################### Edit: 2014.04.26 -Colby ############################ Ok so most of this code is going to be pretty flexable, but when we start wrighing scripts It is going to be usefull to have some kind of reffrence table so that somone who is just starting to use this can know what kind of key values shuold be in the info file So below is a working list of some of thoes values

run_dir path/where/all/data/is/stored param_name param_typeXXX

About

Data Analysis Software built with python/scipy to handle the data output from P3D plasma pic simulations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 96.6%
  • C 3.4%