Skip to content

Commit

Permalink
Further updates to LDI
Browse files Browse the repository at this point in the history
  • Loading branch information
sambowers committed Feb 9, 2018
1 parent 7592015 commit 384cca8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions biota/calibration.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,8 @@ def getAGB(self, lee_filter = True, output = False):
# ALOS-1
if self.satellite == 'ALOS-1':
AGB = 715.667 * self.getGamma0(units = 'natural', polarisation = 'HV', lee_filter = lee_filter) - 5.967


# ALOS-1 (to calculate)
elif self.satellite == 'ALOS-2':
AGB = 715.667 * self.getGamma0(units = 'natural', polarisation = 'HV', lee_filter = lee_filter) - 5.967

Expand Down Expand Up @@ -688,7 +689,7 @@ def __outputGeoTiff(self, data, output_name, output_dir = os.getcwd(), dtype = 6
if nodata == '': nodata = self.nodata

# Generate a standardised filename
filename = '%s_%s%s.tif'%(output_name, self.hem_NS + str(abs(self.lat)).zfill(2), self.hem_EW + str(abs(self.lon)).zfill(3))
filename = '%s_%s_%s%s.tif'%(output_name, str(self.year), self.hem_NS + str(abs(self.lat)).zfill(2), self.hem_EW + str(abs(self.lon)).zfill(3))

# Write to disk
outputGeoTiff(data, filename, geo_t, proj, output_dir = output_dir, dtype = dtype)
Expand Down

0 comments on commit 384cca8

Please sign in to comment.