i am working on netcdf file and interpolating data for geopotential height 850hpa , 700hpa, 500hpa and 3oohpa
height =getvar(ncfile, 'z', timeidx=i)
pressure=getvar(ncfile,'pressure',timeidx=i)
temp=interplevel(height,pressure,850)
while inspecting data,height and pressure are completely numeric value, and while interpolating data for 500 and 300 , it is working well
what might be the reason behind this and solution for this