Comments (5)
One key difference that connects to the DCAPE calculation is the selection of the lowest Theta-E value in the lowest 400 mb of the sounding. Comparisons between the SPC sounding page images and SHARPpy shows that sometimes SHARPpy selects a completely different level as opposed to SPC. This is especially seen in the example above. Because the parcel origin is significantly lower in SHARPpy than in the SPC image, the DCAPE will be lower than SPC's.
Step 1 to solving this problem is fixing the correct selection of the parcel. Without correcting that (if it needs correcting) attempting to correct any problems with the parcel lowering portion of the code isn't going to be possible.
from sharppy.
Rich Thompson provided us with John Hart's DCAPE routine from NSHARP. The routine uses a layer average minimum theta-e to determine the downdraft parcel's point of origin. The DCAPE routine also does not include any virtual temperature correction, so this will have to be changed.
from sharppy.
I implemented the DCAPE code from NSHARP into SHARPpy, and the DCAPE calculations compare significantly better to the SPC DCAPE indices. There still are differences that arise though between the calculations, however they are on the order of +/- 10 J/kg, with the most that I've seen around 50 J/kg. Other times the calculation is spot on. I still believe this is a consequence of us not picking the correct downdraft parcel, however I have a suspicion that this is not a consequence of the code, but rather the averaging method. Right now I am using pressure-weighted averaging to compute the mean theta-e values, however NSHARP may be using the exact averaging instead. This will need to be investigated further, however the pressure-weighting is more accurate, so changes may not be necessary.
from sharppy.
I tested it with a couple of soundings, and like you said: some are spot on, others slightly off. I'm going to close this issue since we're in the right range of values. I'll likely start looking for some places to optimize later on.
from sharppy.
The sounding generation process is taking close to 3 seconds now, up from 1. So some profiling of the function will be needed in the future.
from sharppy.
Related Issues (20)
- Error could not figure out format custom sounding HOT 2
- [FEATURE] ACARS Soundings
- [BUG] name 'PYQT6' is not defined HOT 13
- Hodograph Issue HOT 1
- [BUG] app wont even run it either gives me a failed to execute warning or it prompts me a update message and crashed
- Convective Profile = NoneType HOT 3
- [BUG] Documentation issue - Interpreting GUI HOT 3
- CAPE Method Calculation Error
- [BUG] QTFont Error results in crashed SHARPpy GUI HOT 4
- upa files from weather.cod.edu/digatmos/upa/ HOT 4
- [BUG] SHARPpy Unable to Display Soundings on Ubuntu 18.04 - Crash in _getOutletWithProfile HOT 3
- [BUG] When selecting sounding source, GUI crashes, returning "QThread: Destroyed while thread is still running"
- [BUG]
- Errors in the Large Hail Parameter (LHP) calculation
- [BUG] mixed-layer parcel in parcelx and DefineParcel
- Question about mixed-layer parcel properties
- Hawaii Observed Soundings Missing HOT 4
- boolean index did not match indexed array HOT 6
- [BUG] SHARPpy plot crashes HOT 5
- [BUG] pip install fails on recent versions of Python HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sharppy.