Python embedding to read geotiff data (sentinel 3 products) #2702
-
hi all - I am struggling to set up a python embedding script to read geotiff data. here are the steps I am following:
This fails and gives the error Thanks very much! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi: I think what may be happening here is that the grid type specification needs to have capitalization. So, for a lat/lon grid, it should look like this: Bot the the L's are capitalized here. When I make this change, the projection error goes away, but I get a new error: ERROR : What's missing is the value of 'name' in the grid dictionary. This link provides the required input for a lat/lon grid in python embedding. The name can be whatever you want to name the grid. Scrolling down to the bullet point with LatLon in the previous lonk, the script is also missing Nlat and Nlon, and has two extra variables, lat_ur and lon_ur. I replaced Nx and Ny with Nlon and Nlat, and commented out lat_ur and lon_ur, and then plot_data_plane runs on my side. I'm not certain exactly what the output should look like, so there may be some settings that need to be adjusted further to get the expected output. Do these changes work on your end and produce the expected output? Christina |
Beta Was this translation helpful? Give feedback.
Hi:
I think what may be happening here is that the grid type specification needs to have capitalization. So, for a lat/lon grid, it should look like this:
'grid': {
'type': 'LatLon',
Bot the the L's are capitalized here. When I make this change, the projection error goes away, but I get a new error:
ERROR :
ERROR : Python3_Dict::lookup_string(const char * key) -> value for key "name" not found
ERROR :
What's missing is the value of 'name' in the grid dictionary. This link provides the required input for a lat/lon grid in python embedding. The name can be whatever you want to name the grid. Scrolling down to the bullet point with LatLon in the previous lonk, the script is also missing Nlat…