fmihpc / analysator

Python based package for analyzing vlsv files produced by Vlasiator
GNU General Public License v2.0
5 stars 32 forks source link

Jonas cutthrough timeseries script #224

Open JonasSuni opened 6 months ago

JonasSuni commented 6 months ago

Usable and tested script for making cutthrough timeseries (aka. time-elongation maps aka. keograms) with Vlasiator data.

JonasSuni commented 6 months ago

I changed the command line argument handling to use argparse instead of sys.argv, so now there are proper defaults and optional arguments.

JonasSuni commented 3 months ago

This has been tested by the way.

markusbattarbee commented 3 months ago

I'm sorry but a "cut through" function implies some cut along spatial space. This now takes a list of points (From a file!?! What do we do, live in the dark ages?) and plonks those values in the plot array, but the "spatial" axis isn't a proper axis as it's just a list of points.

Having a starting point and an end point and doing a cut between those two positions (using one of the existing cut through functions) would be much preferred.

JonasSuni commented 3 months ago

I have to respectfully disagree with some of these points (no pun intended).

Reading in the list of coordinates from a file is easier in this case when the script is intended to be run directly from the command line.

And continuing with that line of reasoning, this script is intended as an auxiliary tool only that can be run as is.

As for using an arbitrary list of points instead of a cut, this functionality is useful for cases where you want to e.g. plot along a field line or some other non-analytic curve. However, I can change the name of the script and the functions to reflect that this is not a "straight cut".

If I was integrating a function directly into Analysator (like a plot_cutthrough function or something), then I would certainly use the existing cut through functions and implement the straight cut through first. Do let me know if you think that is what I should be doing instead.

JonasSuni commented 3 months ago

Ok I will write a more generic function that takes reasonable non-file input when I have time. (Battarbee & Suni, private communication, 2024)

alhom commented 1 month ago

Quick notes:

This is to be done between now and Jonas' defense.