Hello All

i have a big problem on my hands which i ned some help with.
i have got the following data which comes from a sensor and i need to calibrate this to Bar.
the sensor outputs period in uS and the corresponding pressure i need to equal this to are below

PERIOD PRESSURE IN BAR
324.7
327.8
0.25
330.8 0.5
335.1 0.75
338.2 1
341.6 1.2
346 1.4
350.5 1.6
354.5 1.8
359.3 2.0
363.7 2.2
369.7 2.4
374.1 2.6
379 2.8
386.4 3.0



my question is what is the best way to approach this .
should ido it with lots of if then statements of have you guys got a better way i can do this


Code:
    if period <=  325 then 
    pressure = 0
    endif
    if period >  325 and period < 328 then 
    pressure = 0.25
    endif
     if period >  328 and period < 330 then 
    pressure = 0.5
    endif
    if period >  330 and period < 33 then 
    pressure = 0.25
    endif
Best Regards
Isaac