Skip to content

Commit

Permalink
creation of netcdf files from EGIM
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardaji committed Aug 9, 2018
1 parent c191dd7 commit d895019
Show file tree
Hide file tree
Showing 12 changed files with 593 additions and 15 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@ __pycache__
/*.egg-info

# Visual Studio Code settings
/.vscode/
/.vscode/

# Test code
download_all_emso.py
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ Another problem with the marine data is the Quality Control (QC). Some platforms

For the moment, the compatible source data can be from the following observatories:

* [EMSO](http://www.emso-eu.org/) Generic Instrument Module ([EGIM](http://www.emsodev.eu)).
* [JERICO](http://www.jerico-ri.eu/data-access/) in NetCDF.
* [EMSO](http://www.emso-eu.org/) Generic Instrument Module ([EGIM](http://www.emsodev.eu));
* [JERICO](http://www.jerico-ri.eu/data-access/) in NetCDF;
* Mooring time series from [EMODNET-physics](http://www.emodnet-physics.eu/Map/) in NetCDF.

## No knowledge of Python is needed
Expand Down
2 changes: 1 addition & 1 deletion docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ Returns | Description | Type
--- | --- | ---
True/False | It indicates if the process was successfully. | bool

### WaterFrame.slice_temp(*start*, *end*)
### WaterFrame.slice_time(*start*, *end*)

Delete data outside the time interval.

Expand Down
4 changes: 2 additions & 2 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ Another problem with the marine data is the Quality Control (QC). Some platforms

For the moment, the compatible source data can be from the following observatories:

* [EMSO](http://www.emso-eu.org/) Generic Instrument Module ([EGIM](http://www.emsodev.eu)).
* [JERICO](http://www.jerico-ri.eu/data-access/) in NetCDF.
* [EMSO](http://www.emso-eu.org/) Generic Instrument Module ([EGIM](http://www.emsodev.eu));
* [JERICO](http://www.jerico-ri.eu/data-access/) in NetCDF;
* Mooring time series from [EMODNET-physics](http://www.emodnet-physics.eu/Map/) in NetCDF.

## No knowledge of Python is needed
Expand Down
2 changes: 2 additions & 0 deletions mooda/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
from mooda.waterframe import WaterFrame
from mooda.plotmap import PlotMap

name = "mooda"
556 changes: 552 additions & 4 deletions mooda/access/egim.py

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions mooda/waterframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class WaterFrame:
metadata: A dictionary that contains the metadata information of the
timeserie."""

def __init__(self):
"""It creates the instance following variables:
data -- A pandas DataFrame that contains the measurement values of the
Expand Down
8 changes: 8 additions & 0 deletions other_codes/read_netcdf.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import mooda

wf = mooda.WaterFrame()

wf.from_netcdf("OS_OBSEA_2017010120170115_R_SBE54-0049.nc")

print(wf.data.head())
print(wf.metadata['license'])
1 change: 1 addition & 0 deletions requirements-access-egim.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
requests
pandas
xarray
4 changes: 0 additions & 4 deletions requirements-app-mooda_gui.txt

This file was deleted.

1 change: 1 addition & 0 deletions requirements-waterframe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ matplotlib
pandas
numpy>=1.9.0
xarray
seaborn
20 changes: 19 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,22 @@
VERSION = '0.0.1'
DESCRIPTION = 'Module for Ocean Observatory Data Analysis'
README_FILE = os.path.join(os.path.dirname(__file__), 'README.md')
LONG_DESCRIPTION = open(README_FILE).read()
LONG_DESCRIPTION = """
MOODA - Module for Ocean Observatory Data Analysis
Mooda is a python package designed mainly for oceanographers and marine science students. It is based on a power scripting system for:
direct data access;
data filtering methods;
complex visualization tools;
quality control generation;
specific data analysis tools for different scientific disciplines.
The package is designed to be open, adaptable and scalable allowing future contributions from researchers and developers from all the marine science disciplines.
This work is performed in the framework of the European Multidisciplinary Seafloor and Water-Column Observatory development ([EMSOdev](http://www.emsodev.eu/)).
Check the documentation on [mooda.readthedocs.io](http://mooda.readthedocs.io/).
"""
CLASSIFIERS = ['Development Status :: 4 - Beta',
'Environment :: X11 Applications :: Qt',
'Environment :: Console',
Expand Down Expand Up @@ -40,6 +55,8 @@
for file in (os.path.join(os.path.dirname(__file__), file)
for file in requirements)
for line in open(file)) - {''})
EXTRAS_REQUIRE = {'gui': ['pyqt5']}

ENTRY_POINTS = {
'gui_scripts': ['mooda = mooda.app.mooda_gui.__main__:main']}

Expand All @@ -55,6 +72,7 @@
license=LICENSE,
packages=PACKAGES,
install_requires=INSTALL_REQUIRES,
extras_require=EXTRAS_REQUIRE,
entry_points=ENTRY_POINTS,
include_package_data=True,
zip_safe=False)
Expand Down

0 comments on commit d895019

Please sign in to comment.