This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Will, What version of the UDUNITS package are you using? UDUNITS 2.1 had a problem like this, which should be fixed in version 2.2. > Great, thanks! Can I ask one more question about UDUNITS right away? > > I'm having a little trouble understanding the results from some of the > temperature conversions. Length, distance, pressure, etc., everything else > looks great, and as I expect. Also looks fine if I use temperature without > any increment: > > You have: degrees_Celsius > You want: degrees_Fahrenheit > degrees_Celsius = 33.8 degrees_Fahrenheit > x/degrees_Fahrenheit = 1.8*(x/degrees_Celsius) + 32 > > However, when I add an increment, I get something I don't expect (I feel > like 1 Celcius = 33.8 Fahrenheit): > > You have: 1 degrees_Celsius > You want: degrees_Fahrenheit > 1 degrees_Celsius = -457.87 degrees_Fahrenheit > x/degrees_Fahrenheit = 1.8*(x/(1 degrees_Celsius)) - 459.67 > > I feel sure that this is my syntax, but I'm getting everything else to work > so that made me feel more confident than perhaps I should have been? > > will Regards, Steve Emmerson Ticket Details =================== Ticket ID: FTH-701042 Department: Support UDUNITS Priority: Normal Status: Closed