[LTER-im] Python code generation
Porter, John H (jhp7e)
jhp7e at virginia.edu
Thu May 9 11:00:36 PDT 2019
Python code generation is now supported by the same web service that
provides the R, Matlab, SAS, and SPSS code generation. It uses the
NumPy and Pandas modules, so you'll need to have them installed in
Python. I've tested it with Python3.
Just use the URL:
http://www.vcrlter.virginia.edu/webservice/PASTAprog/knb-lter-vcr.25.py
to get the code,
where knb-lter-vcr.25 is the PASTA package ID and .py (or .r, .tidyr,
.m, .sas and .sps) is the suffix.
If you want to kick the tires before it gets connected to the EDI and
LTER portals, please use raw web service. If you break something, let
me know and I'll try to fix it.... Also, if you are a Pandas expert and
have suggestions about how things might be done better, please feel free
to share!
I also have some enhanced stylesheets for R. In addition to the main
dataframe containing the data, they also produce additional data frames
with 1) information about the attributes (labels, units) and 2)
information about codes (attribute, code, code definition). However, I
don't know if they will be too confusing for the general public.... and
just how useful they would be for most analyses. So I have NOT put them
on the web service at this point. Let me know your thoughts on whether
we should make those stylesheets the default, or reserve them for
special uses.....
Thanks!
-John Porter
--
John H. Porter
Dept. of Environmental Sciences
University of Virginia
291 McCormick Road
PO Box 400123
Charlottesville, VA 22904-4123
ORCID: http://orcid.org/0000-0003-3118-5784
More information about the im
mailing list