Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update #21

Open
wants to merge 9 commits into
base: doc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"cSpell.ignoreWords": [
"ndarray"
],
"python.pythonPath": "d:\\Documents\\00SelfProject\\geosardine\\.venv\\Scripts\\python.exe",
"python.pythonPath": ".venv\\Scripts\\python.exe",
"python.formatting.provider": "black",
"python.linting.pylintEnabled": false,
"python.linting.mypyEnabled": true,
Expand Down
348 changes: 190 additions & 158 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,158 +1,190 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]


## [0.11.0-alpha0] - 2021-02-24

### Fixed
- fixed xy2rowcol
- fixed coordinate for idw to reduce it by half of resolution to represent upper left pixel

### Added
- indexing return raster with respective coordinate
- split into tiled
- interpolation return Raster instead InterpolationResult

### Deprecated
- py_resample will be removed in the future



## [0.10.3] - 2021-01-29
### Added
- Added offset in xy2rowcol
- add ipython in dev dependency


## [0.10.2] - 2020-12-18

### Fixed

- Flipped xy2rowcol numba
- fixed no data in Raster.from_rasterfile
- define resolution, when input is affine in Raster
- raster calculator error, caused by numba typing
- fixed algorithm with offset for raster calculator

### Added

- save with lzw compression
## [0.10.0] - 2020-12-17

### Added

- Raster calculation using numba
- add floordiv
- parse raster from binary file
- add shape ordering in reading raster from binary file
- parse raster from raster file
- doc script for linux
- add pdoc3 in dev dependency
- add changelog.md in pyproject

### Changed

- Use numba to raster calculation
- upper changed to top


### Fixed

- Restrict numpy version below 1.19.4, caused error in windows

## [0.9.5] - 2020-12-13

### Fixed

- Flipped cv resize input
- Return numpy array when slicing

## [0.9.4] - 2020-12-11

### Added

- add no data when saving raster
- documentation for Raster attributes
- add missing return type in save_raster

### Changed

- py resample, resize and opencv resample, resize turn into private method. To prevent confusion, less abstraction.

### Removed

- remove import numba in raster.py

## [0.9.3] - 2020-12-10

### Added

- upper, left, right, bottom boundary

### Changed

- minimum argument needed is x_min, y_max, resolution or transform
- simpler conditional statement in raster init
- x_min, x_max, y_max,y_min is computed properties

### Fixed

- save raster return exact layer not +1 layer
- return no data if pixel out of bound for raster calculation
- raise error when using xy_value and the row col index is negative

## [0.9.2] - 2020-12-09
### Added
- Add numpy.ndarray type in raster calculation
- Raster.xy_value documentation
- Add pytest to check affine parameter

### Changed
- Show error if xy_value result is out of bound
- Change y_min into y_max in raster calculation, resize and resample

### Fixed
- Fix y_min attribute in raster calculation, resize and resample

## [0.9.1] - 2020-12-09
### Changed
- Change y_min into y_max in creating Affine

## [0.9.0] - 2020-12-08
### Added
- resize and resample using opencv for faster performance
- check validity, y_min should be less than y_max and x_min should be less than x_max
- add no data value
- return no data if any pixel is no data (raster calculation)

### Changed
- Use x_min and y_max as minimum input argument to fit upper left extent
- Refactor raster calculation per pixel to reduce cognitive complexity
- Check array shape as a tuple

### Fixed
- Remove pip check because different opencv name in pypi and anaconda

### Removed
- Remove shape check per element

## [0.8.0] - 2020-12-05
### Added
- Raster wrapper
- Support multiple layer in raster calculation


[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.11.0-alpha0...HEAD
[0.11.0-alpha0]: https://github.com/sahitono/geosardine/compare/v0.10.2...v0.11.0-alpha0
[0.10.2]: https://github.com/sahitono/geosardine/compare/v0.9.5...v0.10.2
[0.9.5]: https://github.com/sahitono/geosardine/compare/v0.9.4...v0.9.5
[0.9.4]: https://github.com/sahitono/geosardine/compare/v0.9.3...v0.9.4
[0.9.3]: https://github.com/sahitono/geosardine/compare/v0.9.2...v0.9.3
[0.9.2]: https://github.com/sahitono/geosardine/compare/v0.9.0...v0.9.2
[0.9.0]: https://github.com/sahitono/geosardine/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/sahitono/geosardine/releases/tag/v0.8.0
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.13.1] - 2021-06-23

### Changed
- update dependency to latest

## [0.13.0] - 2021-06-18

### Changed
- support any epsg code for calculating distance by using each datum semi major and semi minor axes

## [0.12.0-aplha] - 2021-05-19

