ASAGI I/O
ASAGI is a fileformat that is used by codes such as SeisSol or ExaHype. It employs the NetCDF4 data format.
We can read ASAGI files into GMG, and write GMG datasets to ASAGI format, which makes it straightforward to use GMG to create a model setup or to couple the results of geodynamic simulations (e.g., produced by LaMEM) with codes that support ASAGI.
GeophysicalModelGenerator.read_ASAGI — Function
read_ASAGI(fname::String)Reads an ASAGI NetCDF file and returns a CartData structure. Requires loading NCDatasets.
GeophysicalModelGenerator.write_ASAGI — Function
write_ASAGI(fname::String, Data::CartData; fields=nothing, km_to_m=false)Writes a CartData structure to an ASAGI NetCDF file. Requires loading NCDatasets.