-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added species attribute to FD property in new header
- Loading branch information
1 parent
a105829
commit aac162e
Showing
2 changed files
with
76 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import sys | ||
import os.path | ||
|
||
import reflexible as rf | ||
import reflexible.conv2netcdf4 as conv | ||
|
||
H = conv.Header("/tmp/test_data") | ||
print "******* Original Header ***********" | ||
print "keys:", H.keys() | ||
print "available_dates:", H.available_dates | ||
print "releasestart:", H.releasestart | ||
print "releaseend:", H.releaseend | ||
print "releasetimes", H.releasetimes | ||
print "" | ||
|
||
Hnc = rf.Header("/tmp/grid_time_20100601210000.nc") | ||
print "******* netCDF4 Header ***********" | ||
print "keys:", Hnc.keys() | ||
print "available_dates:", Hnc.available_dates | ||
print "releasestart:", Hnc.releasestart | ||
print "releaseend:", Hnc.releaseend | ||
print "releasetimes:", Hnc.releasetimes | ||
print "species:", Hnc.species | ||
print "FD:", Hnc.FD | ||
print "FD[(0,'20100518210000')].species", Hnc.FD[(0,'20100518210000')].species | ||
#print "FD[(0, '20100518210000')].grid:", Hnc.FD[(0, '20100518210000')].grid | ||
# print "FD[(0, '20100518210000')].itime:", Hnc.FD[(0, '20100518210000')].itime | ||
# print "FD[(0, '20100518210000')].timestamp:", Hnc.FD[(0, '20100518210000')].timestamp | ||
# print "FD[(0, '20100518210000')].rel_i:", Hnc.FD[(0, '20100518210000')].rel_i | ||
C = Hnc.C | ||
print "C:", C | ||
print "C[(0,1)].grid:", C[(0,1)].grid | ||
print "" | ||
|
||
# print "Calling fill_backward():" | ||
# H.fill_backward(nspec=(0,)) | ||
|
||
# # H.C should be available by now | ||
# print "H.C.keys():" | ||
# print H.C[(0,2)].keys() | ||
|
||
# # H.FD should be available by now | ||
# print "H.FD.keys():" | ||
# print H.FD[(0, '20070121220000')].keys() | ||
|
||
# print "Calling read_grid():" | ||
# FD = conv.read_grid(H, time_ret=0,nspec_ret=0) | ||
|
||
# T = conv.read_trajectories(H) | ||
# print "T.keys():" | ||
# print T.keys() | ||
|
||
# # Backward Runs | ||
# # | ||
# H = conv.Header(rf.datasets['Bwd1_V9.02']) | ||
# print H.keys() | ||
|
||
# print "Calling fill_backward():" | ||
# H.fill_backward(nspec=(0,)) | ||
|
||
# # H.C should be available by now | ||
# print "H.C.keys():" | ||
# print H.C[(0,0)].keys() | ||
|
||
# # H.FD should be available by now | ||
# print "H.FD.keys():" | ||
# print H.FD[(0, H.available_dates[0])].keys() | ||
|
||
# print "Calling read_grid():" | ||
# FD = conv.read_grid(H, time_ret=0,nspec_ret=0) | ||
|