A non-transitory computer-readable medium that stores therein a data storage program causing a computer to execute a process comprising:
- obtaining first data by grouping values of spatially discrete distribution points at each of times by each of the spatially discrete distribution points and chronologically sorting the grouped values;
- obtaining second data by compressing the first data in accordance with at least one of a plurality of compression conditions for each of the distribution points or each group of a plurality of the distribution points, the plurality of compression conditions including a necessity of compression, a compression interval, and a compression algorithm type;
- and
- storing the second data in a storage device.