nsidc.metgen.readers.netcdf_reader

Interface functions that read various metadata attribute values from source science data files.

Functions

bounding_rectangle_from_attrs(netcdf)

Extract bounding rectangle from lat/lon geospatial attributes.

crs_transformer(wkt)

distill_points(xdata, ydata, pad)

extract_metadata(netcdf_path, ...)

Read the content at netcdf_path and return a structure with temporal coverage information, spatial coverage information, file size, and production datetime.

find_coordinate_data_by_standard_name(...)

find_grid_mapping_var(netcdf)

find_grid_wkt(grid_var)

log_and_raise_error(err)

pixel_padding(grid_var, configuration)

points_from_coordinate_variables(netcdf, ...)

Extract bounding rectangle using coordinate transformation from projection coordinates.

points_from_geospatial_bounds(netcdf)

Extract polygon vertices from geospatial_bounds WKT POLYGON attribute, transforming to EPSG:4326 if necessary.

spatial_values(netcdf, configuration, gsr)

Return an array of dicts, each dict representing one lat/lon pair like so:

thinned_perimeter(rawx, rawy[, pad])

Generate the thinned perimeter of a grid.

time_coverage_end(netcdf, configuration, ...)

Use time_coverage_end attribute if it exists, otherwise use a duration value from the ini file to calculate the time_coverage_end.

time_coverage_start(netcdf_filename, netcdf, ...)

time_range(netcdf_filename, netcdf, ...)

Return an array of datetime strings