Welcome to the BEAM Forum!

We encourage you to sign in our forum and participate in the BEAM community. The forum is maintained by the BEAM project team who will most likely answer your questions within 24 hours (except during common holidays) - if not done by other community members. Collaborate, share your knowledge and learn from other users!

If you don't find what you are looking for, please also consider the following external forums:

Combination View Flat View Tree View
Threads [ Previous | Next ]
how to open envisat data
toggle
how to open envisat data
10/13/16 11:44 AM
hi, recently i have writen this code to just open envisat data but it doesn't work. any ideas please


// inspired from envisat_dump_header.c

#include <assert.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "epr_api-2.2/src/epr_api.h"
#if defined(WIN32) && defined(_DEBUG)
#include <crtdbg.h>
#endif /* if defined(WIN32) && defined(_DEBUG) */


void main(int argc, char** argv)
{
EPR_SProductId* product_id;

int status;
const char* product_file_path;

if (argc <= 1) && (argv[1]){

product_file_path = argv[1];
}

status = epr_init_api(e_log_debug, epr_log_message, NULL);

if (status != 0) {
printf(" error initialisation epr_init_api\n");
exit(1);
};

product_id = epr_open_product(product_file_path);
err_code = epr_get_last_err_code();

if (err_code != e_err_none) {
printf("envisat_dump_header: fatal error in epr_open_product\n");
printf("exiting.\n");
exit(1);
}

epr_close_api();
return 0;
Flag Flag
RE: how to open envisat data
10/19/16 9:53 AM as a reply to benattou mustapha mehdi.
Hi,

and what is the actual error? Do you get any exception?
Flag Flag