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

Migrate existing thermodynamic functions to metpy functions #1009

Merged
merged 17 commits into from
Jun 13, 2021
Merged

Migrate existing thermodynamic functions to metpy functions #1009

merged 17 commits into from
Jun 13, 2021

Conversation

Jatin2020-24
Copy link
Contributor

@Jatin2020-24 Jatin2020-24 commented May 28, 2021

Fixes: #1004

  • add metpy to dependencies
  • migrate mslib/thermolib.py rel_hum+sat_vapour_pressure function (i.e. fully remove)
  • migrate mslib/thermolib.py virt_temp function (i.e. fully remove)
  • migrate mslib/thermolib.py pot_temp function (i.e. fully remove)
  • migrate mslib/thermolib.py eqpt_approxfunction (i.e. fully remove)
  • fully remove spec_hum_from_pTd from mslib/thermolib.py
  • fully remove geop_thickness from mslib/thermolib.py
  • fully remove dewpoint_approx from mslib/thermolib.py
  • move units usage to metpy.units
  • investigate interpolation routines and replace homegrown ones, if useful

@joernu76 joernu76 self-requested a review May 31, 2021 07:06
@Jatin2020-24 Jatin2020-24 marked this pull request as draft May 31, 2021 09:37
@Jatin2020-24 Jatin2020-24 changed the title Removed existing functions for metpy integrations Migrate existing thermodynamic functions to metpy functions Jun 10, 2021
@joernu76
Copy link
Member

Good progress! Personally, I would do the calls to the metpy functions within the plotting classes (to be able to fully remove the thermolib.py file), but as an intermediate step it is probably better to follow your approach!

@joernu76
Copy link
Member

I had a look at the probably last remaining actual error. This fixes it for me:

index 9226e702..56ddc11c 100644
--- a/mslib/thermolib.py
+++ b/mslib/thermolib.py
@@ -177,23 +177,6 @@ def pot_temp(p, t):
     return potential_temp
 
 
-def dewpoint(p, t, q):
-    """
-    Computes dewpoint temperature in [K] from pressure, temperature and specific humidity.
-
-    Arguments:
-    p -- pressure in [Pa]
-    t -- temperature in [K]
-    q -- specific humidity in [Kg/Kg]
-
-    Returns: dewpoint temperature in [K]. Same dimensions as the inputs.
-    """
-    p = units.Quantity(p, "Pa")
-    t = units.Quantity(t, "K")
-    dew_temp = mpcalc.dewpoint_from_specific_humidity(p, t, q)
-    return dew_temp.to('K')
-
-
 def eqpt_approx(p, t, q):
     """
     Computes equivalent potential temperature in [K] from pressure,
@@ -211,7 +194,7 @@ def eqpt_approx(p, t, q):
     """
     p = units.Quantity(p, "Pa")
     t = units.Quantity(t, "K")
-    dew_temp = dewpoint(p, t, q)
+    dew_temp = mpcalc.dewpoint_from_specific_humidity(p, t, q)
     eqpt_temp = mpcalc.equivalent_potential_temperature(p, t, dew_temp)
     return eqpt_temp.to('degC')
 

The problem is the testless "addition" of units, which, in this case, added them twice (i.e. the units were "Pa Pa" instead of "Pa").

@joernu76
Copy link
Member

To generally circumvent this problem, I would suggest to "discard" the units upon returning the results by "return var.to("K").magnitude" instead of "return var.to("K")".
This would also prevent similar issues in the future.
We will probably switch everything to arrays with units in the near future, but until then it is simpler to keep everything unit less outside the immediate metpy interaction.

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>
@Jatin2020-24
Copy link
Contributor Author

Jatin2020-24 commented Jun 13, 2021

@joernu76 I've made changes as per your suggestion and errors are also fixed but now it's throwing attribute error in
mslib/msui/_tests/test_mscolab_project. Posted on slack .

should we also migrate omega_to_w function to metpy.

PS: Also not migrating flightlevel2pressure and pressure2flightlevel functions to metpy as they were having issue after 11Km.

@joernu76
Copy link
Member

The MSCOLAB test are, very sadly, not stable. Let's try rerunning them. We are working on that since quite some time, but have not yet understood the root cause for the behaviour as it seems to only occur on the github pipelines and not on our own computers.

@joernu76
Copy link
Member

