Greetings! There shouldn't be any limitations to the data you pass in. You are correct that Brunt-Vaisala frequency is undefined when dTheta/dZ is negative. For data points where that is the case, the MetPy function will return values of np.nan (as we do for other undefined values). Cheers, Ryan > Thanks so much Ryan! Metpy and your support really are awesome! > One other small question - Brunt Vaisala frequency calculation ( > https://unidata.github.io/MetPy/latest/api/generated/metpy.calc.brunt_vaisala_frequency.html > ). > From reading around the subject on this metric I am not sure if it is valid > to use when the potential temperature gradient is negative. Do you know if > there are any limitations to what data I send this function? Ticket Details =================== Ticket ID: BLO-430107 Department: Support Python Priority: Low Status: Closed =================== NOTE: All email exchanges with Unidata User Support are recorded in the Unidata inquiry tracking system and then made publicly available through the web. If you do not want to have your interactions made available in this way, you must let us know in each email you send to us.