1 | """ |
---|
2 | cdmsMap.py |
---|
3 | ========== |
---|
4 | |
---|
5 | Holds a dictionary called cdmsMap that maps cdms global file attributes to |
---|
6 | NASA Ames header content and back again. |
---|
7 | |
---|
8 | """ |
---|
9 | |
---|
10 | cdmsMap={"toNA":{"Conventions":None, |
---|
11 | "source":"SNAME", |
---|
12 | "title":"MNAME", |
---|
13 | "institution":("ONAME", "ORG"), |
---|
14 | "references":None, |
---|
15 | "comment":("SCOM", "NCOM"), |
---|
16 | "history":"RDATE", |
---|
17 | "file_format_index":"FFI", |
---|
18 | "no_of_nasa_ames_header_lines":"NLHEAD", |
---|
19 | "total_files_in_set":"NVOL", |
---|
20 | "file_number_in_set":"IVOL", |
---|
21 | "first_valid_date_of_data":"DATE"}, |
---|
22 | "fromNA":{"NLHEAD":"no_of_nasa_ames_header_lines", |
---|
23 | "FFI":"file_format_index", |
---|
24 | ("ONAME", "ORG"):"institution", |
---|
25 | "SNAME":"source", |
---|
26 | "MNAME":"title", |
---|
27 | "IVOL":"file_number_in_set", |
---|
28 | "NVOL":"total_files_in_set", |
---|
29 | "RDATE":"history", |
---|
30 | "DATE":"first_valid_date_of_data", |
---|
31 | ("SCOM", "NCOM"):"comment"}} |
---|
32 | |
---|