Location: Saint Paul, MN USA / BSD, CentOS, Debian, OS X, Solaris
Posts: 2,288
Thanks Given: 430
Thanked 480 Times in 395 Posts
Hi.
Your data file srtm_35_05.asc looks like this:
and your program is attempting to read this data with this code:
So the first real data line is line 7. The read will fail on the first 6 lines because the format is not correct -- the first items on those lines are not numeric.
Perhaps we should back up here.
How much programming experience do you have?
What is your purpose in trying to analyze this data -- research?, working on a degree?, helping someone? other?
My purpose of trying to analyse this data is for research. Unfortunately I don't have lot of programming experience, that's why I'm maybe asking silly questions...
---------- Post updated at 09:28 AM ---------- Previous update was at 09:02 AM ----------
It worked! I erased the first 6 lines of the data file. And I changed the read(10,33) to read(10,*) and it worked...
Thanks a lot for you help! You kind of save my life!
I've received some executable script for test, but executing this script continuously give me following message
./example: error while loading shared libraries: libgfortran.so.1: cannot open shared object file: No such file or directory
Google search told me to do as following
$... (1 Reply)
Hello,
I hope this is the correct forum for this post. I have the following
problem:
A Fortran 77 program that has to deal with several large
matrices (each approx. 5000 x 5000) and uses lapack and blas
subroutines has been correctly compiled and executed using Debian
Etch. When I tried... (1 Reply)
Hello,
My problem is with compiling a program modelling shallow water.
In it there is a subroutine called stat with 9 parameters.
In the main program it is called with 9 parameters also
I'm running Ubuntu 11.04 with gfortran version 4.5.
Thanks.
---------- Post updated at 11:57 PM... (0 Replies)
Dear all
I am new to C programming
In response to the post
cat get_time.c
#include <stdlib.h>
#include <sys/time.h>
main()
{
struct timeval tv;
struct timezone tz;
struct tm *tm;
gettimeofday(&tv, &tz);
tm=localtime(&tv.tv_sec);
printf("... (2 Replies)
hi, I first want to apologize for my poor english !
I'm a newbe on Unix system and I have to install NRPE on an AIX 5.3.
I have downloaded the NRPE Source code and i need to compile them...
the problem is, when I do a:
./configure --enable-command-args --disable-ssl
it returns me :... (1 Reply)
Hi,
I have AIX 5.3 and my code is written in proc . i am getting following error during compilation
Please help?////.....
[H[2J:-d:
Compiling with RMS
cc -w -q32 -qidirfirst -ISource/Header -I/usr/vacpp/include -q32 -DRMS -DDISEC -DDBG -DBIGENDIAN -DBIT32 -c -q32... (0 Replies)
Hi,
Environment : HP-UX avalon B.11.11 U 9000/800 3547052374 unlimited-user license
aCC version :aCC: HP ANSI C++ B3910B A.03.37
I need to find a way out of this errors.can anyone help me .
$ aCC db.cc -I$ORACLE_HOME/rdbms/public -I/disk1/oracle/product/10.2.0.2/*
Error (future)... (1 Reply)
i have a class name 1.c in tht i am using function n wich has his body in 2.c and declaration in 2.h
now how can i compile 1.c.
ex;
1.c
int main()
{
//some data
n(10);
//somedata
}
*****
2.c
int n(int k)
{
//some data
}
int main()
{
some data (2 Replies)
I am compiling a software named wine
When i run make then at the end following error generated.
DVAPI32_ -foversion.res version.rc
ld.so.1: ../../tools/wrc/wrc: fatal: relocation error: file ../../tools/wrc/wrc: symbol wine_casemap_upper: referenced symbol not found
*** Signal 9
make:... (0 Replies)