Skip to content

issue in plot_profil #1

@mmetois

Description

@mmetois

Hi Simon,
I think there is a bug in the plot_profile_r4 script. The np.delete(insarx,index), np.delete(insary,index) that is suppose to build the variables ix and iy fails due to shape inconsistency.
Changing lines 135 to 142 fix the pb :
iilos,iixp,iiyp=np.delete(los,index),np.delete(insarxp,index),np.delete(insaryp,index)
if plotdem is 'yes':
iitopo = np.delete(topo,index)
index=np.nonzero((np.isnan(iilos)==True))
#print(shape(index))
ilos,ixp,iyp=np.delete(iilos,index),np.delete(iixp,index),np.delete(iiyp,index)

i fail the pull request ;)
marianne

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions