The Jython getDataSet(uri,timerange) command will read at least the timerange requested, maybe more. This is because it's often easiest to read in all of the data, like with a CDF file, and it's always been the policy that more than the requested interval can be returned. The extra data just waits off screen, beyond the x-axis range, and no one thinks about it. However, the scientist often wants to have just the time range requested, and this is annoying because you then have to trim the data:
ds= getDataSet( ..., timerange= '2022-10-18T10:00/11:00' )
ds= trim( ds, '2022-10-18T10:00/11:00' )
Enough people have complained about this that there should be a one-liner. Sadie suggested that it just be a "trim" keyword:
ds= getDataSet( ..., timerange= '2022-10-18T10:00/11:00', trim=True )
This should be straight-forward and will greatly reduce code and mistakes from miscoding that happen.
This will require that a Jython wrapper function will be written for getDataSet, because currently this calls directly into the Java code. See
https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/Autoplot/src/external/PlotCommand.java
for example, which shows how the plot command is implemented.
units would also be a nice feature, where it converts the units if it can and throws an error immediately if it can't.
See also https://sourceforge.net/p/autoplot/bugs/2633/