Author |
Message |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Sat May 01, 2021 11:48 am Subject: |
Hi John,
The data were flipped, so I had to apply a fix, think it was largely because the data started at top left, not sure if this is the best method:
sz=size(zdata,1)
zdata = zdata ... |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Fri Apr 30, 2021 11:25 am Subject: |
Thanks for the update Paul. I was using ftn95 v8.70. |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Fri Apr 30, 2021 7:32 am Subject: |
Hello all,
Finally sorted out the binary read; it is a fiddly job!
The binary file does not have any obvious header within it, but must have some reference to record length. The solution that wo ... |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Thu Apr 29, 2021 5:36 pm Subject: |
Hi
Added the correction to allocate the dimensions.
The run-time error is:
Silverfrost 64-bit exception report on D:\Geoscience\Fortran\Test\Binary2.exe Thu Apr 29 17:32:57 2021
Unforma ... |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Thu Apr 29, 2021 3:05 pm Subject: |
Hi Bill,
Thanks for the link, that helped to understand the structure of the ESRI BIL format. I tried the following just to attempt to read the data from the file 'faa.bil' into the allocatable var ... |
Topic: Reading ESRI bil format binary file |
arctica
Replies: 13
Views: 3734
|
Forum: General Posted: Sat Apr 24, 2021 5:16 pm Subject: Reading ESRI bil format binary file |
Hello,
I am interested to know how a binary file can be read to store x, y, z values.
The ESRI BIL format has a separate header with the following:
BYTEORDER I
LAYOUT BIL
NROWS 120
NCOLS 1 ... |
Topic: Reading header |
arctica
Replies: 2
Views: 1653
|
Forum: General Posted: Sat Apr 24, 2021 2:24 pm Subject: Re: |
Many thanks
Modify to suit:
program readzvals
implicit none
integer :: ncols,nrows,i
real :: xllc,yllc,cellsize,nodata_value
real, allocatable, dimension(:,:) ... |
Topic: Reading header |
arctica
Replies: 2
Views: 1653
|
Forum: General Posted: Wed Apr 21, 2021 3:16 pm Subject: Reading header |
Hello,
Just a quick query. How do you read a header, store the values in variables (first 6 lines) and the rest of the data are z values:
ncols 120
nrows 120
xllcorner -5.000000
yllcorner -5. ... |
Topic: Double and triple integration |
arctica
Replies: 1
Views: 1475
|
Forum: Support Posted: Mon Apr 05, 2021 4:39 pm Subject: Double and triple integration |
Hello all,
How does one implement a double or triple integral in F95 ? Working with equations of the form f(x,y) or f(x,y,z) and defined numerical limits for x,y and z.
Be useful to see some exa ... |
Topic: Write array to X,Y formatted file |
arctica
Replies: 8
Views: 3263
|
Forum: Support Posted: Thu Jun 04, 2020 11:02 am Subject: Re: |
Many thanks for the pointers. The X and Y are 2D arrays so just had to tweak the line:
write (25,'(f15.10,f15.10)') (X(i,:), Y(:,i), i=1, npoints)
... |
Topic: Write array to X,Y formatted file |
arctica
Replies: 8
Views: 3263
|
Forum: Support Posted: Thu Jun 04, 2020 10:17 am Subject: Write array to X,Y formatted file |
Hello,
I am trying to write X,Y values to a file from a 2D array, but the data does not output correctly in 2 columns for X and Y. At present in writes X as 2 columns and then Y appended on the end ... |
Topic: writing a binary output file from ascii input |
arctica
Replies: 12
Views: 10101
|
Forum: General Posted: Wed Aug 26, 2015 2:36 pm Subject: writing a binary output file from ascii input |
Hello,
I have a quick query. I have a data file which is an ascii file and I can read and process the file i/o in text fine but was wondering if it is easy to write the otput as a binary (real*4) f ... |
Topic: Gravsoft code - Fortran 95 |
arctica
Replies: 3
Views: 5164
|
Forum: Support Posted: Wed Oct 22, 2014 9:44 am Subject: Re: |
Hi David,
Yes the code you show is what I was looking for, thanks for the corrections and the pointers - always helpful. The orginal code came from
Do you mean something like:
Program Gravso ... |
Topic: Gravsoft code - Fortran 95 |
arctica
Replies: 3
Views: 5164
|
Forum: Support Posted: Tue Oct 21, 2014 9:08 am Subject: Gravsoft code - Fortran 95 |
Hello,
I have a simple program that reads a datafile in scanline format and writes out an XYZ file (longitude, latitude and value). Everything is set fine and the input and output files are read fi ... |
Topic: DISLIN issue through Plato |
arctica
Replies: 6
Views: 6784
|
Forum: Support Posted: Tue Aug 13, 2013 8:39 pm Subject: |
Great Paul, that worked perfectly
Cheers
Lester |
|