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

ned2lla #1

Open
scott81321 opened this issue Dec 6, 2022 · 1 comment
Open

ned2lla #1

scott81321 opened this issue Dec 6, 2022 · 1 comment

Comments

@scott81321
Copy link

I tried ned2lla on my data and I get an error message:

Dot indexing is not supported for variables of this type.

Error in ned2ecef (line 2)
ecef = ned*DEM.DCM_ECEF2NED + ones(size(ned,1),1)*DEM.centerecef;

Error in ned2lla (line 2)
ecef = ned2ecef(DEM,ned);

@pderrenger
Copy link
Member

Hello @scott81321,

Thank you for reaching out with your issue. It seems like there might be a problem with the variable DEM that is being used in the ned2ecef function. The error message suggests that DEM might not be structured as expected, which is why dot indexing is failing.

Here are a few steps you can take to troubleshoot this issue:

  1. Ensure that DEM is correctly initialized and that it contains the fields DCM_ECEF2NED and centerecef. These should be accessible via dot notation.

  2. Check the data type of DEM. It should be a struct for dot indexing to work. You can use the whos command in MATLAB to inspect the variable.

  3. If DEM is loaded from a file, verify that the file is being loaded correctly and that the structure of the data within the file matches what the ned2ecef function expects.

  4. Make sure there are no variable name conflicts in your workspace that might be causing DEM to be overwritten or misused.

If you continue to experience issues, please provide more context or a minimal reproducible example, and I'll be happy to take a closer look.

Remember, you can always refer to our documentation at https://docs.ultralytics.com for more detailed information and guidance.

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