From 30b4b0cca110ab2df00d97670472f038d35bb02b Mon Sep 17 00:00:00 2001 From: Alba Vilanova Date: Tue, 30 Aug 2022 15:20:03 +0200 Subject: [PATCH] Remove code related to coordinate bounds in points NES --- nes/nc_projections/points_nes.py | 16 ---------------- nes/nc_projections/points_nes_ghost.py | 16 ---------------- 2 files changed, 32 deletions(-) diff --git a/nes/nc_projections/points_nes.py b/nes/nc_projections/points_nes.py index e7374c0..3c0769f 100644 --- a/nes/nc_projections/points_nes.py +++ b/nes/nc_projections/points_nes.py @@ -206,14 +206,6 @@ class PointsNes(Nes): lat.set_collective(True) lat[:] = self._lat['data'] - # LATITUDES BOUNDS - if self._lat_bnds is not None: - lat_bnds_var = netcdf.createVariable('lat_bnds', np.float64, self._var_dim + ('spatial_nv',), - zlib=self.zip_lvl, complevel=self.zip_lvl) - if self.size > 1: - lat_bnds_var.set_collective(True) - lat_bnds_var[:] = self._lat_bnds[:] - # LONGITUDES lon = netcdf.createVariable('lon', np.float64, self._lon_dim, zlib=self.zip_lvl > 0, complevel=self.zip_lvl) @@ -227,14 +219,6 @@ class PointsNes(Nes): lon.set_collective(True) lon[:] = self._lon['data'] - # LONGITUDES BOUNDS - if self._lon_bnds is not None: - lon_bnds_var = netcdf.createVariable('lon_bnds', np.float64, self._var_dim + ('spatial_nv',), - zlib=self.zip_lvl, complevel=self.zip_lvl) - if self.size > 1: - lon_bnds_var.set_collective(True) - lon_bnds_var[:] = self._lon_bnds[:] - return None def _get_coordinate_values(self, coordinate_info, coordinate_axis): diff --git a/nes/nc_projections/points_nes_ghost.py b/nes/nc_projections/points_nes_ghost.py index d5361ae..4c66a01 100644 --- a/nes/nc_projections/points_nes_ghost.py +++ b/nes/nc_projections/points_nes_ghost.py @@ -203,14 +203,6 @@ class PointsNesGHOST(PointsNes): lat.set_collective(True) lat[:] = self._lat['data'] - # LATITUDES BOUNDS - if self._lat_bnds is not None: - lat_bnds_var = netcdf.createVariable('lat_bnds', np.float64, self._var_dim + ('spatial_nv',), - zlib=self.zip_lvl, complevel=self.zip_lvl) - if self.size > 1: - lat_bnds_var.set_collective(True) - lat_bnds_var[:] = self._lat_bnds[:] - # LONGITUDES lon = netcdf.createVariable('longitude', np.float64, self._lon_dim, zlib=self.zip_lvl > 0, complevel=self.zip_lvl) @@ -224,14 +216,6 @@ class PointsNesGHOST(PointsNes): lon.set_collective(True) lon[:] = self._lon['data'] - # LONGITUDES BOUNDS - if self._lon_bnds is not None: - lon_bnds_var = netcdf.createVariable('lon_bnds', np.float64, self._var_dim + ('spatial_nv',), - zlib=self.zip_lvl, complevel=self.zip_lvl) - if self.size > 1: - lon_bnds_var.set_collective(True) - lon_bnds_var[:] = self._lon_bnds[:] - def erase_flags(self): first_time_idx = self.get_time_id(self.hours_start, first=True) -- GitLab