JuliaGeodynamics / GeophysicalModelGenerator.jl

Import, process and interpret geophysical data sets to be used in numerical models.
MIT License
60 stars 29 forks source link

fix GeoData export #134

Closed aelligp closed 1 month ago

aelligp commented 1 month ago

This PR fixes cross_section_surface to export the correct AbstractGeneralGrid type rather than only GeoData:

    if isa(S,GeoData)
        Data_profile = GeoData(Lon, Lat, depth_intp, fields_new);
    elseif isa(S,CartData)
        Data_profile = CartData(Lon, Lat, depth_intp, fields_new);
    else
        error("still to be implemented")
    end