LSDtopotools / lsdviztools

Vizualisation (or visualisation, depending on your country) tools for LSDTopoTools and lsdtopytools
MIT License
4 stars 3 forks source link

-basin_keys in PlotMOverNAnalysis.py #68

Closed emolihumph closed 3 years ago

emolihumph commented 3 years ago

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'

simon-m-mudd commented 3 years ago

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.