Skip to content

TauRunner doesn't seem to be able to calculate the column depth for certain angles.  #59

@williamluszczak

Description

@williamluszczak

Certain choices of angle will result in TauRunner throwing an error when trying to calculat column depth. E.g:

    Earth    = construct_earth(layers=[(3., 1.0)])
    thetas_nadir = np.array([66.44148063158723])
    tracks = make_tracks(thetas_nadir)
    mytrack = tracks[thetas_nadir[0]]

    print("column depth", mytrack.total_column_depth(Earth))

Results in an error:

  File "generate_evts.py", line 116, in <module>
    print("column depth", mytrack.total_column_depth(Earth))
  File "/home/wluszczak/taurunner/taurunner/track/track.py", line 53, in total_column_depth
    set_spline(self, body)
  File "/home/wluszczak/taurunner/taurunner/track/utils/spline_column_depth.py", line 159, in set_spline
    X2x = construct_X2x(x2X)
  File "/home/wluszczak/taurunner/taurunner/track/utils/spline_column_depth.py", line 100, in construct_X2x
    raise ValueError('Constant X2x is only allow for tracks with no column depth')
ValueError: Constant X2x is only allow for tracks with no column depth```

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