Skip to content

xy2ll error in solving for rho #3

@SamKodama

Description

@SamKodama

I attempted to use the xy2ll for both MATLAB and python. I used the x and y data from the BedMachine .nc file. In both instances of running the script I ran into the errors
For Python:
ufunc 'square' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''

For MATLAB:
Check for incorrect argument data type or missing argument in call to function 'sqrt'.
rho=sqrt(x.^2+y.^2);

In Python I was able to fix the issue by importing the x and y values as a dtype='int64' numpy array. Some stackoverflow searchers made it seem like the error was an integer overflow issue. However the output longitude values only varied from -45 to 135 and not -180 to 180.

Any help would be much appreciated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions