The task requires the development of a single processor


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.

Solution Preview :

Prepared by a verified Expert
Computer Engineering: The task requires the development of a single processor
Reference No:- TGS0655440

Now Priced at $40 (50% Discount)

Recommended (98%)

Rated (4.3/5)