Skip to content

Rotations are not defined for instrument 'nortek aquadopp' #464

Description

@ddileonardo

Describe the bug:

The dolfyn.rotate2 function does not work with aquadopp data. I get a ValueError: Rotations are not defined for instrument 'nortek aquadopp'. The api.rotate2 function shows the same error.

It seems like this data should be able to be rotated similarly to the Nortek Signature.

To Reproduce:

  1. Read an aquadopp file
  2. Set the declination with dolfyn.set_declination
  3. Attempt to rotate the data
  4. See the error

Minimal working example:
I suspect that this will show up with any aquadopp test file. This aquadopp was set to profile.

Code run was:

from mhkit import dolfyn
from mhkit.dolfyn.adp import api

declination = -1.86

data_path = "" #insert a profiling aquadopp file here

ds = dolfyn.read(data_path)

dolfyn.set_declination(ds, declination, inplace=True) 
api.rotate2(ds, "earth", inplace=True)

Expected behavior:

Expected the data to be rotated similarly to the signature instrument.

Desktop (please complete the following information):

  • OS: Windows
  • MHKiT Version: v1.1.2

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