[go: nahoru, domu]

Skip to content

Commit

Permalink
Paths updated to work on burn.
Browse files Browse the repository at this point in the history
  • Loading branch information
sthancock committed Nov 19, 2019
1 parent 61ecbe4 commit a22a69e
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions lvis/lvisExample.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
'''

# tell python where to look for the handler
import sys
sys.path.extend(["/home/shancock/wordybits/auldreekie/teaching/pprs/2019/02_intro_programming/src/pprs_lvis/lvis"])
from sys import path
from os import getenv
homeDir=getenv("HOME")
path.extend(["%s/src/pprs_lvis/lvis"%homeDir])


# import functions
from lvisHandler import *

# set a filename
filename='/geos/d71/data/teaching/pprs/data/ILVIS1B_GA2016_0220_R1611_044415.27.h5'
filename='/home/shancock/data/teaching/pprs/lvis/lgw/LVIS_US_NH_2009_VECT_20100328.subset.h5'
filename='/geos/netdata/avtrain/data/3d/pprs_waveform/lvis/LVIS_US_NH_2009_VECT_20100328.subset.84.h5'

# read data
waves,lon,lat,nWaves,nBins,z,lfid,lShot=readLVIS(filename)
Expand All @@ -37,11 +38,14 @@
height,cov=findHeight(denoised,ground,z)

# plot
#plotGrWaves(denoised,z,ground,lfid,lShot)
plotGrWaves(denoised,z,ground,lfid,lShot)


# import geotiff functions
'''
Geotiffs
'''

# import geotiff functions
from lvisTiff import *

# write height geotiff
Expand Down

0 comments on commit a22a69e

Please sign in to comment.