|
issue with opening/closing datasets
Amine, I'm sorry about the confusion. I would rather not comment on the structure of your application. Your original question was about the warnings being printed in your shell, yes? I pointed out tha
Amine, I'm sorry about the confusion. I would rather not comment on the structure of your application. Your original question was about the warnings being printed in your shell, yes? I pointed out tha
|
By
Sean Gillies
· #174
·
|
|
issue with opening/closing datasets
Hi Amine, The following will work if you are calling the two functions in the same module. with open_raster('raster.tif') as dataset: # this gives you an implicit Env around the contained statements.
Hi Amine, The following will work if you are calling the two functions in the same module. with open_raster('raster.tif') as dataset: # this gives you an implicit Env around the contained statements.
|
By
Sean Gillies
· #172
·
|
|
issue with opening/closing datasets
Hi Amine, I think you have made in error in pasting code into the GitHub issue. The code you've given will fail at dataset = memfile.open because you haven't assigned memfile yet. The message you see
Hi Amine, I think you have made in error in pasting code into the GitHub issue. The code you've given will fail at dataset = memfile.open because you haven't assigned memfile yet. The message you see
|
By
Sean Gillies
· #166
·
|
|
Output to grib2?
Hi Shane, I think I understand now. BAND_1_PDS_PDTN isn't a tag, it's a "creation option". You can apply these at the time you open a dataset for writing like with rasterio.open("file.grb2", "w", driv
Hi Shane, I think I understand now. BAND_1_PDS_PDTN isn't a tag, it's a "creation option". You can apply these at the time you open a dataset for writing like with rasterio.open("file.grb2", "w", driv
|
By
Sean Gillies
· #164
·
|
|
Rasterio 1.0.22
Hi all, Rasterio wheels and sdist for 1.0.22 are on PyPI today. This release fixes two bugs reported in 1.0.21. Changes ======= 1.0.22 (2019-03-20) ------------------- - Add JPEG2000 to enums.Compress
Hi all, Rasterio wheels and sdist for 1.0.22 are on PyPI today. This release fixes two bugs reported in 1.0.21. Changes ======= 1.0.22 (2019-03-20) ------------------- - Add JPEG2000 to enums.Compress
|
By
Sean Gillies
· #161
·
|
|
Python 2/3 compatibility management in rasterio
Hi, We've always intended to keeping testing dependencies separate and the recent inclusion of mock in runtime dependencies was a mistake. It's been corrected, but it will be a few more days until we
Hi, We've always intended to keeping testing dependencies separate and the recent inclusion of mock in runtime dependencies was a mistake. It's been corrected, but it will be a few more days until we
|
By
Sean Gillies
· #158
·
|
|
Output to grib2?
Hi Shane, Rasterio's rio-convert command can convert from GeoTIFF to GRIB, so it should be possible $ rio convert -f GRIB ~/code/rasterio/tests/data/RGB.byte.tif /tmp/rgb.grb2 $ rio info /tmp/rgb.grb2
Hi Shane, Rasterio's rio-convert command can convert from GeoTIFF to GRIB, so it should be possible $ rio convert -f GRIB ~/code/rasterio/tests/data/RGB.byte.tif /tmp/rgb.grb2 $ rio info /tmp/rgb.grb2
|
By
Sean Gillies
· #155
·
|
|
Implementing -scale functionality of gdal_translate
Hi, Your code looks okay. I recommend padding your read window by a few pixels on each side so that tile_window, tile_data, and tile_transform are slight dilated. I think this is very likely to elimin
Hi, Your code looks okay. I recommend padding your read window by a few pixels on each side so that tile_window, tile_data, and tile_transform are slight dilated. I think this is very likely to elimin
|
By
Sean Gillies
· #151
·
|
|
Implementing -scale functionality of gdal_translate
Hi, I apologize for being slow to reply, I've been occupied with fixing bugs in the last couple of releases. In theory it is possible to add an option to the read method which will cast the data becau
Hi, I apologize for being slow to reply, I've been occupied with fixing bugs in the last couple of releases. In theory it is possible to add an option to the read method which will cast the data becau
|
By
Sean Gillies
· #145
·
|
|
Rasterio 1.0.15
Correct, there is no need to specify the build tag. There is also no way to override the build tag other than to specify the entire URL of the wheel, but that's a good thing.
Correct, there is no need to specify the build tag. There is also no way to override the build tag other than to specify the entire URL of the wheel, but that's a good thing.
|
By
Sean Gillies
· #139
·
|
|
Rasterio and pip 19
Thanks, Joris! I'm going to capture this in a rasterio ticket.
Thanks, Joris! I'm going to capture this in a rasterio ticket.
|
By
Sean Gillies
· #130
·
|
|
Implementing -scale functionality of gdal_translate
Hi, Rasterio's rio-convert program can linearly scale pixels and apply offsets: $ rio convert --help Usage: rio convert [OPTIONS] INPUTS... OUTPUT Copy and convert raster datasets to other data types
Hi, Rasterio's rio-convert program can linearly scale pixels and apply offsets: $ rio convert --help Usage: rio convert [OPTIONS] INPUTS... OUTPUT Copy and convert raster datasets to other data types
|
By
Sean Gillies
· #123
·
|
|
[rasterio-dev] debugging build_overviews
Hi Guy, Let's try to answer your questions on the main discussion group. The dev group is for discussing development of the library itself: new API methods, infrastructure, governance, &c. I've cross-
Hi Guy, Let's try to answer your questions on the main discussion group. The dev group is for discussing development of the library itself: new API methods, infrastructure, governance, &c. I've cross-
|
By
Sean Gillies
· #116
·
|
|
[rasterio-dev] Writing azure blobs does not create blobs
Hi Niklas, First off, in my original reply I missed the chance to suggest that we move this discussion to the main (not dev) discussion group, which has more users. The dev group is for discussing and
Hi Niklas, First off, in my original reply I missed the chance to suggest that we move this discussion to the main (not dev) discussion group, which has more users. The dev group is for discussing and
|
By
Sean Gillies
· #115
·
|
|
reproject on numpy array
Hi, The thing that is tripping Guy up is that reproject has an optional init_dest_nodata keyword argument that defaults to True: the output array is filled with the nodata value (0) before warped pixe
Hi, The thing that is tripping Guy up is that reproject has an optional init_dest_nodata keyword argument that defaults to True: the output array is filled with the nodata value (0) before warped pixe
|
By
Sean Gillies
· #111
·
|
|
rasterio Google Cloud Storage (GCS) access
Hi, Your GDAL library needs to be built on a curl library that is itself built with SSL support. I think that the GDAL and curl packages in most distros will meet this requirement, but if you are comp
Hi, Your GDAL library needs to be built on a curl library that is itself built with SSL support. I think that the GDAL and curl packages in most distros will meet this requirement, but if you are comp
|
By
Sean Gillies
· #97
·
|
|
Rasterio result different than gdal_calc
Hi, Can you also include the expressions that you're using with gdal_calc? Without them we can only guess at the cause of the difference in the results. I don't see any big problems with the way you'r
Hi, Can you also include the expressions that you're using with gdal_calc? Without them we can only guess at the cause of the difference in the results. I don't see any big problems with the way you'r
|
By
Sean Gillies
· #88
·
|
|
Unclear how to implement image alignment based on GCPs
Hi, What an interesting problem. The reproject() function is mainly for cartographic reprojection, but it might be useful in your case. The row, col, x, and y for a GroundControlPoint need to be float
Hi, What an interesting problem. The reproject() function is mainly for cartographic reprojection, but it might be useful in your case. The row, col, x, and y for a GroundControlPoint need to be float
|
By
Sean Gillies
· #86
·
|
|
Make _boundless_vrt_doc public
Hi Denis, I'm not prepared to make it public yet. I'm not confident that the signature of the method is finished and I believe we should have a discussion on the dev group about VRTs and how much supp
Hi Denis, I'm not prepared to make it public yet. I'm not confident that the signature of the method is finished and I believe we should have a discussion on the dev group about VRTs and how much supp
|
By
Sean Gillies
· #79
·
|
|
Any way to get/set the raster band scale and offset?
Hi Kris, Raster scale and offset don't surface in Rasterio versions 1.0.9 and older only because no user has spoken up them. I'd be happy to add these for 1.0.10.
Hi Kris, Raster scale and offset don't surface in Rasterio versions 1.0.9 and older only because no user has spoken up them. I'd be happy to add these for 1.0.10.
|
By
Sean Gillies
· #76
·
|