Hello, I am working on wind data and am trying to reclassify the wmo_wind field into a new field.
Please help because I cannot figure out why it is not valid.
The query is if the value in wmo_wind is as the values shown in pink circle, they will be reclassified to categories 1 to 5 respectively.
def reclass (wmo_wind):
if wmo_wind < 96:
elif wmo_wind > 96 and < 111:
elif wmo_wind > 111 and < 130:
elif wmo_wind > 130 and < 157:
elif wmo_wind > 157: