Giter Site home page Giter Site logo

mdashkezari / opedia Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 6.0 380.55 MB

Python package providing access, visualization, and analysis of ocean data sets stored at Simons CMAP database.

Home Page: https://github.com/simonscmap

MATLAB 0.65% M 0.01% Shell 0.01% Python 2.90% Mercury 0.23% Pascal 5.41% HTML 76.17% Roff 0.01% XSLT 0.01% Jupyter Notebook 13.93% Ruby 0.01% Swift 0.13% TeX 0.06% TSQL 0.48%

opedia's People

Contributors

ctberthiaume avatar denholtz avatar gaelforget avatar jcmcnch avatar mdashkezari avatar norlandrhagen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

opedia's Issues

After installing with pip, how to use Opedia?

Hi Mohammad,

Following the instructions on the website for installing conda environments, I was able to install opedia via pip after running the following commands (on Ubuntu 18.04):

sudo apt-get install unixodbc-dev
pip install opedia --ignore-installed

It seems to be successfully installed, if I type pip freeze, then I see opedia==0.1.52. But I don't know how to access the program itself. If I type in opedia on bash, I see this:

jesse@ubuntu-delltron:/~ $ opedia opedia: command not found

Am I missing something here?

Thanks,

Jesse

UnboundLocalError: local variable 'conn' referenced before assignment

Hi folks,

When running the example notebooks (using jupyter-notebook), I get a weird error:

`---------------------------------------------------------------------------
UnboundLocalError Traceback (most recent call last)
in ()
15
16
---> 17 df = CRS.getCruiseTrack(DB_Cruise, source, cruise)
18 df = CRS.resample(df, resampTau)
19 loadedTrack = CRS.plotAlongTrack(tables, variables, cruise, resampTau, df, spatialTolerance, depth1, depth2, fname, exportDataFlag, marker='-', msize=30, clr='darkturquoise')

/home/jesse/miniconda3/lib/python2.7/site-packages/opedia/plotCruise.pyc in getCruiseTrack(DB_Cruise, source, cruise)
46 if DB_Cruise:
47 query = CruiseQuery(source, cruise)
---> 48 df = db.dbFetch(query)
49 else:
50 df = pd.read_csv(source)

/home/jesse/miniconda3/lib/python2.7/site-packages/opedia/db.pyc in dbFetch(query)
21
22 def dbFetch(query):
---> 23 conn = dbConnect()
24 df = sql.read_sql(query, conn)
25 conn.close()

/home/jesse/miniconda3/lib/python2.7/site-packages/opedia/db.pyc in dbConnect(usr, psw, ip, port, db)
17 except Exception as e:
18 print('Database connection error. Error message: '+str(e))
---> 19 return conn
20
21

UnboundLocalError: local variable 'conn' referenced before assignment`

When I go into my python installation, I can load the opedia module just fine. Any thoughts as to what this error means?

Thanks,

Jesse

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.