[Thread Prev][Thread Next][Index]

[ferret_users] string comparison

Dear Users,
                             Is there any way in ferret to do string comparison,

ie, I want to use the unit information in netcdf variable and do
action based on that.
Also if there is no unit for the variable the code should not break
instead continue echoing that there was no unit.
it could  be some thing like below

use monthly_navy_winds

def sym unt=`uwnd,r=ubnit`
if (($unt) eq "cm") then
end if

though the above code is written it will break if a data file do not
have unit information

[Thread Prev][Thread Next][Index]

Contact Us
Dept of Commerce / NOAA / OAR / PMEL / TMAP

Privacy Policy | Disclaimer | Accessibility Statement