Close
Close window
GZIP - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

GZIP (.gz) File Format

Gzip file format

Description

GZIP is a file format is a data compression format widely used for file archiving and for transporting data compression on the Internet.

The Import command can automatically uncompress gzip archives and attempt to parse the underlying data.

The FileTools[Compressed] package provides tools for reading from and writing to gzip archives.

Notes

Content-Type: application/gzip

Examples

Read the compressed bytes inside the gzip file and return as a ByteArray.

>

gzipFileFileTools:-JoinPathexample/PlanetaryData.csv.gz,base=datadir

C:\Program Files\Maple 2016\data\example\PlanetaryData.csv.gz

(1)
>

FileTools:-Compressed:-ReadFilegzipFile

115,105,110,40,120,43,121,41,44,77,101,114,99,117,114,121,44,86,101,110,117,115,44,69,97,114,116,104,44,77,97,114,115,44,74,117,112,105,116,101,114,44,83,97,116,117,114,110,44,85,114,97,110,117,115,44,78,101,112,116,117,110,101,10,77,97,115,115,−62,−96,40,49,48,94,50,52,32,107,103,41,44,48,46,51,51,44,52,46,56,55,44,53,46,57,55,44,48,46,54,52,,⋯ 454 Array entries not shown

(2)

Read and import the underlying data in one step:

>

Importexample/PlanetaryData.csv.gz,base=datadir

MercuryVenusEarthMarsJupiterSaturnUranusNeptuneMass (10^24 kg)0.334.875.970.642189856886.8102Diameter (km)4879121041275667921429841205365111849528Density (kg/m^3)5427524355143933132668712711638Gravity (m/s^2)3.78.99.83.723.19.08.711Escape Velocity (km/s)4.310.411.2559.535.521.323.5Rotation Period (hr)1407.6−5832.523.924.69.910.7−17.216.1Length of Day (hr)4222.628022424.79.910.717.216.1Distance from Sun (106 km)57.9108.2149.6227.9778.61433.52872.54495.1

(3)

References

[RFC1952 ] Deutsch, P., GZIP file format specification version 4.3, RFC 1952, May 1996.

[RFC6713 ] Levine, J., The 'application/zlib' and 'application/gzip' Media Types, RFC 6713, August 2012.


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /