klaundal / lompe

MIT License
15 stars 8 forks source link

Update to fix new scaling method, and 1 new feature #20

Closed jpreistad closed 1 year ago

jpreistad commented 1 year ago

Updated the scatterplot function in visualization.py to not use the dataset.scale variable, that has been depricated in PR #19 . For scaling the plot for different types of input data, values from the QUIVERSCALES dictionary is used instead. Note that this has only been tested with convection data, but I hope it works for the other data types as well.

Also an option to specify perimiter width is added, so that the user can select data at various regions with respect to the secs grid, in the same way as is done inside run_inversion(). Note that similar to run_inversion(), calling this function with perimiter_width can delete data in the model.data object.