- To: idvdevelopers@xxxxxxxxxxxxxxxx
- Subject: [idvdevelopers] converting units
- From: Stuart Maclean <stuart@xxxxxxxxxxxxxxxxxx>
- Date: Tue, 29 Apr 2008 18:19:17 -0700
I am am reading a netcdf model grid into a GeoGrid, and then on via a
GeoGridAdapter into a IDV Displayable object. My data is t,y,x ->
temperature, where the raw values are in Kelvin.
I am using IDV's TextDisplayable to do an IDV like 'Value Plot'. I would like to display some other unit, i.e Celsius, for the text values.
I suspect there is a very simple way to do this, I just cannot find it in the javadocs ;)
A brute force way would be to construct a new FlatField, populate its domain with that from the original, build a new realType for tempCelsius and scale over from the original tempKelvin, and use the second FlatField for the TextDisplayable...
Any help appreciated Stuart
- Follow-Ups:
- Re: [idvdevelopers] converting units
- From: Don Murray
- Re: [idvdevelopers] converting units