Hello, I receive files with the .rld extension from a data logger, with wind information.
Data are collected from readings of meteorological sensors and other devices and then stored in the loggers for either manual retrieval or automated delivery to the location of your choice. In my case it's send by email.
Then the file can be open with different software from the data logger maker or with a software call windographer. It can't be open with the notepad but it can be converted to a txt file with windographer or with the other software from the data logger maker.
I would like to upload this file to R to work with the data it brings but I have not found information about it. Maybe someone can help me with information?
La extensión .rld no parece ser de uso exclusivo, puedes dar más detalles acerca del equipo que produce estos archivos? Si intentas abrir este archivo cómo un archivo de texto (Block de notas en Windows) obtienes texto legible?
Nota: Por favor intenta hacer tus preguntas en inglés, ya que es el idioma preferido aquí y al usar español estás excluyendo a la mayoría de la conversación, reduciendo así tus posibilidades de obtener ayuda.
What is the brand of the data logger? I don't think there is a mainstream package for this but maybe with enough information you could find something on Github.
If you are OK with making this intermediate step you can read txt files into R and then parse the content, although, we would need a sample of the txt file to help you with this approach.
I can't find an R package for this but there is a python package, you could convert the files into txt using this package and then keep working with R, and you can even do it from within R using the reticulate package.
Edit: Apparently the python library is just a wrapper for the NRG-software's API, so, in theory, you could use the API directly from R as well.
Managing python packages from R is a nightmare for me (for some reason reticulate doesn't like python 3.6), I usually give up and simply install all I need from the terminal, in this case:
sudo pip3 install nrgpy # I'm using python 3.6 so I use pip3 instead of pip
This loads the module without any error messages, but I can't test the function since I don't have a license for the NRG software (thus no access to the API).
Edit: In your case it seems you need to update numpy
I did what you told me. I used the terminal to install nrgpy and then in R I run the commands but I still get an error as shown below.
> library(reticulate)
> # indicate that we want to use a specific virtualenv
> use_virtualenv("r-reticulate")
> # import nrgpy (it will be automatically discovered in "r-reticulate")
> nrgpy <- import("nrgpy")
Error in py_module_import(module, convert = convert) :
ModuleNotFoundError: No module named 'nrgpy'
The only difference is that I used pip because I'm using python 3.8.5. I also tried with pip3 but I get the same so it doesn't matter.
I really don't know what else to do. Please advice.
When you call use_virtualenv() you are overwriting use_python(), you have to configure your virtual environment to use your desired python version, for example: