diff --git a/kalpana/Kalpana.py b/kalpana/Kalpana.py index 6135109..d0b6f96 100644 --- a/kalpana/Kalpana.py +++ b/kalpana/Kalpana.py @@ -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: diff --git a/kalpana/downscaling.py b/kalpana/downscaling.py index 10f1a28..6fce76a 100644 --- a/kalpana/downscaling.py +++ b/kalpana/downscaling.py @@ -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