source: nappy/trunk/cdmsMap.py @ 347

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/nappy/trunk/cdmsMap.py@347
Revision 347, 821 bytes checked in by selatham, 15 years ago (diff)

Incorporates changes by selatham and Ag Stephens. as of 5/11/04.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1"""
2cdmsMap.py
3==========
4
5Holds a dictionary called cdmsMap that maps cdms global file attributes to
6NASA Ames header content and back again.
7
8"""
9
10toNA={"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"}
22fromNA={"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
Note: See TracBrowser for help on using the repository browser.