Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Profile validation #251

Closed
wants to merge 11 commits into from
Closed

Profile validation #251

wants to merge 11 commits into from

Conversation

davbyr
Copy link
Collaborator

@davbyr davbyr commented Feb 11, 2021

These are some changes I have made to COAsT whilst writing the profile validation script.

Changes:

  1. Changes to PROFILE() data structure, variable naming and reading. read_EN4 multiple read method has been modified because there was a problem concatenating automatically (there is no monotonically increasing dimension in EN4 files apparently). It now reads in a list of files one at a time and concatenates using concat. It requires the file naming formats to be the same as the EN4 format (so assuming the user hasn't renamed the EN4 files). This is to order then correctly in time.

  2. New MASK_MAKER object, which contains a couple of routines to help with defining model masks. I've used this to define the area masks for analysis. It has routines for drawing polygons onto an array (using skimage) either by index or by longitude/latitude.

  3. crps_util updated with things for apply_crps that were never merged.

  4. general_utils updated with things from apply_crps. Also a generalisation of some routines that pop up in a few places. Significantly sped up nearest_indices_2D() when using a landmask (was very slow previously -- BallTree doesn't seem to like NaNs).

  5. Changes to COAsT.load() for multiple files. I was having big problems loading multiple files using xarray.open_mfdataset (see linked issue). I have slightly changed the call to open_mfdataset to make this a lot faster based on internet advice.

Unit testing updated to reflect changes.

@davbyr davbyr linked an issue Feb 17, 2021 that may be closed by this pull request
@davbyr davbyr closed this Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Slow performance of open_mfdataset for actual data
1 participant