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_Z_COUNTS

Appendix A

 

EXPNDI_BY_Z_COUNTS(dat, counts, max_profile_len)

Expands arg1 on I into an XZ grid. (To split Z-profiles). 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
 

MAXLEN

The maximum count or rowsize for any feature

Result Axes:

X

Abstract: Length is the number of profiles

 

Y

inherited from arg 1

 

Z

Abstract: length given by argument 3

 

T

inherited from arg 1

 

E

inherited from arg 1

 

F

inherited from arg 1

 

Example:

 

yes? let var = {11,12,13,-2,-1,-2,-1,3,4}
yes? let rowsize = {3,4,2}
 
yes? list expndi_by_z_counts(var, rowsize, `rowsize[i=@max]`)
!-> list expndi_by_z_counts(var, rowsize, 4)
VARIABLE : EXPNDI_BY_Z_COUNTS(VAR, ROWSIZE, 4)
SUBSET : 3 by 4 points (X-Z)
1 2 3 
1 2 3
1 / 1: 11.00 -2.00 3.00
2 / 2: 12.00 -1.00 4.00
3 / 3: 13.00 -2.00 ...
4 / 4: ... -1.00 ...