-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Required update to handle new QA4SM netCDF structure according to Jir…
…a-744 (#77) (#83) * intial * started adapting * adapted existing code to properly handle temporal sub-windows, including renaming the output files and figure titles accordingly * before testing * fig titles and filenames now always contain the default or temporal sub-window case's name. also, maps are only created fo r the default case * intermediate saving * added all code required to generate comparison boxplots * fully integrated compariosn plots and all plots now have the logo instead of the watermark * all statistics .csv files are now stroed in a dedicated zip archive * intermediate commit * Fix bugs with metadata plots * automatic extraction of temporal sub-window names from provided netcdf file and enhanced type hints * testing of tcol metrics plotting * removed debugging statements, implemented bug fix for metadata plot generationwit tcol metrics * comparison boxplots of tcol metrics are not created * implemented saving of created figures in one go for multiple filetypes * code for netcdf file transcription to new qa4sm nc structure * removed accidentally staged restructured files * implemented means for transcription for all test files * added automatic netCDF file transcription prior to tests and corrected for temp. sub-win. dimension as additional item in `QA4SMImage.varnames` in `test_image.py::test_load_vars` * pt2: added automatic netCDF file transcription prior to tests and corrected for temp. sub-win. dimension as additional item in `QA4SMImage.varnames` in `test_image.py::test_load_vars` * netcdf_transcription.py and intra_annual_temp_windows.py now are part of the `qa4sm_reader` package, isntead of `qa4sm`. Further, the globals file was adapted accordingly and now contains all vars required. `qa4sm` imports these specific vars then from the `qa4sm_reader.globals` file. Lastly, `qa4sm_reader.img.QA4SMImg` was adapted to check if a dimension corresponding to temporal sub-windows exists in the specified netCDF file and if not automatically transcribes the loaded dataset. Tests were adapted accordingly. * code cleaning. * code cleaning * introduced function `qa4sm_reader.utils.filter_out_self_combination_tcmetric_vars()` to exclude TC metric vars of same reference and metric dataset from being plotted * added pytesmo dependency * added MANIFEST.in to correctly install the static dir requried for inclusion of logo as watermark * deleted superflous files * adapted packaging of reader to incorporat the static dir containing the logo * tests for intra_annual_temp_windows * added tests to test_utils and made sure they run first * started test_netcdf_transcription.py * fixed test_logo_exists * fixing test_keep_pytesmo_ncfile * tests for netcdf_transcription * finished test development for intra annual metrics and adapation of existing tests * Update environment.yml (#81) * Update environment.yml checking if defining pyscaffold in the env helps fixing the problem with failing tests * Update CI and dependency list * Update env * Update CI * Update env * Update CI --------- * added test to check intra-annual metric related plots and proper file transcription * fixed tests/test_netcdf_transcription.py::test_correct_file_transcription * fixed tests/test_netcdf_transcription.py::test_correct_file_transcription * fixed windows test failing * fixed mamba workflow issue * bug fix for obtaining amount of chars from Path object --------- Co-authored-by: Nicolas F. Bader <[email protected]> Co-authored-by: Monika Tercjak <[email protected]>
- Loading branch information
1 parent
fa9804f
commit bc04612
Showing
29 changed files
with
4,632 additions
and
302 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
graft src/qa4sm_reader/static |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ dependencies: | |
- pygeogrids | ||
- pytest | ||
- pytest-cov | ||
- pytesmo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
{ | ||
"seasons": { | ||
"S1": [ | ||
[12, 1], | ||
[2, 28] | ||
], | ||
"S2": [ | ||
[3, 1], | ||
[5, 31] | ||
], | ||
"S3": [ | ||
[6, 1], | ||
[8, 31] | ||
], | ||
"S4": [ | ||
[9, 1], | ||
[11, 30] | ||
] | ||
}, | ||
"months": { | ||
"Jan": [ | ||
[1, 1], | ||
[1, 31] | ||
], | ||
"Feb": [ | ||
[2, 1], | ||
[2, 28] | ||
], | ||
"Mar": [ | ||
[3, 1], | ||
[3, 31] | ||
], | ||
"Apr": [ | ||
[4, 1], | ||
[4, 30] | ||
], | ||
"May": [ | ||
[5, 1], | ||
[5, 31] | ||
], | ||
"Jun": [ | ||
[6, 1], | ||
[6, 30] | ||
], | ||
"Jul": [ | ||
[7, 1], | ||
[7, 31] | ||
], | ||
"Aug": [ | ||
[8, 1], | ||
[8, 31] | ||
], | ||
"Sep": [ | ||
[9, 1], | ||
[9, 30] | ||
], | ||
"Oct": [ | ||
[10, 1], | ||
[10, 31] | ||
], | ||
"Nov": [ | ||
[11, 1], | ||
[11, 30] | ||
], | ||
"Dec": [ | ||
[12, 1], | ||
[12, 31] | ||
] | ||
}, | ||
"custom": { | ||
"star wars month": [ | ||
[5, 1], | ||
[5, 31] | ||
], | ||
"halloween season": [ | ||
[10, 1], | ||
[10, 31] | ||
], | ||
"advent": [ | ||
[12, 1], | ||
[12, 24] | ||
], | ||
"movember": [ | ||
[11, 1], | ||
[11, 30] | ||
], | ||
"christmas": [ | ||
[12, 24], | ||
[12, 26] | ||
] | ||
} | ||
} |
Oops, something went wrong.