py_eddy_tracker.dataset.grid.UnRegularGridDataset¶
- class py_eddy_tracker.dataset.grid.UnRegularGridDataset(filename, x_name, y_name, centered=None, indexs=None, unset=False, nan_masking=False)[source]¶
Bases:
GridDataset
Class managing unregular grid
- Parameters:
filename (str) – Filename to load
x_name (str) – Name of longitude coordinates
y_name (str) – Name of latitude coordinates
centered (bool,None) – Allow to know how coordinates could be used with pixel
indexs (dict) – A dictionary that sets indexes to use for non-coordinate dimensions
unset (bool) – Set to True to create an empty grid object without file
nan_masking (bool) – Set to True to replace data.mask with isnan method result
Methods
add_grid
Add a grid in handler
c_to_bounds
Centered coordinates to bounds coordinates
clean
copy
Duplicate the variable from grid_in in grid_out
eddy_identification
Compute eddy identification on the specified grid
get_amplitude
get_mask
get_uavg
Compute geostrophic speed around successive contours Returns the average
grid
Give the grid required
grid_tiles
Give the grid tiles required, without buffer system
high_filter
Return the high-pass filtered grid, by substracting to the initial grid the low-pass filtered grid (default: order=1)
is_circular
Check grid circularity
Load variable (data)
load_general_features
Load attrs to be stored in object
low_filter
Return the low-pass filtered grid (default: order=1)
Not do
populate
setup_coordinates
units
Get unit from variable
write
Write dataset output with same format as input
Attributes
EARTH_RADIUS
GRAVITY
N
Give bounds
centered
contours
coordinates
dimensions
filename
global_attrs
indexs
is_centered
Give True if pixel is described with its center's position or a corner
nan_mask
variables
variables_description
vars
x_bounds
x_c
x_dim
y_bounds
y_c
y_dim
- property bounds¶
Give bounds
- index_interp¶