- Created Climatological Windrose Generation as a CMPE 275 class project.
- Used Java Native Interface (JNI) framework to enable Java code running in a JVM to call and be called by C++ code
- JNI helped in interfacing Java and C++ code.
- Parsed nedcdf file data using Java JNI.
- Divided the retrived data points into bins based on the wind speed, direction and station ID.
- Presented the output in 6*16 matrix.
- To get attributes of the netcdf file, we created getFloatAttribute method in Java.
- Called getFloatAttribute() method from C++ code GetStaticMethodID() method to initialize the class and to find method in Java class.
- getFloatData function calls getFloatAttribute method and retrieves float data.
- getSize function calls getSize method in Java to retrieve size of the netcdf file.
- getStringData function calls getStringAttribute method and retrieves String data.
- The output of this step generates three arrays; one for wind speed, wind direction and station ID.
- The calcBins function performs processing of wind speed, wind direction and station ID data and segments data points into bins.
Please find commnad files in the repository directory.