eggshell.nc.nc_fetch

Module Contents

eggshell.nc.nc_fetch.paths[source]
eggshell.nc.nc_fetch.LOGGER[source]
eggshell.nc.nc_fetch._PRESSUREDATA_ = ['NCEP_slp', 'NCEP_z1000', 'NCEP_z925', 'NCEP_z850', 'NCEP_z700', 'NCEP_z600', 'NCEP_z500', 'NCEP_z400', 'NCEP_z300', 'NCEP_z250', 'NCEP_z200', 'NCEP_z150', 'NCEP_z100', 'NCEP_z70', 'NCEP_z50', 'NCEP_z30', 'NCEP_z20', 'NCEP_z10', '20CRV2_prmsl', '20CRV2_z1000', '20CRV2_z950', '20CRV2_z900', '20CRV2_z850', '20CRV2_z800', '20CRV2_z750', '20CRV2_z700', '20CRV2_z650', '20CRV2_z600', '20CRV2_z550', '20CRV2_z500', '20CRV2_z450', '20CRV2_z400', '20CRV2_z350', '20CRV2_z300', '20CRV2_z250', '20CRV2_z200', '20CRV2_z150', '20CRV2_z100', '20CRV2_z70', '20CRV2_z50', '20CRV2_z30', '20CRV2_z20', '20CRV2_z10', '20CRV2c_prmsl', '20CRV2c_z1000', '20CRV2c_z950', '20CRV2c_z900', '20CRV2c_z850', '20CRV2c_z800', '20CRV2c_z750', '20CRV2c_z700', '20CRV2c_z650', '20CRV2c_z600', '20CRV2c_z550', '20CRV2c_z500', '20CRV2c_z450', '20CRV2c_z400', '20CRV2c_z350', '20CRV2c_z300', '20CRV2c_z250', '20CRV2c_z200', '20CRV2c_z150', '20CRV2c_z100', '20CRV2c_z70', '20CRV2c_z50', '20CRV2c_z30', '20CRV2c_z20', '20CRV2c_z10'][source]
eggshell.nc.nc_fetch._EOBSVARIABLES_ = ['tg', 'tx', 'tn', 'rr'][source]
eggshell.nc.nc_fetch.reanalyses(start=1948, end=None, variable='slp', dataset='NCEP', timres='day', getlevel=True)[source]

Fetches the reanalysis data (NCEP, 20CR or ERA_20C) to local file system

Parameters:
  • start – int for start year to fetch source data
  • end – int for end year to fetch source data (if None, current year will be the end)
  • variable – variable name (default=’slp’), geopotential height is given as e.g. z700
  • dataset – default=’NCEP’
Return list:

list of path/files.nc

eggshell.nc.nc_fetch.get_level(resource, level)[source]
eggshell.nc.nc_fetch.write_fileinfo(resource, filepath=False)[source]

write path and filenames to a text file

Parameters:
  • ressource – list of files to be documented
  • filepath – if True the absolute filepath is written out as well (default = False)
Return txt:

textfile with appropriate information