Add "apply_scale_and_offset" subroutine to eliminate duplicate code in data_factory.F90.

Ordering of calls should now result in the proper interpretation of NODATA values within NetCDF files.