oggm.tasks.gridded_data_var_to_geotiff#
- oggm.tasks.gridded_data_var_to_geotiff(gdir, varname, fname=None, output_folder=None)[source]#
Writes a NetCDF variable to a georeferenced geotiff file.
The geotiff file will be written in the gdir directory or a specified folder.
- Parameters:
- gdir
oggm.GlacierDirectory where to write the data
- varnamestr
variable name in gridded_data.nc
- fnamestr
output file name (should end with tif), default is varname.tif
- output_folderstr
optional path to write the geotiff file. If None, writes to gdir.dir. If provided, files will be organized into subfolders based on RGI ID (e.g., RGI60-11/RGI60-11.00/RGI60-11.00897_varname.tif)
- gdir
Notes
Files written to the glacier directory: