Matlab/C++ assignment help much needed

  • Thread starter Thread starter Neillson01
  • Start date Start date
  • Tags Tags
    Assignment
Click For Summary
SUMMARY

The forum discussion centers on a programming assignment involving the METSAT.HDR file from a METEOSAT satellite, requiring the use of either C++ or Matlab. The assignment entails checking synchronization words, identifying the satellite, extracting the date and image number, and retrieving an administrative message from the last 800 bytes of the Interpretation Data Block. Participants emphasize the importance of understanding the data format as outlined in the engineering manual, "Meteosat High Resolution Image Dissemination, Technical Description, EUM TD 02 (Eumetsat, 2002)," before attempting to write the program.

PREREQUISITES
  • Understanding of C++ or Matlab programming languages
  • Familiarity with file handling and data parsing techniques
  • Knowledge of synchronization words in satellite data transmission
  • Ability to interpret technical documentation, specifically the EUM TD 02 manual
NEXT STEPS
  • Study C++ file I/O operations for reading and writing data
  • Learn about data parsing techniques for structured files
  • Review the "Meteosat High Resolution Image Dissemination" manual for data format specifics
  • Explore examples of extracting and displaying data from binary files in Matlab
USEFUL FOR

This discussion is beneficial for students in programming courses, particularly those working on assignments involving satellite data processing, as well as educators guiding learners in C++ or Matlab applications.

Neillson01
Messages
2
Reaction score
0
Hi,
I'v got the following assignment through to complete my course. I'm a bit rusty so I am really having a hard time understanding what I'm supposed to be doing here. If someone can give me the brief, basic outline of how to complete this and if C++ or Matlab would be better/easier to do it in I would be very grateful. As I say my programming is rusty so would be the same as starting from scratch. I don't even know where to begin with this one!

Thanks

Neill

ASSIGNMENT:

The file METSAT.HDR provided contains a single header subframe recorded directly in the
department from a METEOSAT satellite. With reference to the supplied engineering manual: Meteosat High Resolution Image Dissemination, Technical Description, EUM TD 02 (Eumetsat, 2002), write a program, in C++ or Matlab, to check the synchronisation words and then determine:
1. Which particular METEOSAT satellite originated the transmission
2. The date and nominal image time of the transmission
3. The image number from the start of the spacecraft mission.

Finally, extract the administrative message contained within the last 800 bytes of the Interpretation Data Block. Present all results on the screen, and write the administrative message to a disk file in the current directory. This disk file should be named ADMIN.TXT.
 
Physics news on Phys.org
What? You think we are mind readers here? Here's a wild guess at what you should do:

1. Look at your supplied header data file.
2. Read your manual to learn the format the data file uses.
3. Using the information you learn about the data format, write a program to read the data and extract and display it in human readable form.
 
Neillson01 said:
Hi, If someone can give me the brief, basic outline of how to complete this and if C++ or Matlab would be better/easier to do it in I would be very grateful.

Hi Neil,

Unfortunately, designing an algorithm is a huge part of every programming assignment. If we straight out give you the algorithm, it will only hurt you in the future. It would probably be more beneficial for you if you talk to your instructor or talk to your fellow classmates(if allowed). However, there's nothing wrong with simply making sure you understand what the problem is.

Neillson01 said:
ASSIGNMENT:

The file METSAT.HDR provided contains a single header subframe recorded directly in the
department from a METEOSAT satellite. With reference to the supplied engineering manual: Meteosat High Resolution Image Dissemination, Technical Description, EUM TD 02 (Eumetsat, 2002), write a program, in C++ or Matlab, to check the synchronisation words and then determine:
1. Which particular METEOSAT satellite originated the transmission
2. The date and nominal image time of the transmission
3. The image number from the start of the spacecraft mission.

Finally, extract the administrative message contained within the last 800 bytes of the Interpretation Data Block. Present all results on the screen, and write the administrative message to a disk file in the current directory. This disk file should be named ADMIN.TXT.

Without knowing what what the format is for METSAT.HDR, it's impossible to answer this question. In order to parse a file, you'll need to know what the "rules" are. In other words, are the fields delimited by a special character? Are some fields optional? Is each field on its own line? Do any fields have spaces in them? etc..
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
6K
  • · Replies 1 ·
Replies
1
Views
20K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
9K