Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Python wrapper for plot_tcmpr.R #28

Closed
bikegeek opened this issue Apr 12, 2017 · 3 comments
Closed

Create Python wrapper for plot_tcmpr.R #28

bikegeek opened this issue Apr 12, 2017 · 3 comments
Assignees

Comments

@bikegeek
Copy link
Contributor

bikegeek commented Apr 12, 2017

plot_tcmpr.R currently supports generating the mean intensity error plot (with confidence intervals), which is similar to the hurricane track error plots found on Fang Ling's web page (click on any one of the Hurricane 201x links) :
http://www.emc.ncep.noaa.gov/gmb/wx24fy/vsdb/gfs2016/

image

plot_tcmpr.R is written in R and would require a significant effort to reproduce this script's behavior using Python. As an alternative, create a Python wrapper that can be accessed through the existing METplus code base.

Possible approach:

Rpy2 is a Python package that allows one to access R methods within a Python script. Unfortunately, this requires users to download and install Rpy2. Initially implement in a "cludgy" way by building up the requested input options and passing these to plot_tcmpr.R similar to what is done in METplus when invoking the MET tools.

@bikegeek
Copy link
Contributor Author

Completed. Now users can also indicate a directory in the -lookin option and plots will be generated for each file in the directory. The file name (without extension) is used to create a subdirectory under the specified output directory to differentiate the plots.

@bikegeek bikegeek self-assigned this Apr 26, 2017
@bikegeek
Copy link
Contributor Author

Tagged the latest NCAR/METplus repo as METplus_alpha_20170424

@bikegeek bikegeek closed this as completed Jun 6, 2017
@bikegeek
Copy link
Contributor Author

bikegeek commented Jun 7, 2017

Design notes are found on UCAR wiki:
https://wiki.ucar.edu/pages/viewpage.action?pageId=333022957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant