You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.
Hi @arleaman, just need a bit more information on what your 'grids' are. Are they NetCDF files, xarray.DataArray/xarray.Dataset objects, or something else? This will help us to advice you a bit better.
Activity
welcome commentedon Feb 16, 2021
👋 Thanks for opening your first issue here! Please make sure you filled out the template with as much detail as possible. You might also want to take a look at our contributing guidelines and code of conduct.
weiji14 commentedon Feb 17, 2021
Hi @arleaman, just need a bit more information on what your 'grids' are. Are they NetCDF files,
xarray.DataArray/xarray.Datasetobjects, or something else? This will help us to advice you a bit better.About calculating residuals (using SUB), I would recommend doing it directly in
xarray(see http://xarray.pydata.org/en/v0.16.2/computation.html#basic-array-math) using the minus '-' operator if possible, assuming that you are already familiar withxarray. Not to say we can't wrap agrdmathfunction in PyGMT, but the reverse polish notation ofgrdmathwill make implementing this a bit tricky (though you are welcome to try).arleaman commentedon Feb 23, 2021
Thanks @weiji14 - I am using NetCDF files for my grids and will look into performing calculations in xarray.
Wrap grdmath