Skip to content

Commit

Permalink
Swap files removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
sthancock committed Mar 23, 2019
1 parent 46ccee5 commit 2864309
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file removed .batchBiomass.bash.swp
Binary file not shown.
2 changes: 1 addition & 1 deletion batchBiomass.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@


# defaults
output="allBiomass.txt"
bin="/geos/netdata/avtrain/data/3d/active_sensing/week10/active_sensing"
output="allBiomass.txt"

# Read the command line
while [[ $# -gt 0 ]]
Expand Down
12 changes: 6 additions & 6 deletions gridBiomass.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ def gridAGBDmean(self,res,outName):
# write header
f=open(outName,'w')
noData=-9999
header="NCOLS"+str(nX)+"\n"
header=header+"NROWS"+str(nY)+"\n"
header=header+"XLLCENTER"+str(minX)+"\n"
header=header+"YLLCENTER"+str(minY)+"\n"
header=header+"CELLSIZE"+str(res)+"\n"
header=header+"NODATA_VALUE"+str(noData)+"\n"
header="NCOLS "+str(nX)+"\n"
header=header+"NROWS "+str(nY)+"\n"
header=header+"XLLCENTER "+str(minX)+"\n"
header=header+"YLLCENTER "+str(minY)+"\n"
header=header+"CELLSIZE "+str(res)+"\n"
header=header+"NODATA_VALUE "+str(noData)+"\n"
f.write(header)
# remove nan
meanAGBD[np.isnan(meanAGBD)]=noData
Expand Down

0 comments on commit 2864309

Please sign in to comment.