LSDtopotools/lsdviztools

-basin_keys in PlotMOverNAnalysis.py

emolihumph opened this issue · 1 comments

  • lsdviztools version: latest
  • Python version:
  • Operating System:

Description

Chi mapping worked - expected output. Visualising all the data with PlotMOverNAnalysis.py & -all True worked.
Visualising the data for just three basins - with -basin-keys 7,11,13 - failed, although this particular argument is listed in the "usage" of PlotMOverNAnalysis.py.
Is it not possible to only visualise/plot selected basins for this "Full visualisation routine"?

What I Did

The final basin keys are:
[7, 11, 13]
There are 3basins that I will plot
I am making a plot for basin: 7
Traceback (most recent call last):
File "PlotMOverNAnalysis.py", line 493, in
main(sys.argv[1:])
File "PlotMOverNAnalysis.py", line 430, in main
SA.SAPlotDriver(this_dir, args.fname_prefix, FigFormat = args.FigFormat,size_format=args.size_format,
File "/LSDTopoTools/LSDMappingTools/LSDPlottingTools/LSDMap_SAPlotting.py", line 393, in SAPlotDriver
BinnedWithRawSlopeAreaPlot(DataDirectory, DEM_prefix, FigFileName=FileName,
File "/LSDTopoTools/LSDMappingTools/LSDPlottingTools/LSDMap_SAPlotting.py", line 851, in BinnedWithRawSlopeAreaPlot
sources = np.unique(RawDF['source_key'].as_matrix())
File "/usr/local/lib/python3.8/site-packages/pandas/core/generic.py", line 5274, in getattr
return object.getattribute(self, name)
AttributeError: 'Series' object has no attribute 'as_matrix'

The basin_keys works on plotting the chi profiles but is not implemented for the raster plots at the moment. This will probably not be implemented any time soon since it involves adjusting several layers of the routines.