Reference no: EM13316761
Single Processer Component
This assignment assumes a hypothetical scenario of a task given to you by an employer. The hypothetical scenario is that you work for a company, Weather Inc (WINC) that runs weather models and generates weather graphics. WINC receives current meteorological grids from various observation stations daily. These data grids include relative humidity and temperature, which contain some random noise, so they need to be smoothed before they are used in computation and graph generation. Since there are many various current meteorological data sets arriving through network sources, all computation must be as The task give to you is to design and implement a program that will be run each day to generate dew point grids. First the relative humidity and temperature grids with the average of a NxN moving window over the data grid. Once these grids are smoothed, they are to be used to compute a dew point grid. All input data grids will be read in binary format. The input grids cover the globe at 0.125 degrees latitude and 0.156 degrees longitude which results in a 1440 row by 2304 column grid.
The task requires the development of a single processor program that can subsequently be converted into a multi processor program after the testing of the single processor program is complete. Specifically, it is required to read and smooth the 1440 row by 2304 column relative humidity and temperature grids. Due to memory limitations the grids will need to be read and process in 16 segments of 90 rows each.
Each segment is to be smoothed by a NxN moving window where N is initially equal to 9, but should be written flexible enough that it can be changed if needed. Once each of the relative humidity and temperature grids have been smoothed the dew point grid is to be Dewpoint = temperature - ((100 - relative_humidity) / 5)
Once the dew point is computed the 1440 row by 2304 column smoothed relative humidity,smoothed temperature and computed dew point grids are to be written in binary format to a. The user should be prompted for the input and output files. However, during testing the code
requesting this information from the user can be commented out and the filenames can be hardcoded to reduce the time needed to repeatedly type the requested data file names.
Once the output files have been written to disk, the assignment is finished. There is no need to create graphics of the generated data grids. Your program must be named "smooth_dwp_single.c" in a directory you make called "$HOME/src/smooth_dwp". Your code must include comments describing the purpose of each section of code. It also must be structured with all lines of a common block of code indented the same number of spaces or tabs.
What is the thermal coefficient of linear expansion
: At room temperature (20C) the area of a hole in a sheet of material is 5.505 cm2. What is the thermal coefficient of linear expansion for the material
|
What steps make up the product life cycle
: What steps make up the product life cycle? Include examples of the activities that occur during each step. What is the importance of the system safety function to an organi- zation? What are the differences between system safety and industrial safety..
|
Determine the mass flow rate through the system
: A Brayton cycle with a regenerator uses air as the working fluid. The air enters the compressor at 283K and 0.1 MPa. The highest temperature in the cycle is 1073K and the pressure ratio across the compressor is 8.
|
Discuss the risks of having a single root user
: Discuss the risks of having a single root user and how more limited management abilities can be given to others users on Linux/UNIX systems. Include a sample generic policy for a limited user from which a configuration could be written.
|
Design and implement a program that will be run each day
: The task requires the development of a single processor program that can subsequently be converted into a multi processor program after the testing of the single processor program is complete.
|
Maximum deductible contribution
: What is the maximum deductible contribution that can be made to one or more deductible IRAs in each of the following instances?
|
Define what stress will be necessary to the slip plane
: Consider a metal single crystal oriented such that the normal to the slip plane and the slip direction are at angles of 42.1* and 48.9*, respectively, with the tensile axis.
|
What is the angular misclosure of a seven sided closed-loop
: What is the angular misclosure of a seven sided closed-loop traverse with measured angles of G B=132°08’23”, A C=133°35’18”, B D=127°15’08”, C E=123°28’37”, D F=99°55’13”, E G =129°09’49”, and F A=154°26’57”. Adjust the angles to eliminate the misclo..
|
Determine the subsidence of the clay surface
: groundwater is pumped for domestic use from an unconfined aquifer. the thickness of the clay is 40%. after 10 years of pumping, the porosity is reduced to 30%. determine the subsidence of the clay surface.
|