Comments (6)
@kenkehoe I was going to try some tests on this. I wonder if there is an easier way than a new method
from act.
What do you think of this as an option? It's just 2 additional lines. Getting the index and then the plot call (bolded).
index = np.where(met_temp < -2.)[0]
....
#Display data using plotting methods
new = {'sgpmetE13.b1': met, 'sgpceilC1.b1':ceil}
display = act.plotting.TimeSeriesDisplay(new,figsize=(8,5))
display.plot('met_lcl',dsname='sgpmetE13.b1',color='b')
display.day_night_background('sgpmetE13.b1')
set_title = ' '.join(['MET LCL and CEIL CBH on',
act.utils.datetime_utils.numpy_to_arm_date(met.time.values[0])])
display.plot('first_cbh',dsname='sgpceilC1.b1',color='g',set_title=set_title)
display.set_yrng([0,7500])
display.axes[0].plot(met['time'].values[index], np.full(len(index), display.axes[0].get_ylim()[0]), '|r')
display.axes[0].legend()
plt.savefig('./images/lcl.png')
plt.clf()
from act.
OK that is a good solution. I'll think about this.
from act.
@kenkehoe have you had a chance to think about this implementation?
from act.
Yeah, I've implemented something similar to your code snippet above a few times. Since this is just a few lines of extra code outside of ACT I think we can skip adding more code to ACT. We can close this.
from act.
Since we have a solution outside of ACT I'm going to close this.
from act.
Related Issues (20)
- Colorblind friendly QC Defaults HOT 9
- improving the function of the current skew-T plot HOT 11
- Make SkewT Display More Flexible with Matplotlib HOT 4
- Neon file in example throwing error
- Issue reading netcdf files using base + offset HOT 11
- Move to Codecov for Coverage HOT 1
- Error when calling function act.io.armfiles.read_netcdf() from ADI code HOT 7
- Moving dataset variable names to xarray standards HOT 3
- Add ARM Data Surveyor Command Line Tool
- Attempting to set identical low and high xlims HOT 1
- CAPE Calc Problem HOT 6
- Valid Min in act.utils.decode_present_weather
- Documentation error: ACT Cheat Sheet HOT 1
- Setting y-range for groupby causes error HOT 5
- Missing kwargs in plot_stacked_bar_graph HOT 3
- Example Incorrect
- act.utils.decode_present_weather classification tables HOT 2
- Feedstock failing due to pandas datetime
- Histogram Display Examples HOT 2
- New Example Template
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 act.