Skip to main content
  • Home >
  • Documentation
  • FAQ
  • Downloads
  • Support
  • Current Release Notes
  • Ferret Users Guide
    • Users Guide Index
    • Commands Reference
    • 1. Introduction
    • 2. Data Set Basics
    • 3. Variables & Expressions
    • 4. Grids & Regions
    • 5. Animations & Gif Images
    • 6. Customizing Plots
    • 7. Handling String Data Symbols
    • 8. Working with Special Data Sets
    • 9. Computing Environment
    • 10. Converting to NetCDF
    • 11. Writing External Functions
    • Glossary
    • Appendix A: Functions
    • Appendix B: PPLUS Guide
    • Appendix C: Ferret-Specific PPLUS Enhancements
  • Previous Release Notes
  • Tutorials and Demos
    • Ferret Tour
    • DSG files: Discrete Sampling Geometries Demo
    • Ferret sorting demo
    • Fast Fourier Transforms demo
    • Empirical Orthogonal Functions demo
    • Ferret objective analysis demo
    • Ferret Palette Demo
    • Map projections
    • Ferret polygon vector demo
    • Ferret Graticules demo
    • Ferret Polytube Demo
    • Ferret Polymark Demo
    • Ferret Constant-Array demo
    • Ferret land_detail demo
    • COADS Tour
    • Levitus Tour
    • Use OPeNDAP
    • Ferret binary read demo
  • PyFerret
    • PyFerret Downloads and Install ../../faq/ferret-faqs.html
    • What is PyFerret?
    • Why use PyFerret?
    • PyFerret for the Ferret user
    • PyFerret command syntax: quick-start notes
    • PyFerret for the Python user
    • Graphics in PyFerret ?
    • New Ferret functionality
    • PyFerret Python functions and constants
    • PyFerret Python objects and methods
    • Ferret external functions in Python
    • Ferret Fortran external functions
    • PyFerret metadata-and-data dictionaries
  • OPeNDAP
    • OPeNDAP usage in Ferret
    • Use OPeNDAP Demo
    • Test OPeNDAP

7.9 PLOT+ STRING EDITING TOOLS


The PLOT+ program provides a variety of tools for editing symbol strings. See the PLOT+ Users Guide for further information. The special functions manipulate and reformat character strings.

Note that many of these functions are handled directly by Ferret string functions such as STRINDEX, STRLEN, SUBSTRING, etc

The general format is SET sym $function(arg1, arg2,..). The functions are:

$EDIT(symbol,argument)

Edit a symbol: change to uppercase, remove extra blanks, or remove all blanks

$EXTRACT(start,length,symbol)

Extracts selected characters from the input string.

$INTEGER(symbol)

Converts a number to integer format

$LENGTH(symbol)

Returns the length of the input string

$LOCATE(substring,symbol)

Locates a substring in the input string (compares only the first 30 characters of the substring.)

$ELEMENT(position,delimiter,symbol)

Extracts an element from an input string in which the elements are separated by a specified delimiter.

Example:

yes? DEFINE SYMBOL test = my string
yes? PPL SET upper_test $EDIT(test,COMPRESS)
yes? SHOW SYMBOL upper_test
UPPER_TEST = "my string"