Skip to content

Commit

Permalink
Harmonization of EMODnet data
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardaji committed Mar 25, 2020
1 parent 3597c33 commit c16e878
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions mooda/input/read_nc_emodnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ def drop(ds_in, clean_data_in):
# Save ds into a WaterFrame
wf.metadata = dict(ds.attrs)
wf.data = ds.to_dataframe()

# Harmonize data
wf.data.reset_index(inplace=True)
wf.data.set_index(['DEPH', 'TIME'], inplace=True)
wf.data.index.rename(['DEPTH', 'TIME'], inplace=True)
del wf.data['DEPTH']
wf.data.rename(columns={'DEPH_QC':'DEPTH_QC'}, inplace=True)

for variable in ds.variables:
wf.vocabulary[variable] = dict(ds[variable].attrs)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


NAME = 'mooda'
VERSION = '1.1.2'
VERSION = '1.1.3'
DESCRIPTION = 'Module for Ocean Observatory Data Analysis'
LONG_DESCRIPTION = ("""
MOODA - Module for Ocean Observatory Data Analysis
Expand Down

0 comments on commit c16e878

Please sign in to comment.