[Thread Prev][Thread Next][Index]
[ferret_users] string comparison
- To: oar.pmel.ferret_users@xxxxxxxx
- Subject: [ferret_users] string comparison
- From: Sudheer Joseph <sjo.india@xxxxxxxxx>
- Date: Tue, 28 Jul 2009 15:06:38 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=FwhzYJiNlrI5Bt6OuByt3IEpu+td36bhB+Z5IHVdK7Y=; b=esGq9dd3dS3rtdIuwBY7jRkMmmwWQiruYivLa+b8/GpIPm6dtToIaSN8JUa2xmNQzi 24DyLmnAsuDaBIly7P0Q5aJjR7Aq7lHkEjxr0t/Tcj7ooLVbmFHHC/rOpMIAsJOJIhVi 6jR35wzC3+4o64O+qK1p93L82ih74VYI4WUfI=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=F4PdGBtBCsqWqQBqIwHfu9wW8zqGfw/aInsjF9ldlC+EZSnobAtU+YOmdw/nKapSlH F6/HpzRV0RbiCxZu1y2RPOIDNWBQ2oLA/Y+S7NkgQJlyh02doZn4Ri/nOeatKAr08n5V 7zIlacA3qxEAoDB6HSt5pTzBrUvCZ1J8OKrHA=
- Sender: owner-ferret_users@xxxxxxxx
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
nwnd=uwnd/100
else
nwnd=uwnd
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