1 / 11

MakeLabels Geosciences Node Tool for Generating PDS4 Labels

MakeLabels Geosciences Node Tool for Generating PDS4 Labels. Ed Guinness 8/28/2017. MakeLabels Tool Overview. Create PDS4 labels using: Label template with placeholders to be filled in. Excel spreadsheet with values to replace the placeholders (tags ).

youngb
Download Presentation

MakeLabels Geosciences Node Tool for Generating PDS4 Labels

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. MakeLabelsGeosciences NodeTool for Generating PDS4 Labels Ed Guinness 8/28/2017

  2. MakeLabels Tool Overview • Create PDS4 labels using: • Label template with placeholders to be filled in. • Excel spreadsheet with values to replace the placeholders (tags). • Tool is similar to a mail-merge process. • Tool available with a GUI or command line version. • Most often a single worksheet will be used. • Possible to use two worksheets stored in one or two workbooks. • For example, use two worksheets to make labels for several spectra from one specimen.

  3. System Requirements • Windows 7 or greater. • Excel 2013 or greater (has not been tested on earlier versions of Excel). • .NET Framework 4.5.2 (included in the tool package). • Software Language: C#.

  4. Excel Worksheet • First two rows are headings. • Value in first row must match the tag in label template. Use lower case. • Value in second row can be used for an expanded name to help explain the data in the column. • Rows 3 to n will contain values inserted into labels • One row for each label to be generated.

  5. Label Template with Tags • Create a PDS4 template with your favorite tool – Oxygen, PLAID, etc. • Attributes that vary for each label are filled with tags. See example below. • Tag in template must match value in first row of worksheet. • See documentation for use of two worksheets and syntax for those tags.

  6. Processing Directives - 1 • In addition to simple replacement tags there are a few processing directives that can be included in a label template. • CurrentUTCDate • CurrentUTCDateTime • CurrentDate • CurrentDateTime • See example below on how to include in the template. Tag is case sensitive. • Replaced label value is based on your system time.

  7. Processing Directives - 2 • Two directives that act as “if” statements. • Hide if – does not include a section of template if there is no value in a column. • Show if – include a section if condition is met.

  8. Example Template Tags <Modification_History> <Modification_Detail> <modification_date><!-- |@CurrentDate| --></modification_date> <version_id>1.0</version_id> <description>Migration to PDS4</description> </Modification_Detail> </Modification_History> </Identification_Area> <Observation_Area> <Time_Coordinates> <start_date_time><!-- |start_time| -->Z</start_date_time> <stop_date_time><!-- |stop_time| -->Z</stop_date_time> </Time_Coordinates> <Modification_History> <Modification_Detail> <modification_date>2017-08-15</modification_date> <version_id>1.0</version_id> <description>Migration to PDS4</description> </Modification_Detail> </Modification_History> </Identification_Area> <Observation_Area> <Time_Coordinates> <start_date_time>2008-06-06T03:21:17.056Z</start_date_time> <stop_date_time>2008-06-06T03:21:53.033Z</stop_date_time> </Time_Coordinates> <File_Area_Observational> <File> <file_name><!-- |file_name| --></file_name> <creation_date_time><!-- |create_time| -->Z</creation_date_time> </File> <Header> <offset unit="byte">0</offset> <object_length unit="byte"><!-- |table_offset| --></object_length> <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id> </Header> <Table_Delimited> <offset unit="byte"><!-- |table_offset| --></offset> <parsing_standard_id>PDS DSV 1</parsing_standard_id> <description>Robotic Arm (RA) Scoop Tip position data and components of force exerted by the RA. All coordinates are in payload frame with the origin at the RA shoulder (where the RA attaches to the deck).</description> <records><!-- |records| --></records> <record_delimiter>Carriage-Return Line-Feed</record_delimiter> <field_delimiter>Comma</field_delimiter> <File_Area_Observational> <File> <file_name>sol011.csv</file_name> <creation_date_time>2010-05-21T15:29:10Z</creation_date_time> </File> <Header> <offset unit="byte">0</offset> <object_length unit="byte">175</object_length> <parsing_standard_id>7-Bit ASCII Text</parsing_standard_id> </Header> <Table_Delimited> <offset unit="byte">175</offset> <parsing_standard_id>PDS DSV 1</parsing_standard_id> <description>Robotic Arm (RA) Scoop Tip position data and components of force exerted by the RA. All coordinates are in payload frame with the origin at the RA shoulder (where the RA attaches to the deck).</description> <records>284</records> <record_delimiter>Carriage-Return Line-Feed</record_delimiter> <field_delimiter>Comma</field_delimiter>

  9. Running GUI • Fill in fields as needed. • Settings can be saved for future use. • Click “Generate Labels” to start tool. • Processing status window is generated and output can be saved to a file.

  10. Running Command Line • Input parameters (see documentation) have the form “–keyword value”. • There is a configuration file (MakeLabels.exe.config) where default values can be set. • Config file must be in same directory as the command line program.

  11. How to Get the MakeLabels Tool • Download available from: • http://pds-geosciences.wustl.edu/tools/makelabels.html • Also listed on PDS tools registry. • ZIP file (~68 MB) has: • Documentation; • Command line and GUI versions of tool; • Examples. • Questions can be directed to Dan Scholes at Geosciences Node.

More Related