Skip to content
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

How to set os.environ[DEM_PATH] correctly? #61

Closed
TK12331 opened this issue Nov 29, 2022 · 6 comments
Closed

How to set os.environ[DEM_PATH] correctly? #61

TK12331 opened this issue Nov 29, 2022 · 6 comments

Comments

@TK12331
Copy link

TK12331 commented Nov 29, 2022

In FAQ I read
11
if I want to use the default setting as the DEM of SNAP, how can I find the specific path?

@TK12331 TK12331 added the bug Something isn't working label Nov 29, 2022
@remi-braun
Copy link
Member

remi-braun commented Nov 29, 2022

If you want to use i.e. COPDEM-30, just type:

import os
from eoreader.env_vars import SNAP_DEM_NAME
os.environ[SNAP_DEM_NAME] = "Copernicus 30m Global DEM"

The env_var can be found here

But I just saw that the default is not GETASSE30 anymore (it was when COPDEM-30 wasn't existing or was buggy).
I will change that 😄

Note that the piece of code here above won't change your result, as COPDEM-30 is SNAP's default DEM.

@remi-braun
Copy link
Member

I updated the documentation of SAR notebook to add a paragraph about your question 😉

@TK12331
Copy link
Author

TK12331 commented Nov 29, 2022

Thanks for your quick response!
Howerever, now there are new problems occur...
First, there are some bool values of band_names returned from s1_prod.has_band(band) are True, while they don't exist in get_existing_bands()
image

Second, I check the output file and there are only two tif files
image
which causes the code s1_prod.load(ok_bands, resolution=20.) to fail.

@remi-braun
Copy link
Member

remi-braun commented Nov 29, 2022

To load DEM-related bands, you need to provide a DEM on your own as specified here.
(I cannot use SNAP DEMs as the software downloads the tiles on the spot...)

You may have more information about that in the DEM notebook.

TLDR:

  • orthorectification of SAR bands : can use SNAP DEM
  • loading DEM-related bands : need to provide your own DEM

@remi-braun
Copy link
Member

However, your current bug seems to come from another source, could you create another issue with full log trace ?

@TK12331
Copy link
Author

TK12331 commented Nov 29, 2022

OK, I create a new one right now.

@remi-braun remi-braun removed the bug Something isn't working label Nov 29, 2022
bastiencyr pushed a commit to bastiencyr/eoreader that referenced this issue May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants