pyremo.preproc.get_gcm_gfile
- get_gcm_gfile(scratch=None, **kwargs)[source]
Create a GFile object for GCM data.
This function creates a GFile object which is used to handle and process global climate model (GCM) data. It can either take a pre-existing dataframe or create one by scanning directories for files and extracting time information.
- Parameters:
scratch (
strorNone, optional) – Path to a scratch directory for temporary files. If None, the default scratch directory is used.**kwargs (
dict) – This should be a dictionary of cf variable names as keys and directories of netCDF files as values. These are scanned to be used for the preprocessing.
- Returns:
GFile– An instance of the GFile class containing the processed GCM data.