74 Commits

Author SHA1 Message Date
Sean Gillies
5dbcc6f40f Yo, I hear you like parentheses...
Old syntax traded in for an easy to parse lisp-like syntax.
No need for a temporary variable and much more secure.
2015-02-12 13:52:40 -07:00
Sean Gillies
c6d8bfeb17 Add dataset ref by name feature. 2015-02-10 11:54:43 -07:00
Sean Gillies
aa5c81f756 Addition of temp val and output syntax.
100% coverage :)
2015-02-10 10:37:17 -07:00
Sean Gillies
dfae6afc86 Merge branch 'master' into TI-35 2015-02-08 11:13:14 -07:00
Sean Gillies
66ae338d97 Preserve masks when re-casting to float64.
Also test reducing a 3-band file to 1.
2015-02-08 10:57:39 -07:00
Sean Gillies
d8f3d9da30 Syntax for multipart/band commands. 2015-02-08 09:34:23 -07:00
Sean Gillies
7405a9947b Add syntax for output bands. 2015-02-07 22:58:49 -07:00
Sean Gillies
e49822e585 rio-calc, take 1.
Like this:

  $ rio calc "0.10*{1} + 125" tests/data/shade.tif out.tif

Results in a new hillshade with shade values of 125 instead of 0.
2015-02-07 15:51:43 -07:00
Brendan Ward
dc0307c720 Merge pull request #253 from mapbox/vendorize-gdalnodatafill
Vendorize rasterfill.cpp
2015-02-07 08:06:56 -08:00
Sean Gillies
781992ba9a Don't depend on dict item order. 2015-02-06 16:24:22 -07:00
Sean Gillies
c3732f7c76 Add new fields to rio-info.
Closes #269.

Required moving _transform() from _warp to _base so we could
avoid import Numpy as long as possible.

Also added stats to info output in --verbose mode, also accessible
using the --stats option.
2015-02-06 14:29:14 -07:00
Sean Gillies
4aa81a094c Preliminary support of moar info. 2015-02-06 12:14:24 -07:00
Sean Gillies
fcc13eb63c Merge pull request #266 from brendan-ward/rio_rasterize
Added rio-rasterize
2015-02-06 09:32:51 -07:00
Brendan Ward
774f898753 Added error for GeoJSON out of bounds of existing or --like raster 2015-02-05 21:19:38 -08:00
Brendan Ward
3823b075e9 Added rio-rasterize 2015-02-04 22:06:15 -08:00
Sean Gillies
95c4e37e04 Confirming issue #254 is a bug. 2015-01-20 14:53:34 -07:00
Sean Gillies
97b05ba2e1 Merge branch 'fill' of https://github.com/snorfalorpagus/rasterio into vendorize-gdalnodatafill 2015-01-20 12:42:15 -07:00
Sean Gillies
0cde25b9cd Merge branch 'master' into issue242
Conflicts:
	rasterio/rio/merge.py
