Modified the postprocessing of the temperature in order to get the states data