-
Notifications
You must be signed in to change notification settings - Fork 252
Expand file tree
/
Copy pathoutputFormatMaps.js
More file actions
30 lines (29 loc) · 958 Bytes
/
outputFormatMaps.js
File metadata and controls
30 lines (29 loc) · 958 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
* OUS expects that output formats be provided in the form of file
* extensions, this is a map between UMM-S values and their respective extensions
*/
export const ousFormatMapping = {
'NETCDF-3': 'nc',
'NETCDF-4': 'nc4',
BINARY: 'dods',
ASCII: 'ascii'
}
/**
* Harmony expects that output formats be provided in the form of mimetypes,
* this is a map between mimetypes and their respective human readable values
* TO-DO, these values will be coming from capabilites doc version 4
*/
export const harmonyFormatMapping = {
'application/x-netcdf4': 'X-NETCDF-4',
'application/netcdf4': 'NETCDF-4',
'application/x-netcdf4;profile=opendap_url': 'X-NETCDF-4 (OPeNDAP URL)',
'application/netcdf': 'NETCDF',
'application/x-hdf': 'X-HDF',
'image/tiff': 'GEOTIFF',
'image/gif': 'GIF',
'image/png': 'PNG',
'image/jpeg': 'JPEG',
'text/csv': 'CSV',
'application/shapefile+zip': 'Shapefile+zip',
'application/x-zarr': 'X-ZARR'
}