ncas_amof_netcdf_template.remove_empty_variables

Functions for removal of empty product-specific variables. As a variable cannot be removed from a netCDF file, a new file has to be created, with the option of removing the old one.

Functions

get_json_from_github(url)

Returns desired json file from https://github.com/ncasuk/AMF_CVs/tree/main/AMF_CVs URL should be in form https://raw.githubusercontent.com/ncasuk/AMF_CVs/main/AMF_CVs/___.json, otherwise a JSONDecodeError will be returned by the r.json() call

get_product_variables_metadata(product[, ...])

Get variables and their metadata associated with a product.

main(infile[, outfile, overwrite, verbose, ...])

If a product-specific variable is empty, we want to remove it.