### Added
- clip2bbox

## [0.11.0-aplha1] - 2021-03-19

### Added
- Added polygonize in raster

### Fixed
- Fixed unused argument (offset) in Raster.xy2rowcol
### Changed
- moved pip to development dependency
- simplified numba xy2rowcol without creating new variable
- updated environment.yml

### Removed
- removed unused module in utility

## [0.11.0-alpha0] - 2021-02-24

### Fixed
- fixed xy2rowcol
- fixed coordinate for idw to reduce it by half of resolution to represent upper left pixel

### Added
- indexing return raster with respective coordinate
- split into tiled
- interpolation return Raster instead InterpolationResult

### Deprecated
- py_resample will be removed in the future



## [0.10.3] - 2021-01-29
### Added
- Added offset in xy2rowcol
- add ipython in dev dependency


## [0.10.2] - 2020-12-18

### Fixed

- Flipped xy2rowcol numba
- fixed no data in Raster.from_rasterfile
- define resolution, when input is affine in Raster
- raster calculator error, caused by numba typing
- fixed algorithm with offset for raster calculator

### Added

- save with lzw compression
## [0.10.0] - 2020-12-17

### Added

- Raster calculation using numba
- add floordiv
- parse raster from binary file
- add shape ordering in reading raster from binary file
- parse raster from raster file
- doc script for linux
- add pdoc3 in dev dependency
- add changelog.md in pyproject

### Changed

- Use numba to raster calculation
- upper changed to top


### Fixed

- Restrict numpy version below 1.19.4, caused error in windows

## [0.9.5] - 2020-12-13

### Fixed

- Flipped cv resize input
- Return numpy array when slicing

## [0.9.4] - 2020-12-11

### Added

- add no data when saving raster
- documentation for Raster attributes
- add missing return type in save_raster

### Changed

- py resample, resize and opencv resample, resize turn into private method. To prevent confusion, less abstraction.

### Removed

- remove import numba in raster.py

## [0.9.3] - 2020-12-10

### Added

- upper, left, right, bottom boundary

### Changed

- minimum argument needed is x_min, y_max, resolution or transform
- simpler conditional statement in raster init
- x_min, x_max, y_max,y_min is computed properties

### Fixed

- save raster return exact layer not +1 layer
- return no data if pixel out of bound for raster calculation
- raise error when using xy_value and the row col index is negative

## [0.9.2] - 2020-12-09
### Added
- Add numpy.ndarray type in raster calculation
- Raster.xy_value documentation
- Add pytest to check affine parameter

### Changed
- Show error if xy_value result is out of bound
- Change y_min into y_max in raster calculation, resize and resample

### Fixed
- Fix y_min attribute in raster calculation, resize and resample

## [0.9.1] - 2020-12-09
### Changed
- Change y_min into y_max in creating Affine

## [0.9.0] - 2020-12-08
### Added
- resize and resample using opencv for faster performance
- check validity, y_min should be less than y_max and x_min should be less than x_max
- add no data value
- return no data if any pixel is no data (raster calculation)

### Changed
- Use x_min and y_max as minimum input argument to fit upper left extent
- Refactor raster calculation per pixel to reduce cognitive complexity
- Check array shape as a tuple

### Fixed
- Remove pip check because different opencv name in pypi and anaconda

### Removed
- Remove shape check per element

## [0.8.0] - 2020-12-05
### Added
- Raster wrapper
- Support multiple layer in raster calculation


[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.13.1...HEAD
[0.13.0]: https://github.com/sahitono/geosardine/compare/v0.13.0...v0.13.1
[0.13.0]: https://github.com/sahitono/geosardine/compare/v0.12.0-alpha0...v0.13.0
[0.12.0-alpha0]: https://github.com/sahitono/geosardine/compare/v0.11.0-alpha0...v0.12.0-alpha0
[0.11.0-alpha0]: https://github.com/sahitono/geosardine/compare/v0.10.2...v0.11.0-alpha0
[0.10.2]: https://github.com/sahitono/geosardine/compare/v0.9.5...v0.10.2
[0.9.5]: https://github.com/sahitono/geosardine/compare/v0.9.4...v0.9.5
[0.9.4]: https://github.com/sahitono/geosardine/compare/v0.9.3...v0.9.4
[0.9.3]: https://github.com/sahitono/geosardine/compare/v0.9.2...v0.9.3
[0.9.2]: https://github.com/sahitono/geosardine/compare/v0.9.0...v0.9.2
[0.9.0]: https://github.com/sahitono/geosardine/compare/v0.8.0...v0.9.0
[0.8.0]: https://github.com/sahitono/geosardine/releases/tag/v0.8.0