w.r.t. omega_to_w, yes, migrate it to metpy, please.
But we can merge also the current state and then proceed working on this in a future one. The end-state would be no thermolib.py and unit-aware arrays.
That partially goes beyond a first-timer issue, though.

@Jatin2020-24 Jatin2020-24 marked this pull request as ready for review June 13, 2021 11:44
@joernu76 joernu76 merged commit b99ffe0 into Open-MSS:develop Jun 13, 2021
@Jatin2020-24
Copy link
Contributor Author

Thanks for your help and guidance.

@Jatin2020-24 Jatin2020-24 deleted the #1004-metpy-migration branch June 14, 2021 11:11
Marilyth pushed a commit to Marilyth/MSS that referenced this pull request Jun 17, 2021
…#1009)

* removed functions from thermolib.py

functions to be replaced by metpy were removed

* fixed: flake8

* fixed: flake8

* migrated to metpy functions

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* Fixed: flake8

* Fixed: flake8

* Fixed tests

* Fixed: flake8

* Fixed: failing tests

* Ficed: tests

* Units discarded upon returning results

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* `omega_to_w` migrated to metpy

Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
ReimarBauer added a commit that referenced this pull request Jul 1, 2021
* Allow specification of file for linear defaultstyle (#1028)

* Allow specification of file for default

* Simplify if condition

* Increase coverage (#1020)

* Add wms_control tests

* Add more mscolab tests

* Add mpl_qtwidget coverage

* Add mss_pyui coverage

* Add transparency, noframe and xml checks

* Add more wms tests

* Test import with plugins

* Add linearview tests

* Add more multilayering tests

* Revert to old testing.yml

* Leave no dangling windows

* Remove todo, move ConnectionError to bottom

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Migrate existing thermodynamic functions to metpy functions (#1009)

* removed functions from thermolib.py

functions to be replaced by metpy were removed

* fixed: flake8

* fixed: flake8

* migrated to metpy functions

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* Fixed: flake8

* Fixed: flake8

* Fixed tests

* Fixed: flake8

* Fixed: failing tests

* Ficed: tests

* Units discarded upon returning results

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* `omega_to_w` migrated to metpy

Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* updated documentation (#1008)

* updated documentation

* improved install/update procedure

Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

* Fixed: #999 (#1010)

* .format replaced with f" string

* updated copyright year

* fixes #1014 (#1015)

* Remove Qt imports (#1019)

* Fixes #1014 changing http to https (#1017)

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Linear view mscolab bug (#1021)

* fixed tableview not opening bug; added test

* added raising of mscolab window after closing view

* preparation of v4.0.1 (#1023)

* preparation of v4.0.1

* updated install instruction

Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

* Fix pyproj 3.1.0 error (#1033)

* Minor bug fixes. (#1054)

* Return proper unit for eq. potential temperature (degC->K)
* Do not assume units of pressure levels for several old plotting
  styles.
* Fix values of geopotential altitude in demodata

* issue #719 solved (#729)

* issue #719 solved

* updated development.rst

* updated development.rst

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Select newest init-time and carry over multilayering (#1047)

Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

* Fix some issues with elevation caching and model level dimensions. (#1061)

Fix #1066

* Added missing filename key. (#1062)

See #1066

Co-authored-by: May <baermay98@gmail.com>
Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>
ReimarBauer added a commit that referenced this pull request Jul 2, 2021
…oblems of being played too fast (#1067)

* Allow specification of file for linear defaultstyle (#1028)

* Allow specification of file for default

* Simplify if condition

* Increase coverage (#1020)

* Add wms_control tests

* Add more mscolab tests

* Add mpl_qtwidget coverage

* Add mss_pyui coverage

* Add transparency, noframe and xml checks

* Add more wms tests

* Test import with plugins

* Add linearview tests

* Add more multilayering tests

* Revert to old testing.yml

* Leave no dangling windows

* Remove todo, move ConnectionError to bottom

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Migrate existing thermodynamic functions to metpy functions (#1009)

* removed functions from thermolib.py

functions to be replaced by metpy were removed

* fixed: flake8

* fixed: flake8

* migrated to metpy functions

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* Fixed: flake8

* Fixed: flake8

* Fixed tests

* Fixed: flake8

* Fixed: failing tests

* Ficed: tests

* Units discarded upon returning results

Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* `omega_to_w` migrated to metpy

Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

* updated documentation (#1008)

* updated documentation

* improved install/update procedure

Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

* Fixed: #999 (#1010)

* .format replaced with f" string

* updated copyright year

* fixes #1014 (#1015)

* Remove Qt imports (#1019)

* Fixes #1014 changing http to https (#1017)

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Linear view mscolab bug (#1021)

* fixed tableview not opening bug; added test

* added raising of mscolab window after closing view

* preparation of v4.0.1 (#1023)

* preparation of v4.0.1

* updated install instruction

Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

* Fix pyproj 3.1.0 error (#1033)

* Made a screen recorder and automated tutorial for demonstrating use of waypoints

* Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d

* Minor bug fixes. (#1054)

* Return proper unit for eq. potential temperature (degC->K)
* Do not assume units of pressure levels for several old plotting
  styles.
* Fix values of geopotential altitude in demodata

* issue #719 solved (#729)

* issue #719 solved

* updated development.rst

* updated development.rst

Co-authored-by: ReimarBauer <rb.proj@gmail.com>

* Select newest init-time and carry over multilayering (#1047)

Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

* Fix some issues with elevation caching and model level dimensions. (#1061)

Fix #1066

* Added missing filename key. (#1062)

See #1066

* Waypoints tutorial completed

* Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py

* Added the updated tutorials.txt in requirements.d

Co-authored-by: May <baermay98@gmail.com>
Co-authored-by: ReimarBauer <rb.proj@gmail.com>
Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>
ReimarBauer added a commit that referenced this pull request Aug 24, 2021
commit 3bd614e
Merge: c8b662b 094c388
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Mon Aug 23 16:35:23 2021 +0200

    Merge pull request #1170 from risehr/textfiles

    Added text files for kml, mscolab, wms, and views tutorials.

commit 094c388
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 19:21:46 2021 +0530

    Corrected spelling of MSColab

commit 83551be
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 17:35:37 2021 +0530

    Added text files for kml, mscolab, wms, and views tutorials and fixed typos in tutorials.rst file

commit c8b662b
Merge: ee98974 3937b0a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Mon Aug 23 07:41:44 2021 +0200

    Merge pull request #1166 from risehr/documentation

    Created the tutorials.rst file

commit 3937b0a
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 02:32:17 2021 +0530

    Fixed typos in performance settings text file

commit 156fa36
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 02:22:41 2021 +0530

    Added performance settings text file in tutorials/textfiles

commit 6acc89e
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 01:49:05 2021 +0530

    Fixed typos in text files

commit f681c0f
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 01:18:54 2021 +0530

    Updated tutorials.rst file and added some text files

commit 0417b04
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 00:29:08 2021 +0530

    Created the tutorials.rst file

commit ee98974
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Sat Aug 21 13:59:43 2021 +0530

    Mscolab tutorial, TTS feature for audios (#1162)

    * mscolab tutorial created

    * Created mscolab tutorial and added text to audio conversion feature for audio of the tutorial videos. Also updated tutorials.txt requirement file

    * Made some minor code improvements and rectified spelling mistakes

    * Made audio.py more customizable in terms of which translation and speech conversion APIs are to be used and also updated tutorials.txt requirement file

    * Removed the unnecessary comments

commit df9aa18
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Tue Aug 17 14:11:38 2021 +0530

    KML overlay, Hexagon Control, Performance settings tutorial completed (#1144)

    * Kml, hexagon control, and performance settings tutorial completed

    * Improved the screenrecorder class fixing some bugs, improved restricted size recording of windows

    * Minor changes in screen recorder class

    * made small changes in the header files of scipt and other minor changes in hexagon tutorial

    * Made the code more efficient by small changes in  hexagon control tutorial

commit bd3f251
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Mon Aug 9 18:55:26 2021 +0530

    Remote Sensing and Satellite Track Tutorial (#1136)

    * Tutorial for remote sensing and satellite track and flexible/changeable  screen recording area

    * Enabled FailSafe from screenrecorder.py file

commit 5f70c3a
Merge: 9170617 769b98a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:58:51 2021 +0200

    Merge pull request #1140 from Open-MSS/merged_develop_to_GSOC2021-HrithikKumarVerma

    Merged develop to gsoc2021 hrithik kumar verma

commit 769b98a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:25:42 2021 +0200

    merge mistake fixed

commit 7fd3765
Merge: 9170617 492482f
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:16:53 2021 +0200

    Merge branch 'develop' into GSOC2021-HrithikKumarVerma

commit 9170617
Merge: 6ab5a9d 36834c2
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Wed Aug 4 09:28:13 2021 +0200

    Merge pull request #1104 from risehr/views_tutorial

    [Completed] Automated tutorial for how to create a project in MSS using all the views.

commit 36834c2
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Sun Aug 1 00:54:27 2021 +0530

    Rectified some small mistakes such as remove extra space and unnecessary comments

commit 41e83e1
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Sat Jul 31 02:51:43 2021 +0530

    Made tutorial_views.py script to work for linux smoothly

commit 0fee992
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Wed Jul 28 16:09:08 2021 +0530

    Automated tutorial for how to create a project in MSS using all the views

commit 6ab5a9d
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Sun Jul 18 10:57:40 2021 +0530

    Wms tutorial (#1083)

    * Made cursor visible and finished wms automated tutorial

    * flake8 corrections

    * Improved code for use in Linux systems.(It was working well in other systems)

    * Changed header file for the python scripts in mss/tutorials/*

commit 3bb422c
Merge: 2eda795 84ef56d
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Wed Jul 7 12:02:14 2021 +0200

    Merge pull request #1074 from risehr/waypoints_tutorial

    Waypoints Tutorial : Working on Linux system now.

commit 84ef56d
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Jul 5 21:08:40 2021 +0530

    Rectified logical error in if statement; improved code to run both on linux and windows system efficiently

commit 89d1417
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Jul 5 18:45:50 2021 +0530

    Modified waypoints tutorial to make it run smoothly on linux systems

commit 2eda795
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Fri Jul 2 14:24:53 2021 +0530

    Completed the waypoints tutorial and resolved the screen recording problems of being played too fast (#1067)

    * Allow specification of file for linear defaultstyle (#1028)

    * Allow specification of file for default

    * Simplify if condition

    * Increase coverage (#1020)

    * Add wms_control tests

    * Add more mscolab tests

    * Add mpl_qtwidget coverage

    * Add mss_pyui coverage

    * Add transparency, noframe and xml checks

    * Add more wms tests

    * Test import with plugins

    * Add linearview tests

    * Add more multilayering tests

    * Revert to old testing.yml

    * Leave no dangling windows

    * Remove todo, move ConnectionError to bottom

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Migrate existing thermodynamic functions to metpy functions (#1009)

    * removed functions from thermolib.py

    functions to be replaced by metpy were removed

    * fixed: flake8

    * fixed: flake8

    * migrated to metpy functions

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * Fixed: flake8

    * Fixed: flake8

    * Fixed tests

    * Fixed: flake8

    * Fixed: failing tests

    * Ficed: tests

    * Units discarded upon returning results

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * `omega_to_w` migrated to metpy

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * updated documentation (#1008)

    * updated documentation

    * improved install/update procedure

    Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

    * Fixed: #999 (#1010)

    * .format replaced with f" string

    * updated copyright year

    * fixes #1014 (#1015)

    * Remove Qt imports (#1019)

    * Fixes #1014 changing http to https (#1017)

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Linear view mscolab bug (#1021)

    * fixed tableview not opening bug; added test

    * added raising of mscolab window after closing view

    * preparation of v4.0.1 (#1023)

    * preparation of v4.0.1

    * updated install instruction

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix pyproj 3.1.0 error (#1033)

    * Made a screen recorder and automated tutorial for demonstrating use of waypoints

    * Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d

    * Minor bug fixes. (#1054)

    * Return proper unit for eq. potential temperature (degC->K)
    * Do not assume units of pressure levels for several old plotting
      styles.
    * Fix values of geopotential altitude in demodata

    * issue #719 solved (#729)

    * issue #719 solved

    * updated development.rst

    * updated development.rst

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Select newest init-time and carry over multilayering (#1047)

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix some issues with elevation caching and model level dimensions. (#1061)

    Fix #1066

    * Added missing filename key. (#1062)

    See #1066

    * Waypoints tutorial completed

    * Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py

    * Added the updated tutorials.txt in requirements.d

    Co-authored-by: May <baermay98@gmail.com>
    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
    Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
    Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
    Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
    Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>

commit fca444a
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Thu Jul 1 14:49:02 2021 +0530

    Syncing my GSOC branch with develop (#1066)

    * Allow specification of file for linear defaultstyle (#1028)

    * Allow specification of file for default

    * Simplify if condition

    * Increase coverage (#1020)

    * Add wms_control tests

    * Add more mscolab tests

    * Add mpl_qtwidget coverage

    * Add mss_pyui coverage

    * Add transparency, noframe and xml checks

    * Add more wms tests

    * Test import with plugins

    * Add linearview tests

    * Add more multilayering tests

    * Revert to old testing.yml

    * Leave no dangling windows

    * Remove todo, move ConnectionError to bottom

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Migrate existing thermodynamic functions to metpy functions (#1009)

    * removed functions from thermolib.py

    functions to be replaced by metpy were removed

    * fixed: flake8

    * fixed: flake8

    * migrated to metpy functions

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * Fixed: flake8

    * Fixed: flake8

    * Fixed tests

    * Fixed: flake8

    * Fixed: failing tests

    * Ficed: tests

    * Units discarded upon returning results

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * `omega_to_w` migrated to metpy

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * updated documentation (#1008)

    * updated documentation

    * improved install/update procedure

    Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

    * Fixed: #999 (#1010)

    * .format replaced with f" string

    * updated copyright year

    * fixes #1014 (#1015)

    * Remove Qt imports (#1019)

    * Fixes #1014 changing http to https (#1017)

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Linear view mscolab bug (#1021)

    * fixed tableview not opening bug; added test

    * added raising of mscolab window after closing view

    * preparation of v4.0.1 (#1023)

    * preparation of v4.0.1

    * updated install instruction

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix pyproj 3.1.0 error (#1033)

    * Minor bug fixes. (#1054)

    * Return proper unit for eq. potential temperature (degC->K)
    * Do not assume units of pressure levels for several old plotting
      styles.
    * Fix values of geopotential altitude in demodata

    * issue #719 solved (#729)

    * issue #719 solved

    * updated development.rst

    * updated development.rst

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Select newest init-time and carry over multilayering (#1047)

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix some issues with elevation caching and model level dimensions. (#1061)

    Fix #1066

    * Added missing filename key. (#1062)

    See #1066

    Co-authored-by: May <baermay98@gmail.com>
    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
    Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
    Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
    Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
    Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>
joernu76 pushed a commit that referenced this pull request Aug 24, 2021
commit 3bd614e
Merge: c8b662b 094c388
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Mon Aug 23 16:35:23 2021 +0200

    Merge pull request #1170 from risehr/textfiles

    Added text files for kml, mscolab, wms, and views tutorials.

commit 094c388
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 19:21:46 2021 +0530

    Corrected spelling of MSColab

commit 83551be
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 17:35:37 2021 +0530

    Added text files for kml, mscolab, wms, and views tutorials and fixed typos in tutorials.rst file

commit c8b662b
Merge: ee98974 3937b0a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Mon Aug 23 07:41:44 2021 +0200

    Merge pull request #1166 from risehr/documentation

    Created the tutorials.rst file

commit 3937b0a
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 02:32:17 2021 +0530

    Fixed typos in performance settings text file

commit 156fa36
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 02:22:41 2021 +0530

    Added performance settings text file in tutorials/textfiles

commit 6acc89e
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 01:49:05 2021 +0530

    Fixed typos in text files

commit f681c0f
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 01:18:54 2021 +0530

    Updated tutorials.rst file and added some text files

commit 0417b04
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Aug 23 00:29:08 2021 +0530

    Created the tutorials.rst file

commit ee98974
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Sat Aug 21 13:59:43 2021 +0530

    Mscolab tutorial, TTS feature for audios (#1162)

    * mscolab tutorial created

    * Created mscolab tutorial and added text to audio conversion feature for audio of the tutorial videos. Also updated tutorials.txt requirement file

    * Made some minor code improvements and rectified spelling mistakes

    * Made audio.py more customizable in terms of which translation and speech conversion APIs are to be used and also updated tutorials.txt requirement file

    * Removed the unnecessary comments

commit df9aa18
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Tue Aug 17 14:11:38 2021 +0530

    KML overlay, Hexagon Control, Performance settings tutorial completed (#1144)

    * Kml, hexagon control, and performance settings tutorial completed

    * Improved the screenrecorder class fixing some bugs, improved restricted size recording of windows

    * Minor changes in screen recorder class

    * made small changes in the header files of scipt and other minor changes in hexagon tutorial

    * Made the code more efficient by small changes in  hexagon control tutorial

commit bd3f251
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Mon Aug 9 18:55:26 2021 +0530

    Remote Sensing and Satellite Track Tutorial (#1136)

    * Tutorial for remote sensing and satellite track and flexible/changeable  screen recording area

    * Enabled FailSafe from screenrecorder.py file

commit 5f70c3a
Merge: 9170617 769b98a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:58:51 2021 +0200

    Merge pull request #1140 from Open-MSS/merged_develop_to_GSOC2021-HrithikKumarVerma

    Merged develop to gsoc2021 hrithik kumar verma

commit 769b98a
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:25:42 2021 +0200

    merge mistake fixed

commit 7fd3765
Merge: 9170617 492482f
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Fri Aug 6 16:16:53 2021 +0200

    Merge branch 'develop' into GSOC2021-HrithikKumarVerma

commit 9170617
Merge: 6ab5a9d 36834c2
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Wed Aug 4 09:28:13 2021 +0200

    Merge pull request #1104 from risehr/views_tutorial

    [Completed] Automated tutorial for how to create a project in MSS using all the views.

commit 36834c2
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Sun Aug 1 00:54:27 2021 +0530

    Rectified some small mistakes such as remove extra space and unnecessary comments

commit 41e83e1
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Sat Jul 31 02:51:43 2021 +0530

    Made tutorial_views.py script to work for linux smoothly

commit 0fee992
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Wed Jul 28 16:09:08 2021 +0530

    Automated tutorial for how to create a project in MSS using all the views

commit 6ab5a9d
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Sun Jul 18 10:57:40 2021 +0530

    Wms tutorial (#1083)

    * Made cursor visible and finished wms automated tutorial

    * flake8 corrections

    * Improved code for use in Linux systems.(It was working well in other systems)

    * Changed header file for the python scripts in mss/tutorials/*

commit 3bb422c
Merge: 2eda795 84ef56d
Author: ReimarBauer <rb.proj@gmail.com>
Date:   Wed Jul 7 12:02:14 2021 +0200

    Merge pull request #1074 from risehr/waypoints_tutorial

    Waypoints Tutorial : Working on Linux system now.

commit 84ef56d
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Jul 5 21:08:40 2021 +0530

    Rectified logical error in if statement; improved code to run both on linux and windows system efficiently

commit 89d1417
Author: Hrithik Kumar Verma <vermahrithik812@gmail.com>
Date:   Mon Jul 5 18:45:50 2021 +0530

    Modified waypoints tutorial to make it run smoothly on linux systems

commit 2eda795
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Fri Jul 2 14:24:53 2021 +0530

    Completed the waypoints tutorial and resolved the screen recording problems of being played too fast (#1067)

    * Allow specification of file for linear defaultstyle (#1028)

    * Allow specification of file for default

    * Simplify if condition

    * Increase coverage (#1020)

    * Add wms_control tests

    * Add more mscolab tests

    * Add mpl_qtwidget coverage

    * Add mss_pyui coverage

    * Add transparency, noframe and xml checks

    * Add more wms tests

    * Test import with plugins

    * Add linearview tests

    * Add more multilayering tests

    * Revert to old testing.yml

    * Leave no dangling windows

    * Remove todo, move ConnectionError to bottom

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Migrate existing thermodynamic functions to metpy functions (#1009)

    * removed functions from thermolib.py

    functions to be replaced by metpy were removed

    * fixed: flake8

    * fixed: flake8

    * migrated to metpy functions

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * Fixed: flake8

    * Fixed: flake8

    * Fixed tests

    * Fixed: flake8

    * Fixed: failing tests

    * Ficed: tests

    * Units discarded upon returning results

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * `omega_to_w` migrated to metpy

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * updated documentation (#1008)

    * updated documentation

    * improved install/update procedure

    Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

    * Fixed: #999 (#1010)

    * .format replaced with f" string

    * updated copyright year

    * fixes #1014 (#1015)

    * Remove Qt imports (#1019)

    * Fixes #1014 changing http to https (#1017)

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Linear view mscolab bug (#1021)

    * fixed tableview not opening bug; added test

    * added raising of mscolab window after closing view

    * preparation of v4.0.1 (#1023)

    * preparation of v4.0.1

    * updated install instruction

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix pyproj 3.1.0 error (#1033)

    * Made a screen recorder and automated tutorial for demonstrating use of waypoints

    * Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d

    * Minor bug fixes. (#1054)

    * Return proper unit for eq. potential temperature (degC->K)
    * Do not assume units of pressure levels for several old plotting
      styles.
    * Fix values of geopotential altitude in demodata

    * issue #719 solved (#729)

    * issue #719 solved

    * updated development.rst

    * updated development.rst

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Select newest init-time and carry over multilayering (#1047)

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix some issues with elevation caching and model level dimensions. (#1061)

    Fix #1066

    * Added missing filename key. (#1062)

    See #1066

    * Waypoints tutorial completed

    * Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py

    * Added the updated tutorials.txt in requirements.d

    Co-authored-by: May <baermay98@gmail.com>
    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
    Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
    Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
    Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
    Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>

commit fca444a
Author: Hrithik Kumar Verma <54763705+risehr@users.noreply.github.com>
Date:   Thu Jul 1 14:49:02 2021 +0530

    Syncing my GSOC branch with develop (#1066)

    * Allow specification of file for linear defaultstyle (#1028)

    * Allow specification of file for default

    * Simplify if condition

    * Increase coverage (#1020)

    * Add wms_control tests

    * Add more mscolab tests

    * Add mpl_qtwidget coverage

    * Add mss_pyui coverage

    * Add transparency, noframe and xml checks

    * Add more wms tests

    * Test import with plugins

    * Add linearview tests

    * Add more multilayering tests

    * Revert to old testing.yml

    * Leave no dangling windows

    * Remove todo, move ConnectionError to bottom

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Migrate existing thermodynamic functions to metpy functions (#1009)

    * removed functions from thermolib.py

    functions to be replaced by metpy were removed

    * fixed: flake8

    * fixed: flake8

    * migrated to metpy functions

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * Fixed: flake8

    * Fixed: flake8

    * Fixed tests

    * Fixed: flake8

    * Fixed: failing tests

    * Ficed: tests

    * Units discarded upon returning results

    Co-Authored-By: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * `omega_to_w` migrated to metpy

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>

    * updated documentation (#1008)

    * updated documentation

    * improved install/update procedure

    Co-authored-by: Reimar Bauer <rb.proj@gmail.com>

    * Fixed: #999 (#1010)

    * .format replaced with f" string

    * updated copyright year

    * fixes #1014 (#1015)

    * Remove Qt imports (#1019)

    * Fixes #1014 changing http to https (#1017)

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Linear view mscolab bug (#1021)

    * fixed tableview not opening bug; added test

    * added raising of mscolab window after closing view

    * preparation of v4.0.1 (#1023)

    * preparation of v4.0.1

    * updated install instruction

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix pyproj 3.1.0 error (#1033)

    * Minor bug fixes. (#1054)

    * Return proper unit for eq. potential temperature (degC->K)
    * Do not assume units of pressure levels for several old plotting
      styles.
    * Fix values of geopotential altitude in demodata

    * issue #719 solved (#729)

    * issue #719 solved

    * updated development.rst

    * updated development.rst

    Co-authored-by: ReimarBauer <rb.proj@gmail.com>

    * Select newest init-time and carry over multilayering (#1047)

    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>

    * Fix some issues with elevation caching and model level dimensions. (#1061)

    Fix #1066

    * Added missing filename key. (#1062)

    See #1066

    Co-authored-by: May <baermay98@gmail.com>
    Co-authored-by: ReimarBauer <rb.proj@gmail.com>
    Co-authored-by: Jatin Jain <72596619+Jatin2020-24@users.noreply.github.com>
    Co-authored-by: J. Ungermann <28449201+joernu76@users.noreply.github.com>
    Co-authored-by: open-mss-build <77272604+open-mss-build@users.noreply.github.com>
    Co-authored-by: Aryan Gupta <42470695+withoutwaxaryan@users.noreply.github.com>
    Co-authored-by: Aravind Murali <aravindmurali711@gmail.com>
    Co-authored-by: J. Ungermann <j.ungermann@fz-juelich.de>
    Co-authored-by: Archishman Sengupta <71402528+ArchishmanSengupta@users.noreply.github.com>
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.

metpy migration
3 participants