question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

adding raster layer failing silently

See original GitHub issue

Hi, Im having trouble getting the test raster to show up on the map while using geonotebook in docker. I have no error messages to work off of so would appreciate any help in debugging and tracking down the error source. I’ve run tox -e py27 with what seems to be no issue (see attached txt file). test_results.txt

It seems like I’m able to successfully read in the geotiff

rd = RasterData('/notebooks/sandbox/watson/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0.tiff')

and rd.uri seems to function correctly, I can also grab the resulting numpy array and plot it inline with no issue

r = rd.get_data()
plt.imshow(r[:,:,3])

but when I M.add_layer(rd, opacity=1.0, gamma=2.5) nothing appears on the map.

>>> M.layers[0].vis_url
'http://127.0.0.1:8888/ktile/410d71c3-f822-4804-bb00-a6f342ff7b12/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637'

and if I go that url:

{"__str__": "<TileStache.Core.Layer instance at 0x7ff1b4f9cea8>", "provider": {"opacity": 1.0, "colormap": [], "layer_srs": "+proj=longlat +datum=WGS84 +no_defs ", "is_static": false, "name": "L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637", "filepath": "/notebooks/sandbox/watson/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0.tiff", "raster_x_size": 7243, "transform": [-123.06229313641593, 0.0007517610843588367, 0.0, 48.571429239198785, 0.0, -0.0007517610843588367], "vrt_path": "/tmp/geonbLODDc6/L57.Globe.month09.2010.hh09vv04.h6v1.doy247to273.NBAR.v3.0_14105793776872957637.vrt", "raster_y_size": 1900, "map_srs": "EPSG:4326", "nodata": -9999.0, "gamma": 2.5}}

Please let me know what additional info would be helpful in debugging this. Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
swatson26commented, Nov 1, 2017

yep, user error on my part - thanks!

0reactions
dorukozturkcommented, Oct 31, 2017

@swatson26 I just pulled the latest image and tried some of the examples and they worked for me. Can you follow the steps below?

# Delete all geonotebook images you currently have
docker images | grep geonotebook | awk '{print $1}' | xargs docker rmi 

# Pull and run the latest geonotebook
docker run -p 8888:8888 -v /full/path/to/geonotebook/notebooks:/notebooks -it --rm geonotebook/geonotebook
Read more comments on GitHub >

github_iconTop Results From Across the Web

Add raster to mosaic data set failing - Esri Community
Hi, I'm attempting to create an animation from krigged raster layers (rainfall in time series) by creating a mosaic data set and attributing ......
Read more >
sf st_make_valid silently failing after st_combine
I'm trying to create an object of class 'sf' that is single multipolygon out of a raster. I'm following the procedure in this...
Read more >
Exporting raster as raw data to GeoPackage fails silently #30644
I tested with a 1 Byte, 3 bands dataset, I did not test other data. Exporting as "Rendered image" works fine.
Read more >
Adding raster data to a map—ArcMap | Documentation
Each of these layers has their own layer properties and context menu option that are specific to how you interact with the mosaic...
Read more >
BigQuery streaming from dataflow failing silently
The bq sink has an insert_retry_strategy parameter that allows you to set how to behave when there are errors inserting data to BQ:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found