Principles of the data reduction and first results of the fastscanning method for (sub)millimeter astronomy