NOAA-PMEL / PyFerret

The PyFerret program and Python module from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
60 stars 22 forks source link

Get ferret symbol value in Python (Trac #1880) #28

Open karlmsmith opened 8 years ago

karlmsmith commented 8 years ago

Add functionality to get a Ferret symbol value as a Python string. Currently a string variables can be retrieved using something like:

namesdict = pyferret.getstrdata('..varnames')
for varname in namesdict['data'].flatten():
    ....

but would be nice to be able to just get a simple string directly from the symbol name.

karlmsmith commented 8 years ago

Need to create pyferret.getstring (or getstr?) to return any Ferret single-string value as a Python string.