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

Unable to load RCM file.Results in type error iteration over #74

Open
sparshgarg23 opened this issue Feb 19, 2024 · 6 comments
Open

Unable to load RCM file.Results in type error iteration over #74

sparshgarg23 opened this issue Feb 19, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@sparshgarg23
Copy link

While working on my own RCM dataset,I am unable to read the safe file into the datatree object.I am getting the error

Type Error iteration over a 0-d array.

Any reason why this is happening
the structure of my rcm folder is
structure_rcm
rcm_structure_2
rcm_structure_3

Not sure why this error is happening.Am i reading the file correctly?
import safe_rcm
tree=safe_rcm.open_rcm('Name of RCM folder',chunks={})

@sparshgarg23
Copy link
Author

it seems that the error is occuring when in safe_rcm/product/transformers.py.
When I load the RCM tree using

tree=read_product(mapper,'metadata/product.xml')
at that point the error is triggered.

@agrouaze
Copy link
Member

Hello @sparshgarg23 ,
If it is still relevant, could you provide the name of the product RCM you are testing?

@sparshgarg23
Copy link
Author

sparshgarg23 commented Feb 20, 2024

@sparshgarg23
Copy link
Author

@agrouaze were you able to look into the data format I sent.I believe you mentioned earlier that currently safe_rcm doesn't support slc files however even for a GRD file as shown in above link,it's unable to read the meta information.Also I would like to reopen this issue if that's okay with you.
thanks

@sparshgarg23 sparshgarg23 reopened this Feb 21, 2024
@agrouaze
Copy link
Member

@agrouaze were you able to look into the data format I sent.I believe you mentioned earlier that currently safe_rcm doesn't support slc files however even for a GRD file as shown in above link,it's unable to read the meta information.Also I would like to reopen this issue if that's okay with you. thanks

No I didn't have time for now to look at this file. I will do. You can reopen this issue.

@keewis
Copy link
Collaborator

keewis commented Feb 22, 2024

I did check yesterday, and apparently the reason for the error is that the file has just a single beam (VH-14, if I remember correctly), which breaks some assumptions. Fixing this will require some refactoring of the code, so this will take a while.

@agrouaze agrouaze added the bug Something isn't working label Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants