Non-incremental and quasi-distributed fiber-optic thermometer