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

EXPNDI_BY_M_COUNTS

Appendix A

 

EXPNDI_BY_M_COUNTS(dat, counts, max_profile_len)

Expands arg1 on I into an XE grid. (To split observatiosn into E rows). For instance, the counts may be the ROWSIZE variable in a Discrete Geometries dataset which represents profiles.
 

Arguments:

DAT

Variable to expand. A 1-D list on the X axis

 

COUNTS

The count of values in each profile or other feature type
on an E axis
 

MAXLEN

The maximum count or rowsize for any feature:
I-size of the result

Result Axes:

X

Abstract: Length is the number of features, length of argument 2

 

Y

NORMAL

 

Z

NORMAL

 

T

NORMAL

 

E

Abstract: length given by argument 3

 

F

NORMAL

 

Example:

yes? let var = {1,2,3,4,5,6,7,8,9}
yes? let counts = esequence({1,3,5})
yes? list EXPNDI_BY_M_COUNTS(var,counts[m=1:3],5)
VARIABLE : EXPNDI_BY_M_COUNTS(VAR,COUNTS[M=1:3],5)
SUBSET : 5 by 3 points (X (Obs)-E (Row))
1 2 3 4 5 
1 2 3 4 5
1 / 1: 1.000 ... ... ... ...
2 / 2: 2.000 3.000 4.000 ... ...
3 / 3: 5.000 6.000 7.000 8.000 9.000