-
Notifications
You must be signed in to change notification settings - Fork 1
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
convert REMA data to cloud optimized geotiff #1
Comments
Is the code missing the command "create"? |
Hi julian? You create a cog as follows:
|
Hi Ryan, Is it possible that this could be a Mac/PC issue? My command prompt doesn't recognize what you've written as is as a valid command because the filename is not considered a command. I'm able to create a cog with: |
Did you install the cog extension? |
Yup! I installed it with pip as they said on their website. It seems to be
working correctly.
…On Wed, Mar 20, 2019 at 10:34 AM Ryan Abernathey ***@***.***> wrote:
Did you install the cog extension?
https://github.com/cogeotiff/rio-cogeo
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ao-5EWRhtfzcsC3T-o-hKRdjDi64vOdWks5vYkb1gaJpZM4b8NKC>
.
--
Julian J. Spergel
Lamont Doherty Earth Observatory
University of Chicago '16
Geophysical Sciences
|
Ok I think I see what is going on. The syntax has actually changed since I first installed and ran these commands: https://github.com/cogeotiff/rio-cogeo/blob/master/CHANGES.txt The following changes were introduced in the version released on March 15
|
OK! Thank you for checking in on that. I'm reading through these pages
before starting on implementing it. Thank you again for your help
…On Wed, Mar 20, 2019 at 10:42 AM Ryan Abernathey ***@***.***> wrote:
Ok I think I see what is going on. The syntax has actually changed since I
first installed and ran these commands:
https://github.com/cogeotiff/rio-cogeo/blob/master/CHANGES.txt
The following changes were introduced in the version released on March 15
1.0b0 (2019-03-15)
------------------
- add more logging and `--quiet` option (#46)
- add `--overview-blocksize` to set overview's internal tile size (#60)
Bug fixes:
- copy tags and description from input to output (#19)
- copy input mask band to output mask
Breacking Changes:
- rio cogeo now has subcommands: 'create' and 'validate' (#6).
- internal mask creation is now optional (--add-mask).
- internal nodata or alpha channel can be forwarded to the output dataset.
- removed default overview blocksize to be equal to the raw data blocksize (#60)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/Ao-5EdyxC-NTVL10atM1Rh8k_8J18Cmaks5vYkjagaJpZM4b8NKC>
.
--
Julian J. Spergel
Lamont Doherty Earth Observatory
University of Chicago '16
Geophysical Sciences
|
Hi, |
One question: I am getting the following warning. Does this matter do you think? The COGs open in arcmap OK and everything looks good. |
To double check that the conversion is working, try running:
and examine the output |
Looks good to me: Strange thing is that when I get info on many of the original files they also apparently have a block size, e.g.: I don't see this in the one you originally looked at though: |
ok that's an important catch! Some of these may already be COGs! Reading the cogeo docs (https://github.com/cogeotiff/rio-cogeo) it looks like there is also a
That is probably better than |
OK, yes validate is the better one to use. So overall, going through them all and running this conversion seems to be the safest things to do. Thanks for your help! |
Cloud optimized geotiff is an image format optimized for high-throughput reading via the web: http://www.cogeo.org/
The REMA data is not in COG format. A first step towards making it work efficiently in pangeo is to convert it.
I played around with this a bit, starting by downloading this sample data
To create a cogs and stuff, you need to install the rasterio cog extension. One you have it, you can examine the file metadata.
This is not a cog. We can make one like this
This is tiled (see
blocksize
) but with no compression. It's better to use compression:Let's compare the sizes of the files
$ ls -lh 09_41_8m_dem*.tif -rw-rw-r-- 1 jovyan users 290M Feb 13 03:20 09_41_8m_dem_COG_LZW.tif -rw-rw-r-- 1 jovyan users 865M Feb 21 21:38 09_41_8m_dem_COG_RAW.tif -rw-rw---- 1 jovyan users 228M Oct 26 15:09 09_41_8m_dem.tif
We see that the LSW compressed COG has the same size as the original file, but it is MUCH more useful!
The text was updated successfully, but these errors were encountered: