From babb7c089e087630cffc876cdb4d0b93db63e51a Mon Sep 17 00:00:00 2001 From: Raul Bardaji Date: Tue, 31 Mar 2020 16:32:13 +0200 Subject: [PATCH] bugs --- mooda/input/read_nc_emodnet.py | 5 +++++ requirements.txt | 1 - setup.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mooda/input/read_nc_emodnet.py b/mooda/input/read_nc_emodnet.py index a254ce9..11f98b1 100644 --- a/mooda/input/read_nc_emodnet.py +++ b/mooda/input/read_nc_emodnet.py @@ -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 @@ -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() diff --git a/requirements.txt b/requirements.txt index 9ae60b9..01baa3a 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/setup.py b/setup.py index 10dd273..d02516d 100644 --- a/setup.py +++ b/setup.py @@ -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