Student Workbook Repository for the wrf-python Tutorial
ncar / wrf_python_tutorial Goto Github PK
View Code? Open in Web Editor NEWStudent Workbook Repository for the wrf-python Tutorial
Student Workbook Repository for the wrf-python Tutorial
In preparation of the tutorial, I tried to activate conda via: conda activate wp_env .
Got error msg:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
Tried to init shell via: conda init tcsh .
Error output received per the attached file.
"An unexpected error has occurred."
Is something missing? What to do?
I couldn't run the jupyter notebook, as suggested in the e-mail about the tutorial.
Thanks.
conda_init.out.txt
I used vertcross to get a longitude-pressure cross section of vertical wind.
start_point = CoordPair(lat=28.718, lon=76)
end_point = CoordPair(lat=28.718, lon=78)
w_cross = vertcross(w, z, wrfin=file, start_point=start_point,
end_point=end_point, latlon=True, meta=True)
After that I put height labels on y-axis using the following code:
vert_vals = to_np(w_cross.coords["vertical"])
v_ticks = np.arange(vert_vals.shape[0])
ax.set_yticks(v_ticks[::20])
ax.set_yticklabels(vert_vals[::20], fontsize=13
Now I want to put lon labels on x-axis but the w_cross has coords vertical and xy_loc and xy_loc is a CoordPair of lat and lon values.
How to extract lon out of this coordpair and put it on the x-axis?
Thanks in advance for your help.
coord_pairs = to_np(w_cross.coords["xy_loc"])
x_ticks = np.arange(coord_pairs.shape[0])
x_labels = [pair.latlon_str() for pair in to_np(coord_pairs)]
thin = [int(x/6.) for x in x_ticks.shape] # Only keeping ~5 horizontal ticks
ax.set_xticks(x_ticks[1::thin[0]])
ax.set_xticklabels(x_labels[::thin[0]], rotation=45, fontsize=8)
I tried this, but it puts both lat and lon on x-axis. How can I put only lon on x-axis ?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.