Open matt-long opened 5 years ago
@jukent Feel free to look into this only if you aren't swamped with your other work.
I might be able to look at this next week.
I am beginning to work on this now
@matt-long Can you link me to a dataset on Glade for use with popeos.py?
Here you go
dirin = '/glade/p/cesm/community/CESM-DPLE/CESM-DPLE_POPCICEhindcast'
file_salt = f'{dirin}/g.e11_LENS.GECOIAF.T62_g16.009.pop.h.SALT.024901-031612.nc'
file_temp = f'{dirin}/g.e11_LENS.GECOIAF.T62_g16.009.pop.h.TEMP.024901-031612.nc'
z_t
is the depth, present in both those files.
Thanks Matt,
I am trying to enforce the min/max values on the salinity and temperature xarray datasets but that is taking too long to run. Do you know if this is the operation that slowed down the fx when using numpy arrays?
@jukent, the problem I was having was that the function was blowing memory. I think this resulted from making flat numpy arrays instead of keeping things as dask arrays within xarray.
@matt-long I just added the file popeos_dask Can you see if the problem persists now that the operations have been daskified?
Thanks. I won't have time to get to this for sometime.
popeos.eos
implements the equation of state for the POP ocean model. Applying it to a large dataset (number of time level = 816) is producing a memory error. I suspect that this is avoidable if the function is modified to keep things asdask
arrays.Perhaps this is something @jukent can tackle?