SD_Toolbox

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Removed yet another sorting on the mask.

Related to Issue [SDTOOLBOX-64]

Remove sorting as it produces wrong output with the remote data.

Related to Issue [SDTOOLBOX-64]

Added test to verify mask is correctly generated.

Related to Issue [SDTOOLBOX-64]

Sorted mask lat and lon values when extracting data.

Related to Issue [SDTOOLBOX-64]

Fixed bug whenever only one station was being returned.

Related to Issue [SDTOOLBOX-64]

Fixed ug for non-gridded masked data.

Related to Issue [SDTOOLBOX-64]

Fixed applying mask for gridded data.
    • -24
    • +53
    /trunk/SDToolBox/extract_data.py
Fixed raising error, it was not checking anything at all. Fixed tests as well. Shame on me.
Added an error when trying to validate input coordinates that do not form a 'gridded' shape. Created tests for it.
Corrected lat / lon keys that were being returned as lon-lat for 'masked' sets. Created tests.
Now gridded data extracts all NN points for them.
Adapted code for single nearest neighbor which is not returning lists of lists.

Related to Issue [SDTOOLBOX-62]

Fixed incorrent amount of stations / lat and lon values.

Related to Issue [SDTOOLBOX-62]

    • -14
    • +13
    /trunk/SDToolBox/extract_data.py
Set values as numpy array for simplicity.

Related to Issue [SDTOOLBOX-62]

Now we correctly save the values for the output lat_key and lon_key. The indexes are only needed for stations, which are still saved.

Related to Issue [SDTOOLBOX-62]

    • -19
    • +25
    /trunk/SDToolBox/extract_data.py
Changed the predictor definition algorithm so it's more inline with the existing matlab code.

Related to Issue [SDTOOLBOX-61]

    • -9
    • +23
    /trunk/SDToolBox/predictor_definition.py
    • -3
    • +20
    /trunk/tests/test_predictor_definition.py
Replaced variable name and added an extra explanation.

Related to Issue [SDTOOLBOX-60]

    • -1
    • +1
    /trunk/tests/test_predictor_definition.py
    • -3
    • +5
    /trunk/SDToolBox/predictor_definition.py
newly tested progress
    • -0
    • +1120
    /trunk/tests/testing_Etienne/SD_ToolBox_Testing_remoteD.py
Corrected code for the remaining timedelta in the predictor. Adapted tests to at least prevent this from failing.

Related to Issue [SDTOOLBOX-59]

    • -28
    • +63
    /trunk/tests/test_predictor_definition.py
    • -3
    • +3
    /trunk/SDToolBox/predictor_definition.py
Uniformed the timedelta when doing the addition. Created system test to just verify it does not crash.

Related to Issue [SDTOOLBOX-59]

    • -2
    • +2
    /trunk/SDToolBox/predictor_definition.py
    • -8
    • +40
    /trunk/tests/test_predictor_definition.py
Brought back previous datetime, just changed the calendar type so it uses de default one instead.

Related to Issue [SDTOOLBOX-59]

Remove cartopy dependency as it is not working correctly.
Added extra package after request from testers.
SDTOOLBOX-59 modified output timestamps to use numpy datetime64.

Related to Issue [SDTOOLBOX-59]

Added extra check to avoid tests running in TeamCity using remote test data.
Added extra check to avoid tests running outside TeamCity.
Now we replace the input data so that we are still returning a usable xarray.

Related to Issue [SDTOOLBOX-55]

    • -0
    • +2
    /trunk/tests/test_predictor_definition.py
    • -2
    • +3
    /trunk/SDToolBox/predictor_definition.py
Minor remarks.
    • -1
    • +15
    /trunk/tests/test_predictor_definition.py
    • -3
    • +2
    /trunk/SDToolBox/predictor_definition.py
update testing local desktop Etienne
updated testing Etienne