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

LON_LAT_TIME_STRING

LON_LAT_TIME_STRING(longitude, latitude, time, time_axis, string) Generate names based on longitude,latitude,time,and a string. For instance, profile data at a set of longitude, latitude stations with data at particular times may need labels for each station.

 

Arguments:

longitude

longitude value(s). They will be translated to the range (0,360)

 

latitude

latitude values(s). Positive values will be labeled N, negative ones S

 

time

Numeric time coordinates

 

tim_eaxis

A variable on the time axis to use in translating time coordinates to time strings

 

string

A label to start the strings

Result Axes:

X

Inherited from longitude, latitude and time arguments

 

Y

Inherited from longitude, latitude and time arguments

 

Z

Inherited from longitude, latitude and time arguments

 

T

Inherited from longitude, latitude and time arguments

 

E

Inherited from longitude, latitude and time arguments

 

F

Inherited from longitude, latitude and time arguments

 

Example:

yes? ! Longitudes are translated to 0:360 range
yes? let lon = {-172.44, 210.01, -19.5}
 
yes? ! latitudes are labeled N or S
yes? let lat = {3.12, 4.9, -15.03}
 
yes? ! Time steps are interpreted in terms of a time axis
yes? let time = {1,2,3}
yes? define axis/t=1-jan-2001:31-jan-2001:1/units=days/t0=1-jan-2001 taxis
yes? let tt = t[gt=taxis]
 
yes? list lon_lat_time_string(lon, lat, time, tt, "station")
VARIABLE : LON_LAT_TIME_STRING(LON, LAT, TIME, TT, "station")
SUBSET : 3 points (X)
1 / 1:"station_187.6E_3.12N_02-JAN-2001" 
2 / 2:"station_210E_4.9N_03-JAN-2001" 
3 / 3:"station_340.5E_15.03S_04-JAN-2001"