diff --git a/nes/nc_projections/default_nes.py b/nes/nc_projections/default_nes.py index 493a1174c2d116fab11ed8b24e4ef03dacd5d70d..b42d9e7f4c2d71154168ac6f67893a5f1348226c 100644 --- a/nes/nc_projections/default_nes.py +++ b/nes/nc_projections/default_nes.py @@ -1642,6 +1642,10 @@ class Nes(object): # Create time_nv (number of vertices) dimension if self._time_bnds is not None: netcdf.createDimension('time_nv', 2) + + # Create spatial_nv (number of vertices) dimension + if (self._lat_bnds is not None) and (self._lon_bnds is not None): + netcdf.createDimension('spatial_nv', 2) # Create lev, lon and lat dimensions netcdf.createDimension('lev', len(self.lev['data'])) diff --git a/nes/nc_projections/latlon_nes.py b/nes/nc_projections/latlon_nes.py index 611dbfaff8c398091cb9438136dbe7e577da004b..e18d5f3625e7f2cb7ebda42618acaafd1ada3d6d 100644 --- a/nes/nc_projections/latlon_nes.py +++ b/nes/nc_projections/latlon_nes.py @@ -99,24 +99,6 @@ class LatLonNes(Nes): return new - def _create_dimensions(self, netcdf): - """ - Create 'spatial_nv' dimension and the super dimensions ('time', 'time_nv', 'lev', 'lat', 'lon'). - - Parameters - ---------- - netcdf : Dataset - NetCDF object. - """ - - super(LatLonNes, self)._create_dimensions(netcdf) - - # Create spatial_nv (number of vertices) dimension - if (self._lat_bnds is not None) and (self._lon_bnds is not None): - netcdf.createDimension('spatial_nv', 2) - - return None - def _create_centre_coordinates(self, **kwargs): """ Calculate centre latitudes and longitudes from grid details. diff --git a/nes/nc_projections/points_nes.py b/nes/nc_projections/points_nes.py index 1f4f5d7bab0beb8bbbaf5cbbb296cc4f91295b3b..f42934c5862cdb2836521dbdfb5a6ac9495bd524 100644 --- a/nes/nc_projections/points_nes.py +++ b/nes/nc_projections/points_nes.py @@ -136,10 +136,6 @@ class PointsNes(Nes): if self._time_bnds is not None: netcdf.createDimension('time_nv', 2) - # Create spatial_nv (number of vertices) dimension - if (self._lat_bnds is not None) and (self._lon_bnds is not None): - netcdf.createDimension('spatial_nv', 2) - # Create station dimension # The number of longitudes is equal to the number of stations netcdf.createDimension('station', len(self._lon['data'])) diff --git a/tutorials/4.Interpolation/4.3.Providentia_Interpolation.ipynb b/tutorials/4.Interpolation/4.3.Providentia_Interpolation.ipynb index 43456b9bb5ed5352ca97480b30a4903762d8dd7d..6618c680438a8d8e215476926fc1e2505ec51e87 100644 --- a/tutorials/4.Interpolation/4.3.Providentia_Interpolation.ipynb +++ b/tutorials/4.Interpolation/4.3.Providentia_Interpolation.ipynb @@ -4,7 +4,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "# (Wrong) How to interpolate horizontally using Providentia format" + "# How to interpolate horizontally using Providentia format" ] }, { diff --git a/tutorials/5.Others/5.3.Shapefiles.ipynb b/tutorials/5.Others/5.3.Create_Shapefiles.ipynb similarity index 100% rename from tutorials/5.Others/5.3.Shapefiles.ipynb rename to tutorials/5.Others/5.3.Create_Shapefiles.ipynb