« GPlotPanel » : différence entre les versions

De GENIUS
Aller à la navigation Aller à la recherche
(Page créée avec « TBW ... Return to the introduction ↑ Go to the next page → »)
 
Aucun résumé des modifications
Ligne 1 : Ligne 1 :
TBW ...
There is another higher level widget [{{PathCurrentJavaDoc}}/fr/cnes/genius/plots/GPlotPanel.html GPlotPanel]] allowing to plot data stored in a file with a given format as described here below ...
 
<syntaxhighlight lang="java">
#<AM-acces:COL-V2.0>
<INIT:
Logiciel="DOORS"
VERSION="V10.0"
<COL:
  0 : DATE ~cal (Date)
  1 : TIME ~s (Time)
  2 : X ~m (Integration Frame X Coordinates)
  3 : Y ~m (Integration Frame Y Coordinates)
  4 : Z ~m (Integration Frame Z Coordinates)
  5 : VX ~m/s (Integration Frame X Velocity Coordinates)
  6 : VY ~m/s (Integration Frame Y Velocity Coordinates)
  7 : VZ ~m/s (Integration Frame Z Velocity Coordinates)
  8 : PSI ~deg (Integration Frame Pitch Angle)
  9 : TETA ~deg (Integration Frame Yaw Angle)
  10 : PHI ~deg (Integration Frame Roll Angle)
 
>
>
2010-01-01T00:00:00.000 0.000000000000000e+00  6.678133638255782e+06  3.787739409565575e-01 -6.700773491792874e+03 -6.052524398242765e+00  4.780628779989441e+03 -6.031804544978191e+03  9.000000000000000e+01  5.160000022816957e+01  2.699999999999999e+02
2010-01-01T00:00:10.000 1.000000000000000e+01  6.677625571129634e+06  4.780559859589861e+04 -6.701701843926338e+04 -9.555978350214156e+01  4.780308392028196e+03 -6.031309305094114e+03  9.106301358852552e+01  5.159519405116432e+01  2.708330583318874e+02
...
</syntaxhighlight>
 
Note that to be interpreted, dates must have the "<font color=#FF8C00>yyyy-mm-ddThh:mm:ss.sss</font>" format (and the "unit" must be <font color=#FF8C00>~cal</font>).
 
 
Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give :
* 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
 
In the following example, we will check for EPH_* files (no specific suffix).
 
<syntaxhighlight lang="java">
    GPlotPanel plots = new GPlotPanel("EPH", "", "Ephemeris file", 0);
   
    ...
 
    public void display() throws GException {
        put(plots);
    }
}
 
</syntaxhighlight>
 
This panel will then appear ...
 
{{:user_manual:gplotpanel1.jpg|}}
 
After selecting a file ...
 
{{:user_manual:gplotpanel2.jpg|}}
 
We may have something like that ...
 
{{:user_manual:gplotpanel3.jpg|}}
 


[[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]]  
[[WELCOME_TO_THE_GENIUS_WIKI|Return to the introduction ↑]]  
[[Internationalization|Go to the next page →]]
[[Internationalization|Go to the next page →]]

Version du 5 mai 2017 à 12:31

There is another higher level widget GPlotPanel] allowing to plot data stored in a file with a given format as described here below ...

#<AM-acces:COL-V2.0>
<INIT:
 Logiciel="DOORS"
 VERSION="V10.0"
<COL:
  0 : DATE ~cal (Date)
  1 : TIME ~s (Time)
  2 : X ~m (Integration Frame X Coordinates)
  3 : Y ~m (Integration Frame Y Coordinates)
  4 : Z ~m (Integration Frame Z Coordinates)
  5 : VX ~m/s (Integration Frame X Velocity Coordinates)
  6 : VY ~m/s (Integration Frame Y Velocity Coordinates)
  7 : VZ ~m/s (Integration Frame Z Velocity Coordinates)
  8 : PSI ~deg (Integration Frame Pitch Angle)
  9 : TETA ~deg (Integration Frame Yaw Angle)
  10 : PHI ~deg (Integration Frame Roll Angle)

>
>
2010-01-01T00:00:00.000 0.000000000000000e+00  6.678133638255782e+06  3.787739409565575e-01 -6.700773491792874e+03 -6.052524398242765e+00  4.780628779989441e+03 -6.031804544978191e+03  9.000000000000000e+01  5.160000022816957e+01  2.699999999999999e+02 
2010-01-01T00:00:10.000 1.000000000000000e+01  6.677625571129634e+06  4.780559859589861e+04 -6.701701843926338e+04 -9.555978350214156e+01  4.780308392028196e+03 -6.031309305094114e+03  9.106301358852552e+01  5.159519405116432e+01  2.708330583318874e+02
...

Note that to be interpreted, dates must have the "yyyy-mm-ddThh:mm:ss.sss" format (and the "unit" must be ~cal).


Using this widget is very simple as you have just to instantiate and then display it. To instantiate it, you must give :

* 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

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

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

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

This panel will then appear ...

User manual:gplotpanel1.jpg

After selecting a file ...

User manual:gplotpanel2.jpg

We may have something like that ...

User manual:gplotpanel3.jpg


Return to the introduction ↑ Go to the next page →