![]() Read first 10 samples from channel ‘cha’: data = do. Get data bounds for channel ‘cha’: s, e = do.get_bounds('cha') Load the module and create a reader object: import digital_rf as drf The following code will load and read data located in a directory “/data/test”. with the pip installation prefix, “/usr/local” for example). etc/gnuradio/conf.d/grc.conf Custom (global) : Depending on your GNU Radio installation, it may be necessary to add the Digital RF blocks to your GRC blocks path by creating or editing the GRC configuration file Unix (local) : If you plan on using Digital RF with GNU Radio, make sure to run the pip command in the same Python environment that your GNU Radio installation uses so that GNU Radio can find the packages. The surrogate modeling toolbox (SMT) is an open-source Python package consisting of libraries of surrogate modeling methods (e.g., radial basis functions, kriging), sampling methods, and benchmarking problems. To build from source, you must have the HDF5 library and headers installed.įor help and/or questions, contact the user mailing list. Gr_digital_rf Python package for interfacing with GNU Radioĭigital RF C and MATLAB libraries can be found at the official source code repository. Tools for managing and processing Digital RF data The format is designed to be self-documenting for data archive and to allow rapid random access for data processing. There's an example of a fully fleshed out Python toolbox here, though it doesn't cover your exact case (it'd be difficult to cover every case in the doc).Īlso, check out recent presentations on creating toolboxes here, where parts of this topic are covered (haven't watched this one in a while, it might not cover your exact use case but might provide some more insights).The Digital RF project encompasses a standardized HDF5 format for reading and writing of radio frequency data and the software for doing so. The reason GPLayer doesn't have a data filter type is because GPLayer is for any Layer (which includes tables, raster, etc.) and GPFeatureLayer is explicitly only the subset of Layers with features (Feature Class, Shapefile). You can safely omit the line = "Featureclass".Īlso note that you won't be able to do the same with the GPLayer data type. Note that the default filter type for GPFeatureLayer is "Featureclass", so there is actually no need to explicitly specify this as in the example below. You can then choose a "Featureclass" filter type. You can accomplish what you are trying to do more concisely by changing dataType to "GPFeatureLayer". *Edit* JohannesLinder beat me to this solution while I was writing this out =D. Set this to an empty list and your code works for me. ![]() ![]() There is a bug in your code at line 28, where you did not set polylist to any value. I can't find any good examples anywhere of what a fully, completed toolbox with validation and source code should look like. Poly_list = # list only polygon feature layers Unfortunately, programming python toolboxes is not very well documented by Esri. The validation code works just fine, but every time I run it, it yields the somewhat cryptic error 000820: The parameters need repair. It also seems like "parameters" and "messages" behave as magic arcpy variables that don't need to be expressly instantiated I'm having trouble finding explicit guidance/documentation on that.Įither way, could someone who has done this take a look at my code and help me understand why it's failing? The Digital RF project encompasses a standardized HDF5 format for reading and writing of radio frequency data and the software for doing so. Unfortunately, programming python toolboxes is not very well documented by Esri.
0 Comments
Leave a Reply. |