mdashkezari / opedia Goto Github PK
View Code? Open in Web Editor NEWPython package providing access, visualization, and analysis of ocean data sets stored at Simons CMAP database.
Home Page: https://github.com/simonscmap
Python package providing access, visualization, and analysis of ocean data sets stored at Simons CMAP database.
Home Page: https://github.com/simonscmap
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.