# This file is not yet used! # autoplot2023.py v3.02 # do not edit this file, changes will be lost. # See "3.02" below, and in org.autoplot.jythonsupport.JythonUtil # This version appears in JythonUtil as well! # This is copied into each enduser's autoplot_data/jython folder to be picked up # along with all the other python codes. from org.das2.qds.ops.Ops import * from org.autoplot.jythonsupport.JythonOps import * from org.autoplot.jythonsupport.Util import * from org.das2.qds import QDataSet from org.das2.qds.util.BinAverage import * from org.das2.qds.util import DataSetBuilder _autoplot_jython_version= 3.02 #_autoplot_jython_version= float(getAutoplotScriptingVersion()[1:]) from org.das2.datum import DatumRange, Units, DatumRangeUtil, TimeUtil from java.net import URL, URI from org.das2.datum import TimeParser # security concerns #from java.io import File #from org.das2.util.filesystem import FileSystem #from org.das2.fsm import FileStorageModel from org.autoplot.datasource.DataSetURI import getFile from org.autoplot.datasource.DataSetURI import downloadResourceAsTempFile #import java #import org # end, security concerns. # Jython is tricky with single-jar releases, and using star imports to find classes doesn't work. #import org.das2 #import org.das2.dataset #import org.das2.dataset.NoDataInIntervalException #import org.das2.graph params= dict() _paramMap= dict() _paramSort= [] _scriptTitle= "" _scriptDescription= "" _scriptLabel= "" _scriptIcon= "" import operator.isNumberType # name is the name of the input parameter. # deflt is the default value for the input parameter. # doc is any documentation for the parameter. # constraint is used to declare any constraints, presently one of: a list of enumerated values, or a dictionary with any of min, max, examples, values, and regex. def getParam( name, deflt, doc='', constraint='' ): """get the parameter from the URI