G
trajectories
Plotting a series of temporal trajectories
  Trajectories are readed from ASCII files with a pair of i,j grid points for each position of the trajectory
    i,j couples of trajectories for all files are referred to a netcdf file with a respective projection
  A complemtary file for observations is also added separately
  trjfilens= [filen]@[Tint]@[map]@[Ttrj] ',' separated list of ASCII files with trajectories,
      time intervals and reference maps (first one will be used to plot)
    [filen]: name of the file to use (lines with '#', not readed) with values as:
      [t-step] [x] [y]
    [Tint]: interval of time-steps to get from the file as [Tbeg]@[Tend] or -1 for all the interval
    [map]: [file]#[lonname]#[latname] common projection data
      [file]; netcdf file with the [lon],[lat] projection for the trajectory
      [lonname],[latname]; names of the longitudes and latitudes variables in [file]
    [Ttrj]|[val1]|[val2]|[...|[valN]]: kind of associated time values to the trajectory
      't-step'|[dtime]|[idate]: each line corresponds to a consecutive time-step with the same deltatime
        [dtime]: length of time-step in seconds
        [idate]: date of the first time-step (in [YYYY][MM][DD][HH][MI][SS] format)
      'CF-step'|[units]|[refdate]: each line corresponds to a consecutive CF time-step
        [units]: any of standard temporal CF units: weeks, days, hours, minutes, seconds, ...
        [refdate]: reference date of the CF time-units
      'fulldate': each line provides the correspondance date (in [YYYY][MM][DD][HH][MI][SS] format)
  values= [plotkind]|[leglabels]|[lonlatlims]|[title]|[graphk]|[mapkind]|[legvals]|[figclose]
    [plotkind],[val1],[...,[valN]]: kind of plot to generate
      'spaghetti'@[trjltype]@[trjlcol]@[trjlwdth]@[trjptyp]@[trjpsiz]: line-marker for each trajectory
        [trjltype]: ',' list of type of lines for each trajectory (single value same for all, 'None' for auto)
        [trjlcol]: ',' list of color of lines for each trajectory (single value same for all, 'None' for auto)
        [trjlwdth]: ',' list of width of lines for each trajectory (single value same for all, 'None' for auto)
        [trjptyp]: ',' list of type of points for each trajectory (single value same for all, 'None' for auto)
        [trjpsiz]: ',' list of size of points for each trajectory (single value same for all, 'None' for auto)
      'spaghetti_date'@[trjltype]@[trjlcol]@[trjlwdth]@[trjptyp]@[trjpsiz]@[datefmt]@[datefontsize]
        @[datefreq]@[xoffset]@[yoffset]: line-marker
        for each trajectory with a given date format at each point
        [trjltype]: ',' list of type of lines for each trajectory (single value same for all, 'None' for auto)
        [trjlcol]: ',' list of color of lines for each trajectory (single value same for all, 'None' for auto)
        [trjlwdth]: ',' list of width of lines for each trajectory (single value same for all, 'None' for auto)
        [trjptyp]: ',' list of type of points for each trajectory (single value same for all, 'None' for auto)
        [trjpsiz]: ',' list of size of points for each trajectory (single value same for all, 'None' for auto)
        [datefmt]: format of the date to show (C-like mixed with LaTeX commands)
        [datefontsize]: font-size of the time-labels
        [datefreq]: frequency of time-labels
        [xoffset]: x-axis offset in pixels of the time-lables respect trajectory
        [yoffset]: y-axis offset in pixels of the time-lables respect trajectory
    [leglabels]: ',' separated list of names for the legend
    [lonlatlims]: ',' list of limits of the map [lonmin, latmin, lonmax, latmax] or None
    [title]: title of the plot ('!' for spaces)
    [graphk]: kind of output of the graphic (png, pdf, ...)
    [mapkind]: drawing coastaline ([proj],[res]) or None
      [proj]: projection
        * 'cyl', cilindric
        * 'lcc', lambert conformal
      [res]: resolution:
        * 'c', crude
        * 'l', low
        * 'i', intermediate
        * 'h', high
        * 'f', full
    [legvals]=[locleg]@[fontsize]: legend values
      [locleg]: location of the legend (0, autmoatic)
        1: 'upper right', 2: 'upper left', 3: 'lower left', 4: 'lower right',
        5: 'right', 6: 'center left', 7: 'center right', 8: 'lower center',
        9: 'upper center', 10: 'center'
      [fontsize]: font size for the legend (auto for 12)
    [figclose]: whether figure should be closed or not
  observations= [obsfile],[obsname],[Tint],[null],[obstrjvals] ('None' for no observational/reference trajectory)
    [obsfile]: name fo the File with the observations as [t-step] [lat] [lon]
    [obsname]: name of the observations in the graph
    [Tint]: interval of time as [Tbeg]@[Tend] or -1 for all the interval
    [null]: null value for the observed trajectory
    [obstrjvals] = [Ttrj]@[obsltype]@[obslcol]@[obslwdth]@[obsptyp]@[obspsiz] values for the observational/reference
      trajectory in the plot
      [Ttrj]|[val1]|[val2]|[...|[valN]]: kind of associated time values to the trajectory
        't-step'|[dtime]|[idate]: each line corresponds to a consecutive time-step with the same deltatime
          [dtime]: length of time-step in seconds
          [idate]: date of the first time-step (in [YYYY][MM][DD][HH][MI][SS] format)
        'CF-step'|[units]|[refdate]: each line corresponds to a consecutive CF time-step
          [units]: any of standard temporal CF units: weeks, days, hours, minutes, seconds, ...
          [refdate]: reference date of the CF time-units
        'fulldate': each line provides the correspondance date (in [YYYY][MM][DD][HH][MI][SS] format)
      [obsltype]: type of line for the observations/reference trajectory (single 'auto' for '-', 'k', 2, 'x', 2)
      [obslcol]: color of line for the observations/reference trajectory
      [obslwdth]: width of line for the observations/reference trajectory
      [obsptyp]: type of point for the observations/reference trajectory
      [obspsiz]: size of point for the observations/reference trajectory
$ python ${pyHOME}/drawing.py -o drawing.py -o draw_trajectories -f 'medic950116/control/trajectory.dat@-1@etudes/domains/WL_HyMeX_HighRes_C/geo_em.d01.nc#XLONG_M#XLAT_M@t-step|3600.|19950115000000,medic950116/wlmdza/trajectory.dat@-1@etudes/domains/WL_HyMeX_C/geo_em.d01.nc#XLONG_M#XLAT_M@t-step|3600.|19950115000000,medic950116/wlmdzb/trajectory.dat@-1@etudes/domains/WL_HyMeX_C/geo_em.d01.nc#XLONG_M#XLAT_M@t-step|3600.|19950115000000,medic950116/wlmdzb_cyc/trajectory.dat@-1@etudes/domains/WL_HyMeX_C/geo_em.d01.nc#XLONG_M#XLAT_M@t-step|3600.|19950115000000' -S 'spaghetti_date@-@None@1@o@1@$%d^{%H}$@8@6@4@4|$WRF_{CRM}$,$LMDZ_{AR4.0}$,$LMDZ_{NPv3.1}$,$LMDZ_{NPv3.1b}$|15,28,26,39|medicane trajectories|png|cyl,i|0@8|yes' -v 'medic950116/obs/trajectory.dat,satellite,-1,0.9999998779E+03,t-step|1800.|19950115000000@auto'