GZIP - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


GZIP (.gz) File Format

Gzip file format

 

Description

Notes

Examples

References

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

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

(2)

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.

See Also

FileTools[Compressed]

Formats