Fixes a bug in the nearest neighbour lookup, where no points were returned when less than k gpis are found in the selected max distance (Issue #73 ).
Faster implementation of bbox search
Uses pyscaffold v4 standard
FIX: Nearest neighbour search for grids with non-default GPIs
Replace Travis CI with Github Actions workflows.
Add k parameter to nearest neighbor search (number of nearest neighbors to return)
Refracture package to pyscaffold 3 standard
Allow subsetting from non-binary masks
Fix ParallelArcDist function (two calls of deg2rad(lat))
Update to PyScaffold 2.5.9
Fix speed bug of gpi2cell
Update copyright header
Add option to subset a grid with a shape file (OGRGeometry) in get_shp_grid_points.
Add shapefile module for reading shapefiles from http://biogeo.ucdavis.edu/data/gadm2.8/gadm28_levels.shp.zip by Global Administrative Level
Ensure that get_bbox_grid_points returns points while taking cell order into account.
Fix bug in calc_lut in case of differently ordered subset of a grid.
Add function to reorder grid based on different cell size. (See grids.reorder_to_cellsize)
Add option to load grids with non standard variable name for gpis.
Fix bug in gpi2lonlat with subset, see #42
Add simple script for plotting a global cell partitioning.
fix bug in storing/loading grids with shape attribute set.
change equality check of grids to be more flexible. Now only a match of the tuples gpi, lon, lat, cell is checked. The order does no longer matter.
Shape definition changed to correspond to what one would expect. Now a 1x1 regular global grid has the shape (180, 360) corresponding to the 180 rows and 360 columns that the array has. This was necessary since the genreg_grid function produced grids with wrong lon2d, lat2d arrays because the shape was not correct
bugfix in lonlat2cell. Improvements in dependency installation and documentation.
bugfix in gpi2lonlat. Now supports array as input.
add geodatic datum functionality to grid objects
bugfix of subgrid creation which returned wrongly shaped subarrays
fix bug in lookuptable generation when gpis have custom ordering
add functions for getting subgrids from cells and gpis
change meaning and rename grid dimensions to lon2d, lat2d. They do now represent 2d arrays of latitudes and longitudes which means that they no longer have to be regular in order to be able to have a shape. This is useful for e.g. orbit data
fix issue #19 by refactoring the iterable checking into own function
made pykdtree an optional requirement see issue #18
added support for saving more subsets and loading a certain one in/from a netcdf grid file
fix #15 by setting correct shape for derived cell grids
fix issue #14 of gpi2rowcol input types
Initial version pulled out of pytesmo
added support for iterables like lists and numpy arrays to functions like find_nearest_gpi. numpy arrays should work everywhere if you want to get information from a grid. see issue #3 and #4
fixed bugs occuring during storage as netCDF file see issue #8
comparison of grids is no longer using exact float comparison, see issue #9
added documentation and examples for working with the grid objects, see issue #1