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

Add function to read Oasis Montaj© grd files #348

Merged
merged 32 commits into from
Nov 25, 2022
Merged

Commits on Aug 29, 2022

  1. Configuration menu
    Copy the full SHA
    f3be2a0 View commit details
    Browse the repository at this point in the history
  2. Add load_oasis_montaj_grid function

    Add new function that reads Geosoft grids.
    santisoler committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    35403cd View commit details
    Browse the repository at this point in the history
  3. Improve function docstring

    santisoler committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    9db9ac2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    412d722 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ff47e1b View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2022

  1. Upload test grd file and fix error (remove_dummies)

    Upload test grd file
    fix ValueError: cannot convert float NaN to integer with datetype (int)
    LL-Geo committed Oct 19, 2022
    Configuration menu
    Copy the full SHA
    aa2a804 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2022

  1. Fix typo

    santisoler committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    6064b06 View commit details
    Browse the repository at this point in the history
  2. Don't read map number nor map label

    These variables usually don't have any meaningful information and they
    are usually not being converted to Unicode characters properly, what
    makes difficult to save the dataarray as a netcdf file. I think it's
    better to ignore it for now unless we have a good reason to include
    them.
    santisoler committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    38625f4 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    eea2000 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2b6ea82 View commit details
    Browse the repository at this point in the history
  5. Add test for new function

    Add a netcdf file that hosts the expected grid.
    santisoler committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    b6a429a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52ec63f View commit details
    Browse the repository at this point in the history
  7. Save the expected netCDF grid using scipy engine

    This way we avoid having to install netcdf4 for testing
    santisoler committed Nov 2, 2022
    Configuration menu
    Copy the full SHA
    c3ad104 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    62a4734 View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2022

  1. Update order=-1

    Upload order = -1 and test
    LL-Geo committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    e16af7a View commit details
    Browse the repository at this point in the history
  2. Update rotate gird

    LL-Geo committed Nov 3, 2022
    Configuration menu
    Copy the full SHA
    92135c4 View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2022

  1. Update compressed grd file

    Update compressed grd file
    LL-Geo committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    ab5d468 View commit details
    Browse the repository at this point in the history
  2. Update check and test

    LL-Geo committed Nov 14, 2022
    Configuration menu
    Copy the full SHA
    967d6ca View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2022

  1. Refactor _get_data_type function

    Define a global variable VALID_ELEMENT_SIZES for the valid values that
    the ES variable can take. Compare n_bytes_per_element against ints after
    shifting its value if its greater than 1024 (compressed grid).
    santisoler committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    3c8b6e3 View commit details
    Browse the repository at this point in the history
  2. Refactor decompression of grid

    Move the snippet that decompresses the grid into its own function. Avoid
    creating numpy arrays that hold a single element for the variables in
    the additional header.
    santisoler committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    bfe9ffe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    29fe1eb View commit details
    Browse the repository at this point in the history
  4. Fix bad refactor

    The previous refactor didn't worked with compressed grids with multiple
    blocks. Restored the compressed_blocK_sizes and block_offsets as arrays
    and fixed the for loop.
    santisoler committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    3af3e72 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d8016d6 View commit details
    Browse the repository at this point in the history
  6. Configure flake8 to ignore spaces before a colon

    Flake8 complains with leaving a space before a color, what makes sense
    for colons that go after a statement (function definition, for loop, if,
    etc). But it complains about the spaces before a colon used in slicing.
    Black already handles the first case, so it makes sense to ignore E203.
    santisoler committed Nov 15, 2022
    Configuration menu
    Copy the full SHA
    84ee1f1 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2022

  1. Configuration menu
    Copy the full SHA
    2444d78 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    96042a9 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    66e0a4e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a9c3522 View commit details
    Browse the repository at this point in the history
  5. Removed unused sample grd files

    Remove all the sample grids that weren't being used in the test suite.
    santisoler committed Nov 17, 2022
    Configuration menu
    Copy the full SHA
    cbceadf View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    09854a7 View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2022

  1. Fix bug in creation of the rotated coordinates

    Use proper sin function and fix the sign of the coefficients in the
    rotation matrix.
    santisoler committed Nov 21, 2022
    Configuration menu
    Copy the full SHA
    256b615 View commit details
    Browse the repository at this point in the history

Commits on Nov 25, 2022

  1. Add missing docstring for rotation_deg parameter

    Co-authored with @mdtanker
    santisoler committed Nov 25, 2022
    Configuration menu
    Copy the full SHA
    53a5e23 View commit details
    Browse the repository at this point in the history