Skip to content

Commit

Permalink
Removed _cog from final file name
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpmcmanus committed Jul 23, 2024
1 parent 7d87a16 commit 990081f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kalpana/Kalpana.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def main(args):
ras2vec=ras2vec, exportOrg=exportOrg, leveesFile=leveesFile, finalOutToLatLon=finalOutToLatLon)

# move cog tiff to final directory
finalPathFile = glob.glob(outputDir+'*_epsg4326_cog.tif')[0]
finalPathFile = glob.glob(outputDir+'*_epsg4326.tif')[0]
finalFile = finalPathFile.split('/')[-1]
logger.info('The length of the finalPathFile is: '+str(len(finalPathFile)))
try:
Expand Down
2 changes: 1 addition & 1 deletion kalpana/downscaling.py
Original file line number Diff line number Diff line change
Expand Up @@ -988,7 +988,7 @@ def reprojectRas(filein, pathout, epsgOut=None, res='same'):

logger.info('Reprojected '+bname+' to EPSG 4326') # Changed
logger.info('Write '+bname+' to COG') # Changed
rasOut.rio.to_raster(os.path.join(pathout, bname + f'_epsg{epsgOut}_cog.tif'), driver="COG") # Changed
rasOut.rio.to_raster(os.path.join(pathout, bname + f'_epsg{epsgOut}.tif'), driver="COG") # Changed
logger.info('Wrote '+bname+' to COG') # Changed

## change resolution
Expand Down

0 comments on commit 990081f

Please sign in to comment.