1 | # Copyright (C) 2004 CCLRC & NERC( Natural Environment Research Council ). |
---|
2 | # This software may be distributed under the terms of the |
---|
3 | # Q Public License, version 1.0 or later. http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt |
---|
4 | |
---|
5 | """ |
---|
6 | cdmsMap.py |
---|
7 | ========== |
---|
8 | |
---|
9 | Holds a dictionary called cdmsMap that maps cdms global file attributes to |
---|
10 | NASA Ames header content and back again. |
---|
11 | |
---|
12 | """ |
---|
13 | |
---|
14 | toNA={"Conventions":None, |
---|
15 | "source":"SNAME", |
---|
16 | "title":"MNAME", |
---|
17 | "institution":("ONAME", "ORG"), |
---|
18 | "references":None, |
---|
19 | "comment":("SCOM", "NCOM"), |
---|
20 | "history":"RDATE", |
---|
21 | "file_format_index":"FFI", |
---|
22 | "no_of_nasa_ames_header_lines":"NLHEAD", |
---|
23 | "total_files_in_set":"NVOL", |
---|
24 | "file_number_in_set":"IVOL", |
---|
25 | "first_valid_date_of_data":"DATE"} |
---|
26 | fromNA={"NLHEAD":"no_of_nasa_ames_header_lines", |
---|
27 | "FFI":"file_format_index", |
---|
28 | ("ONAME", "ORG"):"institution", |
---|
29 | "SNAME":"source", |
---|
30 | "MNAME":"title", |
---|
31 | "IVOL":"file_number_in_set", |
---|
32 | "NVOL":"total_files_in_set", |
---|
33 | "RDATE":"history", |
---|
34 | "DATE":"first_valid_date_of_data", |
---|
35 | ("SCOM", "NCOM"):"comment"} |
---|
36 | |
---|