HomemadeDataset
- class typhon.datasets.dataset.HomemadeDataset(name=None, **kwargs)[source]
For any dataset created by typhon or its dependencies.
Currently supports only saving to npz, through the save_npz method. Eventually, should also support other file formats, in particular NetCDF.
- __init__(*args, **kwargs)[source]
Methods
__init__
(*args, **kwargs)combine
(my_data, other_obj[, other_data, ...])Combine with data from other dataset.
Find the directory containing granules/measurements at (date)time
find_granule_for_time
(**kwargs)Find granule for specific time.
find_granules
([dt_start, dt_end, ...])Yield all granules/measurementfiles in period
find_granules_sorted
([dt_start, dt_end, ...])Yield all granules, sorted by times.
find_most_recent_granule_before
(instant, ...)Find granule covering instant
get_additional_field
(M, fld)Get additional field.
Return dict (re.fullmatch) for granule, based on re
What extra format variables are needed in find_granules?
Return the resolution for the subdir precision.
Get datetime objects for beginning and end of granule
get_times_for_granule
(p, **kwargs)For granule stored in path, get start and end times.
iterate_subdirs
(d_start, d_end, **extra)Iterate through all subdirs in dataset.
read
([f, fields, pseudo_fields])Read granule in file and do some other fixes
read_period
([start, end, onerror, fields, ...])Read all granules between start and end, in bulk.
save_npz
(path, M)Save to compressed npz
setlocal
()Set local attributes, from config or otherwise.
verify_mandatory_fields
(extra)Attributes
aliases
basedir
concat_coor
datefields
default_orbit_filters
end_date
granule_cache_file
granule_duration
granules_firstline_db
granules_firstline_file
mandatory_fields
maxsize
my_pseudo_fields
name
re
read_returns
refields
related
section
start_date
stored_name
subdir
time_field
unique_fields
valid_field_values
write_basedir
write_subdir