« GPlotPanel » : différence entre les versions

De GENIUS
Aller à la navigation Aller à la recherche
Ligne 49 : Ligne 49 :
If users want to use [{{PathCurrentJavaDoc}}/fr/cnes/genius/plots/GPlotPanel.html GPlotPanel] functions without coding, since V1.9 version, it is possible to use directly a compiled tool with its own <font color=#FF8C00 title="Graphical User Interface">GUI</font>. It is provided with the full zip package and to use it, you have just to double clicked on the jar file or type the following command:
If users want to use [{{PathCurrentJavaDoc}}/fr/cnes/genius/plots/GPlotPanel.html GPlotPanel] functions without coding, since V1.9 version, it is possible to use directly a compiled tool with its own <font color=#FF8C00 title="Graphical User Interface">GUI</font>. It is provided with the full zip package and to use it, you have just to double clicked on the jar file or type the following command:


  >> java -jar gplot-1.9.jar
  >> java -jar gplot-x.x.jar


The default mode (no command line arguments) is to use the Madona reader interface. You have the possibility change it after running it:
The default mode (no command line arguments) is to use the Madona reader interface. You have the possibility change it after running it:

Version du 23 août 2019 à 09:07

There is another higher level widget GPlotPanel] allowing to plot data stored in a file with the "Madona" or SQLite formats given format as described here.

Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give at least (for the "Madona" files):

  • the prefix of the files you want to read
  • the suffix of the files you want to read
  • a comment giving a description of this kind of files
  • the maximum number of detached plot windows. If greater than 0 a "+" button wille be displayed in order to allow to display other plots in detached panels

Nevertheless, you have the possibility to specify which kind of files you will have to consider, adding an additionnal parameter:

In the following example, we will check for EPH_* files (no specific suffix).

    GPlotPanel plots = new GPlotPanel("EPH", "", "Ephemeris file", 0, true);
    
    ...

    public void display() throws GException {
        put(plots);
    }
}

This panel will then appear ...

GPlotPanel1.jpg


After selecting a file ...

GPlotPanel2.jpg


We may have something like that ...

GPlotPanel3.jpg

Additional files

Note that, since the V1.9 verison, it is now possible to plot additional files to make comparison between them. It is also possible to get relative values but this functionnality is now relatively limited as it is necessary to have exactly the same amount of lines between each files and no interpolation are made if abscissae are different.

GPlotPanel4.jpg

GPLOT utility

If users want to use GPlotPanel functions without coding, since V1.9 version, it is possible to use directly a compiled tool with its own GUI. It is provided with the full zip package and to use it, you have just to double clicked on the jar file or type the following command:

>> java -jar gplot-x.x.jar

The default mode (no command line arguments) is to use the Madona reader interface. You have the possibility change it after running it:

GPlotPanel5.jpg GPlotPanel6.jpg


… or to use arguments as is:

  • -h or --help for printing help on arguments
  • -r or --reader then reader name (MADONA or SQLITE)
  • -p or --prefix then prefix of the files to read
  • -d or --desc then description of the files to read

Return to the introduction ↑ Go to the next page →