This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dlat = dlat.rename({'latb':'lat'}) | |
| dlat['lat'].data = data['lat'].data |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class writable_mds_store: | |
| ''' | |
| This will write each chunk to a binary file. Really only works if chunks are the k-index of the matrix | |
| ''' | |
| def __init__(self, prefix, itern, suffix='data', dtype='>f4'): | |
| self.prefix = prefix | |
| self.itern = itern | |
| self.suffix = suffix | |
| self.dtype = dtype | |
| self.fname = '%s.%010d.%s' % (self.prefix, self.itern, self.suffix) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| coarsename = '/scr/jklymak/LeeCoarse/coarse3d%s01U10/_Model/input/'%runtype | |
| print(coarsename) | |
| def interpolateAtDepth(X,T,x0,y0,x,y,defaultval,block_id=None): | |
| import scipy.interpolate | |
| good = np.where(T[0,0,:,:]>20.) | |
| bad = np.where(T[0,0,:,:]<=20.) | |
| Tt = X.copy()[0,0,:,:] | |
| print(Tt) | |
| #print(good) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| import glob | |
| TODO = 'LWRegrid2full01U10' | |
| Root = '../results/'+TODO+'/_Model/input/' | |
| print(Root) | |
| dd = glob.glob(Root+'S.*') | |
| print(dd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 "Cover Page" 1 open | |
| 0 "Nomination Letter" 2 | |
| 0 "Referee Letters" 3 | |
| 1 "Writer 1" 3 | |
| 1 "Writer 2" 5 | |
| 0 "CV" 7 | |
| 1 "Education and Training" 7 | |
| 1 "Degrees" 7 | |
| 1 "Postdoctoral experience" 7 | |
| 1 "Academic positions" 7 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pandas | |
| df = pandas.read_excel('ClassListGradeEntry_07-02-2017_11-15-08_AM.xls') | |
| for ii in range(6): | |
| for col in range(len(df.loc[ii])-2): | |
| if (col in [11,15]): | |
| print('--------------------------------------------------------------') | |
| if col in [0,1,16]: | |
| print('%20s: %20s'%(df.keys()[col],df.loc[ii][col])) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/u/home/jklymak/miniconda2/bin/python | |
| #PBS -m be | |
| #PBS -M [email protected] | |
| #PBS -l select=1:ncpus=1 | |
| #PBS -l walltime=00:00:10 | |
| #PBS -q transfer | |
| #PBS -A XXXXXXXXXXX | |
| #PBS -j oe | |
| #PBS -N Test |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.