SD_Toolbox

Checkout Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Fixed check for lat / lon output array.

Related to Issue [SDTOOLBOX-64]

Fixed returning wrong indices.

Related to Issue [SDTOOLBOX-64]

Fixed masked stations.

Related to Issue [SDTOOLBOX-64]

Further fixes due to another wrongly sorted unique indices.

Related to Issue [SDTOOLBOX-64]

    • -2
    • +2
    /trunk/SDToolBox/extract_data_utils.py
    • -17
    • +19
    /trunk/SDToolBox/extract_data.py
Refactored code for better readability.

Related to Issue [SDTOOLBOX-64]

    • -0
    • +95
    /trunk/SDToolBox/extract_data_utils.py
    • -197
    • +154
    /trunk/SDToolBox/extract_data.py
Fixed get_unique_indices as it was sorting the values, thus giving wrong lat/lon in the end result

Related to Issue [SDTOOLBOX-64]

    • -30
    • +51
    /trunk/SDToolBox/extract_data.py
Mask indices should be sorted, otherwise they do not match the extracted data.

Related to Issue [SDTOOLBOX-64]

Fixed NN Indices for masked data.

Related to Issue [SDTOOLBOX-64]

Extracting correctly the lat-lon (they were still inverted elsewhere in the code)

Related to Issue [SDTOOLBOX-64]

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]