Skip to content

Commit

Permalink
issue 403 - outline initial spec
Browse files Browse the repository at this point in the history
  • Loading branch information
durack1 committed Nov 4, 2016
1 parent 7d9ad72 commit 3a50b74
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/python/io/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,36 @@ def get(self, var, varInFile=None, region={}, *args, **kargs):
out = out(*[domain])
return out

def provenanceGrab(self):
# Collect platform and user information
# Platform and version: uname (sysname, nodename, release, version, machine), mac_ver, linux_distribution
# http:https://stackoverflow.com/questions/1854/how-to-check-what-os-am-i-running-on-in-python
# https://docs.python.org/2/library/platform.html
# User privilege: os.geteuid() == 0 (means root on linux) ; No effecive mac version
# http:https://apple.stackexchange.com/questions/179527/check-if-an-os-x-user-is-an-administrator
# https://docs.python.org/2/library/os.html#files-and-directories
#os.access('/',os.R_OK)
#Out[21]: True
#os.access('/',os.W_OK)
#Out[22]: False
# PMP version
# PMP obs version
# CDP version
# conda version
# cdms version
# cdtime version
# cdutil version
# ESMF version
# genutil version
# numpy version
# python version
# regrid2 version
# vcs version
# vtk version

provenance = {}
return provenance

def setTargetGrid(self, target, regridTool="esmf", regridMethod="linear"):
self.regridTool = regridTool
self.regridMethod = regridMethod
Expand Down

0 comments on commit 3a50b74

Please sign in to comment.