2015-01-13 20:50:28 -07:00
Sean Gillies
f686ccad70 Fix expected value for float test. 2015-01-13 17:36:24 -07:00
Sean Gillies
09582c7b8f Watch out for undefined 'info'.
Also get merge.py coverage back to 100% (nodata and floats).
2015-01-13 17:18:59 -07:00
Sean Gillies
4decd8fca9 Merge pull request #245 from brendan-ward/expand_test_coverage
Expanded test coverage
2015-01-13 14:58:52 -07:00
Sean Gillies
12261402fb Incorporating @brendan-ward's suggestions. 2015-01-13 12:51:10 -07:00
Sean Gillies
2b4f7284ba Working rio-merge with main features of gdal-merge.py
Closes #242
2015-01-12 15:21:34 -07:00
Sean Gillies
27170ee02e More tests of rasterio's resampling on I/O.
Work on enhancing rio-merge hints that it may not be quite right.
2015-01-12 10:16:31 -07:00
Brendan Ward
c59a35411b Excluded files from coverage testing, switched version option to use click builtin, added more tests 2015-01-08 20:40:50 -08:00
Sean Gillies
9cd3cc049f 100% test coverage. 2015-01-07 22:48:32 -07:00
Sean Gillies
fbc3347f73 Logic and tests for merge without nodata.
Closes #240
2015-01-07 22:26:38 -07:00
Brendan Ward
c03de30e58 Sort test input files 2014-12-31 07:17:15 -08:00
Brendan Ward
dc4d5106ce Fixed proper handling of verbosity and output shape for rio merge 2014-12-30 23:03:01 -08:00
Sean Gillies
1091a69eea Proper application of nodata switch for all cases.
Plus tests to get to 100% coverage.
2014-12-30 13:27:41 -07:00
Sean Gillies
5f156ca7f2 Switch over to cligj. 2014-12-28 11:06:31 -08:00
Brendan Ward
13dc4752d7 Merge pull request #228 from mapbox/json-test-sequences
--sequence means write JSON text sequences.
2014-12-27 06:10:40 -08:00
Joshua Arnott
4758a8aad4 fillnodata now returns ndarray, instead of modifying in-place 2014-12-25 23:30:28 +00:00
Sean Gillies
711f8fd45a --sequence means write JSON text sequences.
--with-rs means add RS delimiters.

Also, some parameter consolidation into a new params module.
2014-12-22 18:18:50 -08:00
Joshua Arnott
9a480d55dd Implemented GDALFillNodata algorithm as rasterio.fill.fillnodata 2014-12-21 23:41:42 +00:00
Sean Gillies
84ad697d47 Merge remote-tracking branch 'origin' into issue190
Conflicts:
	rasterio/_io.pyx
2014-12-19 19:53:42 -07:00
Sean Gillies
6aaf4b364f Code cleanup, offset bug fix, better docstring. 2014-12-19 12:13:09 -07:00
Sean Gillies
9a74644a0e Add a greedy option to read().
This flags the intention to use windows that extend beyond the
dataset's extent.
2014-12-18 17:27:58 -07:00
Sean Gillies
7cc5b6af38 Output file as arg, not option.
Closes #221.
2014-12-16 16:15:37 -07:00
Brendan Ward
e7c3f33525 Merge pull request #223 from mapbox/issue210
Remove excessively strict transform check.
2014-12-16 11:26:33 -08:00
Brendan Ward
628e6758d6 Merge pull request #208 from mapbox/issue191
More graceful handling of windows.
2014-12-16 11:21:00 -08:00
Sean Gillies
bf87ec6114 Remove excessively strict transform check.
Was introduced in 1be2c0f. Now we can translate rasters with
no georeferencing.

Closes #210.
2014-12-16 11:01:14 -07:00
Brendan Ward
b93d8f7946 Added numpy style docstrings and additional tests for transform_geom 2014-12-04 21:18:19 -08:00
Sean Gillies
cea4bc3d20 Better test of read windowing and a fix. 2014-12-02 10:16:11 -07:00
Sean Gillies
c887da65dd Attempt at a read_extra() method.
Reads data into output arrays that might only overlap with
the raster dataset.

Towards a fix of #190.
2014-12-01 22:36:49 -07:00
Sean Gillies
73943ce434 More graceful handling of windows.
Intent is to return no data when the window is beyond the dataset's
extent and clip to the dataset's extent when the window overflows.
In other words, just like Python slices and Numpy extended slices.

Closes #191.
2014-12-01 11:26:53 -07:00
Sean Gillies
ad349b7a68 Merge pull request #200 from alexamici/master
Add optional zs parameter to warp.py:transform, see #199
2014-11-13 16:31:26 -07:00
Sean Gillies
fd584bd862 CC0 for test images. 2014-11-13 11:14:16 -07:00
Alessandro Amici
ac2027127a Add tests for optional zs in warp.py:transform #199 2014-11-12 23:14:00 +01:00
Brendan Ward
d3fe8df537 Changed output.dtype to out.dtype, added test 2014-11-03 16:38:54 -08:00