Skip to content

2D Interpolation over temperature and pressure to find entropy.

License

Notifications You must be signed in to change notification settings

es-sns121/Interpolation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect to RDB and pull data from channel.

This package serves to facilitate pulling data from an RDB using a python client. The data is then aligned chonologically and interpolated so that each channel that data is pulled from has the same amount of data points. Data is only interpolated over channel overlaps.

Linux

Install Pip

Install pip. Here.

Install needed Python Modules.

Install SciPy

python -m pip install -U scipy

Install MatplotLib

python -m pip install -U matplotlib

Install the oracle python client.

python -m pip install cx_Oracle

Download the Oracle instant client binary from

http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html

On Linux, unpack the instantclient-basic-linux.x64-12.2.0.1.0.zip and add the resulting directory to LD_LIBRARY_PATH

Install Pandas

python -m pip install -U pandas

Install OpenPxl

python -m pip install -U openpyxl

Windows

Install Python 2

Install the latest stable version of Python 2

Run the installer with admin privileges.

You need to add the Python executable and 'Scripts' directory to your Path enviornment variable.

The default install location for Python on Windows is

C:\Python27

Add this to your path variable.

The Scipts directory in the Python install location should also be added.

C:\Python27\Scripts

Add this to your path variable.

Install Pip

Install Pip. Here.

The easiest way on windows is to run the get-pip.py script available at the above link.

Install needed Python Modules.

Install SciPy

python -m pip install -U scipy

Install MatplotLib

python -m pip install -U matplotlib

Install the oracle python client.

python -m pip install -U cx_Oracle

Download the Oracle instant client binary from

http://www.oracle.com/technetwork/database/database-technologies/instant-client/downloads/index.html

On Windows, unzip the instantclient-basic-Windows.x64-12.2.0.1.0.zip and add the resulting directory to your Path enviornment variable.

Install Pandas

python -m pip install -U pandas

Install OpenPxl

python -m pip install -U openpyxl

Install other python RDB client

Install your python RDB client of choice.

MySQL and PostgreSQL are good options...

Setting up the program

The program only needs a single file to read input from...

connection.conf

'connection.conf' is a connection configuration file. The file contains an arbitrary number of fields where each field constists of a key, value pair.

# Example channel
# channel_id=RTBT_Diag:BCM25I:Power60

# Beam power
beam_power=

# Mass flow rate
he_flow_rate=

# Temperature in
he_temp_in=

# Temperature out
he_temp_out=

# Pressure in
he_pressure_in=

# Pressure out
he_pressure_out=

etc...

The fields should have the respective PV names (channels) that data is to be pulled from.

Running the script

cd Interpolation/src

To retrieve data:

python Connection.py start_date end_date

For help:

python Connection.py -help

To set sampling:

python Connection.py -sample [avg/up/down]

To print debug info:

python Connection.py -verbose

About

2D Interpolation over temperature and pressure to find entropy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages