CDO calculate wind speed from U,V

Climate Data Operators (CDO) is a powerful software for climate data analysis. It can perform numerous operations on climate data sets. The following example lets you calculate wind speed from u, v components. uv.nc is the input data set which contains of u and v wind components. output wind speed will be written in ws.nc.

cdo chname,u,ws -sqrt -add -sqr -selname,u uv.nc -sqr -selname,v  uv.nc ws.nc

మొదటిమాట

తేట తేట తెలుగులా.. తెల్లవారి వెలుగులా..

చాలా రోజుల నుండి నా ఈ బ్లాగులో కొన్ని తెలుగు వ్యాఖ్యానాలు కూడా చెర్చాలి అని అనుకుంటూ ఉన్నాను. ఇన్నాళ్ళకు సమయం కుదిరింది, లేదు వొంటి బద్దకం తగ్గింది. ఒక ఇబ్బంది ఏంటంటే తెలుగులో టైపింగు నాకు సరిగా రాదు. రేండోది మనకు తెలుగు సరిగా రాదు :/. సరేలె ఇంగ్లీషులో సామెత చెప్పినట్లు (better late than never.) మొదలు పెట్టుట ముఖ్యం. మన సాంప్రదాయం ప్రకారం మనస్సులో విఘ్నెశ్వర స్మరణతో ప్రారంభం చేస్తున్నాను.

NOTE: If this post is not displaying properly, that means your system lacks fonts for Telugu script. Please install Telugu fonts.

Joined IITM

After long holidays and roaming around India I have finally joined a day job at Indian Institute of Tropical Meteorology(IITM), Pune. Its been almost three weeks here in Pune, The Institute and IITM colony are great. Beautiful location and Beautiful people all around.

Hopefully from now on-wards I may blog regularly about work and my workouts.

ncl-mode for Emacs!

ncl-mode is a Emacs major mode for editing ncl scripts. The project also also consists several useful features to assist writing ncl scripts. I have used this mode long enough to recommend to anyone who writes ncl scripts with in Emacs. The major features of this packages consists (from the readme:)

  • Easy code navigation (consistent with other Emacs modes)

  • Better indentation

  • Proper comment handling

  • Imenu support (my favorite)

  • Menu support

  • Snippets for yasnippet

  • auto-complete support

  • ctags support (ctags generation script included)

  • ncl-doc-mode minor mode for browsing/searching NCL documentation from NCAR website

  • inf-ncl.el mode for running NCL within Emacs.

ncl-mode can be easily installed from either MELPA or el-get package managers. Feel free to try and open an issue on github for any feature request.

Finally I have graduated from Hokudai.

Finally I managed to finish my PhD. I wasn’t totally satisfied, nevertheless happy that I am getting the degree. Now, I can have prefix to my name if I want to.

I may put my thesis online some time soon and also I wish to write some long never ending post about my PhD life.

China, India, Tibet, Arunachal Pradesh

Yesterday Prime minister Modi visited Arunachal Pradesh to inaugurate its first ever railway link. Within hours, Chinese government protested by saying “India should pay attention to the strong concern of the Chinese Side”. To begin with, Its ridiculous to think that Chinese government even has a concern about an Indian prime minister visiting to its own Indian State.

../../../_images/modi_arunachal.png

Chinese have long tradition to rake up the boarder issues with its neighbors to keep a check on them. Chinese should first introspect about their involvement in Tibet before voicing concerns about other countries. Not long ago in 2008, Chinese had an embarrassment with all over the world when Olympic torch baton relay took place. Even their state owned media could not keep mum about strong protests by young Tibetans against Chinese illegal occupation of Tibet.

The unfortunate leadership of early leadership of Indian independent India allowed China to become a neighbor. Fact is, Historically China was never been a neighbor to India before it illegally occupied Tibet in 1951. The Chinese gripe about India is that it is sheltering Central Tibetan Administration (CTA) leader Dailai Lama in India. It wants to put pressure on India by raking up with boarder disputes. Whenever any discomfort with Indian government there will be incursions in the Ladakh region to bully and bring India to a negotiation table. This has been going too far now, but China will soon slowly take notice of the power shift in Delhi and will behave better in the years to come.

Modi is well aware of the issues with China, for now he would totally concentrate on Indian economic growth and modernization of Indian military and rightly so. The process has begun already, India started aggressively spend on three branches of the military. Progress in total Indigenous defense manufacturing on its way. On the diplomatic front India will strongly lobby for permanent membership of the United Nations Security Council (UNSC). Now that, all the five veto powered nations principally, at least verbally, agreed to Indian state induction to UNSC, Modi will pursue on that with continuous effort. Modi should be as proactive as he was with the International Yoga Day announcement by UN. It may not be easy but becoming a permanent member is just a eventuality because of India’s sheer size in both population and economy.

Meanwhile India can play low key fight with India voicing for Tibet’s Independence. The previous Indian establishments are too timid to talk about Tibet. Modi doesn’t belong to that list but I believe he is waiting to set his own house right first before showing eye to eye to the Chinese. This is/should also be an eventuality.

wrf_install: Helper scripts to build WRF model (v0.7 release)

wrf_instll is a small project consists of a bunch of shell scripts which I use for building WRF model. WRF is large enough to have many dependencies such as NETCDF, HDF5, zlib and so on. This wrf_install scripts are very handy, at least for me, saves a lot of time and headache.

I just now released v0.7 with a lot of improvements. This is a point release as I thought the last release was almost two years ago and let me push out some tag for now. There are some significant changes in the way the scripts run. Now the building process is much more sensitive to the errors and gives lot of feed back. I also improved README file significantly, as I was writing README earlier I found that how bizarre state it was in. I don’t say Its super good now, I believe its at least readable.

Even though this is a tiny project, it gives me immense pleasure once in a while when a young and enthusiastic meteorologist sends me mails and ask questions about how to use the scripts and build WRF model. Even though, I must say, they often come up very basic problems. But hey, everybody starts from zero, right?

If any of used it and find problems or suggestions please let me know by commenting here or github issue page.

Happy Predicting :)

Restoration of sapporoindians site.

Few years ago, I created a website for Indian Association Sapporo (or IAS as we call it). I think most of our community members don’t even bother to look at it. It is mainly indented to help those Indians who are planning to come to Sapporo.

This website is a simple wordpress site with less than 5 pages. But Last year, I noticed it has a security flaw which had been exploited by a spammer. This scammer sending mass spam mails by using wp plugin folder to which I had mistakenly gave write access. I admit that It was dumb mistake. Luckily I noticed that very early as I traced bouncing mails for the spam that is being sent out. I had simply disabled whole site without fixing the problem. I was busy breifly at that time and hadn’t been motivated enough to devote time to that not so important work. Frankly not a single sole complained about it and It dragged on.

Anyway, after a long delay, yesterday, I took a stab at it and finished the restoration work of the site. On the way I upgraded wordpress from 3.5 to 4.1.

How did I fix it, it was just setting up proper access controls to wp-content folder. The site is hosted at hcoop which uses afs file system. Hcoop wiki has very nice article on how to setup wordpress blog properly and details about access controls. I just used those instructions.

The site seems to work beautifully now.

Elisp wrapper for Tinkerer

I just finished writing a tiny Elisp package to help myself writing this blog. Its a wrapper for tinkerer blogging engine. Its called unsurprisingly tinkerer.el. It still needs some polishing. But its in working shape, in fact, this blog post is written by using the that package.

As I use it more and more I will improve progressively. This should be handy for Emacs tinkerers if there are any out in the wild. Right now, It can be installed from el-get package manager (if you use el-get, just do M-x el-get-install RET tinkerer RET). I will add it MELPA soon.

The Unusual Suspects of Cricket World Cup 2015

In my last post I discussed the possible winners of the World Cup 2015. Now I try to predict the possible high impact players of this world cup. I think most of cricket fans have an idea about the star players who would make an strong impact in this world cup, i.e., likes of AB de-Villiers, Virat Kohli, Hashim Amla, Steven Smith, Kane Williamson, David Warner etc. But I like to guess those who are not in the radar, but will have real impact in this time. Here is my list of The Unusual Suspects:

../../../_images/2015_Cricket_World_Cup_Logo.svg
  • George Bailey: Nice and Gritty Bailey, though captaining Australia, still uncertain of his place in the team. I expect him to do a lot better than the most of Aussie players.

  • JP Duminy: JP is really low key in South Africa team is really good player. He will be the man who will have high impact in both bat and bowl departments.

  • David Miller: Even though SA top order looks solid, David Miller will become savior when top order batsman fall cheaply.

  • Shehzad Ahmad: Pakistanis always bring new faces, so its tough to predict names. But from what I have seen little of Shehzad, I expect him to shine this time around.

  • Suresh Raina: He made to this list because I am big fan of him. I really believe he is better player than the statistics on his back. If he tries to play little cautiously and maintain slow pace than he is capable of he would surprise many this time.

  • Mitchel Starc: Even though Mitchel Johnson is lead bowler I expect Starc to be most wicket taker for Australia. I predict because Starc looked very passionate to perform.

  • Guptil: He is good player than his recent form says.

  • Andre Russels: He is just better player in the WI cricket team. Since he bats in the lower order, so far he hasn’t been able to make much impact but I expect him to do well in this world cup.

I am not much familiar with the Associate members’ teams of ICC. So I couldn’t list their names. If you have any name that should be in this list please inform me in the comments.

On a final note is, to my own surprise, no English player made into my list. I searched through the English team, but nobody sparked to my eye. Hopefully English players will prove me wrong at the end of the world cup.