Precipitation Type Codes Plot (Rain, Snow, Hail, etc.) in Matlab

조회 수: 7 (최근 30일)
K0I05
K0I05 2025년 4월 10일
댓글: K0I05 2025년 4월 16일
Hello,
I have done this in other environments but I haven't touched MATLAB in years and seeking a bit of direction. I am pushing environmental data to ThingSpeak at a 1 minute interval and one parameter that I am looking to plot is precipitation type. This parameter is coded and utilizes a look-up table as follows: (0) No Rain, (1) Rain, (2) Snow, (3) Rain-Snow, (4) Hail, (7) Rain-Snow-Hail.
I used a stacked bart chart in the past. I would query the database, filtered the data by code and created a time series dataset for each code, replaced the original code in the created time series dataset with value of 1 and insert a value of 0 for timeticks that didn't have a coded type value, and plotted each times series dataset. A screenshot of my previous implementation in MACHBASE is attached.
Any guidance would be grealy appreciated. Thanks
.
  댓글 수: 2
Christopher Stapels
Christopher Stapels 2025년 4월 11일
You can definitey do this in MATLAB. You might also be able to do most of it with your channel view. You can use the gage widget for your gages, and a custom MATLAB visualization for the line plot.
K0I05
K0I05 2025년 4월 16일
Thanks, this is a great concept but the UX capabilities are lacking, unless I am missing something. If you are a MATLAB enthusiast looking visualize data online with basic functionality, it is certainly a great fit.
ThingsBoard's UX is mature, offers post processing capabilities, and has greater flexibility overall for IoT gurus.
I do have ESP32-S3 (ESP-IDF framework) code and could upload an example on publishing MQTT messages to ThingSpeak. Feel free to reach out if anyone is interested.

댓글을 달려면 로그인하십시오.

답변 (0개)

커뮤니티

더 많은 답변 보기:  ThingSpeak 커뮤니티

카테고리

Help CenterFile Exchange에서 Weather and Atmospheric Science에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by