Skip to content

Commit

Permalink
bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
rbardaji committed Mar 31, 2020
1 parent 7dbaa9b commit babb7c0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions mooda/input/read_nc_emodnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ def drop(ds_in, clean_data_in):
ds_out = ds_out.drop('LONGITUDE')
if 'POSITION_QC' in ds_in.variables.keys():
ds_out = ds_out.drop('POSITION_QC')
if 'DC_REFERENCE' in ds_in.variables.keys():
ds_out = ds_out.drop('DC_REFERENCE')
if 'POSITIONING_SYSTEM' in ds_in.variables.keys():
ds_out = ds_out.drop('POSITIONING_SYSTEM')
return ds_out

# Create WaterFrame
Expand All @@ -58,6 +62,7 @@ def drop(ds_in, clean_data_in):
# Open file with xarrat
ds = xr.open_dataset(path)
ds = drop(ds, clean_data)

# Save ds into a WaterFrame
wf.metadata = dict(ds.attrs)
wf.data = ds.to_dataframe()
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ mccabe==0.6.1
netCDF4==1.5.3
numpy==1.18.2
pandas==1.0.3
pkg-resources==0.0.0
pkginfo==1.5.0.1
plotly==4.5.4
pycparser==2.20
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.2.0'
VERSION = '1.2.1'
DESCRIPTION = 'Module for Ocean Observatory Data Analysis'
LONG_DESCRIPTION = ("""
MOODA - Module for Ocean Observatory Data Analysis
Expand Down

0 comments on commit babb7c0

Please sign in to comment.