source: nappy/trunk/cdmsMap.py @ 349

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

Inserted license information.

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