Menu

#426 revisit macros

Someday
open
nobody
None
5
2016-05-11
2015-05-04
No

We need to revisit macros, where strings can be inserted into titles and labels. For example, the title "Flux %{RANGE}" should display "Flux 2015-05-01" when the day is displayed.

I need to go through and figure out what is supported where, and to make the support uniform. Support should also allow:

Mission: %{METADATA.GlobalAttributes.Mission_group}!cSource: %{METADATA.GlobalAttributes.Source_name}
Version=%{USER_PROPERTIES.VERSION}

Discussion

  • Jeremy Faden

    Jeremy Faden - 2015-05-05

    I've made it so that the plotElement legend element and the plot title both use the same code (LabelConverter in org.virbo.autoplot.dom). The plot uses the first plotElement for dataset metadata.

     
  • Jeremy Faden

    Jeremy Faden - 2015-05-05

    some metadata has spaces (e.g. JPEG metadata), and this probably needs to be fixed.
    some metadata has excessive data, and it would be nice to be able to use a regular expression to extract it. E.g.:

    %{METADATA.Source_name,regex=(.*)>.*}
    

    would grab just RBSP-A of "RBSP-A>Radiation Belt Storm Probe A". Or string replace, like many editors have a regex replace.

     

    Last edit: Jeremy Faden 2015-05-05
  • Jeremy Faden

    Jeremy Faden - 2015-05-11

    Chris was just asking about getting at QDataSet properties, for example the CACHE_TAG, and UNITS and TITLE would be nice too. I need to make sure that these wouldn't conflict with existing names, but given that USER_PROPERTIES is already supported, anything should be supported.

     
  • Jeremy Faden

    Jeremy Faden - 2015-05-12

    You can now use ${PROPERTIES.name} to get at dataset properties. For example, ${PROPERTIES.DEPEND_1.UNITS} will print the y tag units.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.