Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Parallel lines never meet, unless you bend one or both of them.


devel / comp.lang.fortran / Write format specifiers

SubjectAuthor
* Write format specifiersPratik Patel
+* Re: Write format specifiersJakob Mendel
|`* Re: Write format specifiersPratik Patel
| `* Re: Write format specifiersJohn
|  +- Re: Write format specifiersJohn
|  `* Re: Write format specifiersPratik Patel
|   +- Re: Write format specifiersFortranFan
|   `* Re: Write format specifiersFortranFan
|    `- Re: Write format specifiersPratik Patel
`- Re: Write format specifiersRobin Vowels

1
Write format specifiers

<e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2504&group=comp.lang.fortran#2504

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:2906:b0:6b5:9c21:7660 with SMTP id m6-20020a05620a290600b006b59c217660mr1260033qkp.465.1657693485769;
Tue, 12 Jul 2022 23:24:45 -0700 (PDT)
X-Received: by 2002:a25:2e50:0:b0:669:9a76:beb with SMTP id
b16-20020a252e50000000b006699a760bebmr2112460ybn.597.1657693485092; Tue, 12
Jul 2022 23:24:45 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 12 Jul 2022 23:24:44 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=160.202.10.50; posting-account=23D3wQoAAACrA1FnxB0NNs2NaDSvP1Fm
NNTP-Posting-Host: 160.202.10.50
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
Subject: Write format specifiers
From: pratikmethaniya@gmail.com (Pratik Patel)
Injection-Date: Wed, 13 Jul 2022 06:24:45 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1522
 by: Pratik Patel - Wed, 13 Jul 2022 06:24 UTC

Hi,
I want to create a file and write data in that file as shown below to use the 'pm3d' command in Gnuplot and plot a 3D contour graph. I want to add one blank space line when the value of the X variable changes. How to write data like this in a file?
Example :
X Y Z
1 1 2
1 2 5
1 3 10

2 1 5
2 2 8
2 3 13

3 1 10
3 2 13
3 3 18

Re: Write format specifiers

<talqui$4jfc$1@solani.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2505&group=comp.lang.fortran#2505

  copy link   Newsgroups: comp.lang.fortran
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.solani.org!.POSTED!not-for-mail
From: jm.2009@web.de (Jakob Mendel)
Newsgroups: comp.lang.fortran
Subject: Re: Write format specifiers
Date: Wed, 13 Jul 2022 09:06:50 +0200
Message-ID: <talqui$4jfc$1@solani.org>
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Wed, 13 Jul 2022 07:06:58 -0000 (UTC)
Injection-Info: solani.org;
logging-data="151020"; mail-complaints-to="abuse@news.solani.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101
Thunderbird/91.9.1
Cancel-Lock: sha1:lLSJSGI3OAlpxAWFv2sfO9lwkgE=
X-User-ID: eJwFwQcBACAIBMBKIuMlDrN/BO+Ujawgpia6uj6gzvZ6O+abjXaplYybTKhGcFzOIzyjdD4+hxHx
In-Reply-To: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
Content-Language: en-US
 by: Jakob Mendel - Wed, 13 Jul 2022 07:06 UTC

Am 13.07.22 um 08:24 schrieb Pratik Patel:
> Hi,
> I want to create a file and write data in that file as shown below to use the 'pm3d' command in Gnuplot and plot a 3D contour graph. I want to add one blank space line when the value of the X variable changes. How to write data like this in a file?
> Example :
> X Y Z
> 1 1 2
> 1 2 5
> 1 3 10
>
> 2 1 5
> 2 2 8
> 2 3 13
>
> 3 1 10
> 3 2 13
> 3 3 18

I onestly think you should start with the data structure holding the x,
y, and z values. How is the data being read in? Do you employ DO
loops, explicit or implicit?

If you employ DO loops it should be an easy task to adapt them to your
output needs.

Jakob

Re: Write format specifiers

<daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2506&group=comp.lang.fortran#2506

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:5cc5:b0:473:23d5:9109 with SMTP id lk5-20020a0562145cc500b0047323d59109mr1749366qvb.77.1657696711663;
Wed, 13 Jul 2022 00:18:31 -0700 (PDT)
X-Received: by 2002:a81:6988:0:b0:31c:bc55:80d1 with SMTP id
e130-20020a816988000000b0031cbc5580d1mr2583276ywc.431.1657696709865; Wed, 13
Jul 2022 00:18:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 00:18:29 -0700 (PDT)
In-Reply-To: <talqui$4jfc$1@solani.org>
Injection-Info: google-groups.googlegroups.com; posting-host=14.139.121.55; posting-account=23D3wQoAAACrA1FnxB0NNs2NaDSvP1Fm
NNTP-Posting-Host: 14.139.121.55
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com> <talqui$4jfc$1@solani.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
Subject: Re: Write format specifiers
From: pratikmethaniya@gmail.com (Pratik Patel)
Injection-Date: Wed, 13 Jul 2022 07:18:31 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 30
 by: Pratik Patel - Wed, 13 Jul 2022 07:18 UTC

On Wednesday, July 13, 2022 at 12:37:02 PM UTC+5:30, Jakob Mendel wrote:
> Am 13.07.22 um 08:24 schrieb Pratik Patel:
> > Hi,
> > I want to create a file and write data in that file as shown below to use the 'pm3d' command in Gnuplot and plot a 3D contour graph. I want to add one blank space line when the value of the X variable changes. How to write data like this in a file?
> > Example :
> > X Y Z
> > 1 1 2
> > 1 2 5
> > 1 3 10
> >
> > 2 1 5
> > 2 2 8
> > 2 3 13
> >
> > 3 1 10
> > 3 2 13
> > 3 3 18
> I onestly think you should start with the data structure holding the x,
> y, and z values. How is the data being read in? Do you employ DO
> loops, explicit or implicit?
>
> If you employ DO loops it should be an easy task to adapt them to your
> output needs.
>
> Jakob

I have employed Do Loop implicitly and generated data.
There are 16k data points so can not be done manually.
I'm looking for some format that can be used with write command.

Pratik

Re: Write format specifiers

<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2508&group=comp.lang.fortran#2508

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ad4:5ded:0:b0:472:f1e0:9562 with SMTP id jn13-20020ad45ded000000b00472f1e09562mr2251585qvb.85.1657710886860;
Wed, 13 Jul 2022 04:14:46 -0700 (PDT)
X-Received: by 2002:a25:3741:0:b0:66e:df3d:fbc9 with SMTP id
e62-20020a253741000000b0066edf3dfbc9mr3038495yba.245.1657710886409; Wed, 13
Jul 2022 04:14:46 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 04:14:46 -0700 (PDT)
In-Reply-To: <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:acf1:5f44:18ad:1029;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:acf1:5f44:18ad:1029
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>
Subject: Re: Write format specifiers
From: urbanjost@comcast.net (John)
Injection-Date: Wed, 13 Jul 2022 11:14:46 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 29
 by: John - Wed, 13 Jul 2022 11:14 UTC

If you mean you already have some arrays X,Y,Z of simple integers just about any
format would do. If you mean you want to do it in one line it is possible with the
MERGE intrinsic and an implied DO, but that would start to obfuscate the code.
As noted, if you could show a sample code it might be you can print the data as
you generate it and not have to create the data arrays, etc. Do you mean you just
want something like this?

program testit
implicit none
! generate some sample data
integer,parameter :: i=100
integer :: x(i),y(i),z(i), j
real :: r(i)
call random_number(r)
x=r*10
call random_number(r)
y=r*10
call random_number(r)
z=r*10

! write the arrays adding a line when the X value changes

write(*,'("X Y Z")')
do j=1,i
if(x(j).ne.x(max(1,j-1))) write(*,*)
write(*,'(*(g0,1x))')x(j),y(j),z(j)
enddo
end program testit

Re: Write format specifiers

<5c886968-0040-4de6-bf09-041263228f9an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2509&group=comp.lang.fortran#2509

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:58d0:0:b0:31d:3287:10fe with SMTP id u16-20020ac858d0000000b0031d328710femr2384535qta.557.1657711949387;
Wed, 13 Jul 2022 04:32:29 -0700 (PDT)
X-Received: by 2002:a81:8841:0:b0:31d:a90f:73e2 with SMTP id
y62-20020a818841000000b0031da90f73e2mr3749482ywf.54.1657711949284; Wed, 13
Jul 2022 04:32:29 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 04:32:29 -0700 (PDT)
In-Reply-To: <6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:acf1:5f44:18ad:1029;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:acf1:5f44:18ad:1029
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5c886968-0040-4de6-bf09-041263228f9an@googlegroups.com>
Subject: Re: Write format specifiers
From: urbanjost@comcast.net (John)
Injection-Date: Wed, 13 Jul 2022 11:32:29 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 21
 by: John - Wed, 13 Jul 2022 11:32 UTC

As noted, you could do the printing all with one line of code, but it becomes very unclear
what the line is doing versus a simple DO loop as per above.

program testit
implicit none
integer,parameter :: i=100
integer :: x(i),y(i),z(i), j
real :: r(i)
character(len=1) :: nl=new_line('a')
call random_number(r)
x=r*10
call random_number(r)
y=r*10
call random_number(r)
z=r*10

write(*,'(4(g0,1x))') ' X','Y','Z','',(nl(:merge(1,0,x(j).ne.x(max(1,j-1)))), x(j),y(j),z(j),j=1,i)

end program testit

Re: Write format specifiers

<75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2510&group=comp.lang.fortran#2510

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:5cc5:b0:473:23d5:9109 with SMTP id lk5-20020a0562145cc500b0047323d59109mr2555721qvb.77.1657713341088;
Wed, 13 Jul 2022 04:55:41 -0700 (PDT)
X-Received: by 2002:a05:6902:124e:b0:668:222c:e8da with SMTP id
t14-20020a056902124e00b00668222ce8damr3156780ybu.383.1657713340812; Wed, 13
Jul 2022 04:55:40 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 04:55:40 -0700 (PDT)
In-Reply-To: <6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=160.202.10.50; posting-account=23D3wQoAAACrA1FnxB0NNs2NaDSvP1Fm
NNTP-Posting-Host: 160.202.10.50
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
Subject: Re: Write format specifiers
From: pratikmethaniya@gmail.com (Pratik Patel)
Injection-Date: Wed, 13 Jul 2022 11:55:41 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2340
 by: Pratik Patel - Wed, 13 Jul 2022 11:55 UTC

On Wednesday, July 13, 2022 at 4:44:48 PM UTC+5:30, John wrote:
> If you mean you already have some arrays X,Y,Z of simple integers just about any
> format would do. If you mean you want to do it in one line it is possible with the
> MERGE intrinsic and an implied DO, but that would start to obfuscate the code.
> As noted, if you could show a sample code it might be you can print the data as
> you generate it and not have to create the data arrays, etc. Do you mean you just
> want something like this?
>
>
> program testit
> implicit none
> ! generate some sample data
> integer,parameter :: i=100
> integer :: x(i),y(i),z(i), j
> real :: r(i)
> call random_number(r)
> x=r*10
> call random_number(r)
> y=r*10
> call random_number(r)
> z=r*10
>
> ! write the arrays adding a line when the X value changes
>
> write(*,'("X Y Z")')
> do j=1,i
> if(x(j).ne.x(max(1,j-1))) write(*,*)
> write(*,'(*(g0,1x))')x(j),y(j),z(j)
> enddo
> end program testit
Thank you so much, John. This code will work for me.

Re: Write format specifiers

<aaec2647-3fbb-480b-ab6e-13958121529dn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2511&group=comp.lang.fortran#2511

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4724:b0:6af:dd84:1f33 with SMTP id bs36-20020a05620a472400b006afdd841f33mr2187025qkb.464.1657717008624;
Wed, 13 Jul 2022 05:56:48 -0700 (PDT)
X-Received: by 2002:a81:6357:0:b0:31d:68b1:6f4a with SMTP id
x84-20020a816357000000b0031d68b16f4amr3984282ywb.245.1657717008177; Wed, 13
Jul 2022 05:56:48 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 05:56:47 -0700 (PDT)
In-Reply-To: <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=165.225.39.105; posting-account=ZZXq9AoAAAAQEcA7zKAGm0UFQh4gMBv7
NNTP-Posting-Host: 165.225.39.105
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com> <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <aaec2647-3fbb-480b-ab6e-13958121529dn@googlegroups.com>
Subject: Re: Write format specifiers
From: parekhvs@gmail.com (FortranFan)
Injection-Date: Wed, 13 Jul 2022 12:56:48 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2521
 by: FortranFan - Wed, 13 Jul 2022 12:56 UTC

On Wednesday, July 13, 2022 at 7:55:42 AM UTC-4, Pratik Patel wrote:
> On Wednesday, July 13, 2022 at 4:44:48 PM UTC+5:30, John wrote:
> > If you mean you already have some arrays X,Y,Z of simple integers just about any
> > format would do. If you mean you want to do it in one line it is possible with the
> > MERGE intrinsic and an implied DO, but that would start to obfuscate the code.
> > As noted, if you could show a sample code it might be you can print the data as
> > you generate it and not have to create the data arrays, etc. Do you mean you just
> > want something like this?
> >
> >
> > program testit
> > implicit none
> > ! generate some sample data
> > integer,parameter :: i=100
> > integer :: x(i),y(i),z(i), j
> > real :: r(i)
> > call random_number(r)
> > x=r*10
> > call random_number(r)
> > y=r*10
> > call random_number(r)
> > z=r*10
> >
> > ! write the arrays adding a line when the X value changes
> >
> > write(*,'("X Y Z")')
> > do j=1,i
> > if(x(j).ne.x(max(1,j-1))) write(*,*)
> > write(*,'(*(g0,1x))')x(j),y(j),z(j)
> > enddo
> > end program testit
> Thank you so much, John. This code will work for me.

Re: Write format specifiers

<2e000693-a219-4497-ad1e-eb20c60cc148n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2512&group=comp.lang.fortran#2512

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:622a:2cf:b0:31b:ee23:3b62 with SMTP id a15-20020a05622a02cf00b0031bee233b62mr2787177qtx.412.1657717208823;
Wed, 13 Jul 2022 06:00:08 -0700 (PDT)
X-Received: by 2002:a25:f606:0:b0:66e:3700:41bc with SMTP id
t6-20020a25f606000000b0066e370041bcmr3699163ybd.238.1657717208095; Wed, 13
Jul 2022 06:00:08 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 06:00:07 -0700 (PDT)
In-Reply-To: <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=165.225.39.105; posting-account=ZZXq9AoAAAAQEcA7zKAGm0UFQh4gMBv7
NNTP-Posting-Host: 165.225.39.105
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com> <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2e000693-a219-4497-ad1e-eb20c60cc148n@googlegroups.com>
Subject: Re: Write format specifiers
From: parekhvs@gmail.com (FortranFan)
Injection-Date: Wed, 13 Jul 2022 13:00:08 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 10
 by: FortranFan - Wed, 13 Jul 2022 13:00 UTC

On Wednesday, July 13, 2022 at 7:55:42 AM UTC-4, Pratik Patel wrote:

> ..
> Thank you so much, John. This code will work for me.

@Pratik Patel,

You may also to keep in mind the Fortran-lang site and the Discourse there if you have further needs and interests with Fortran:
https://fortran-lang.org/
https://fortran-lang.discourse.group/

Re: Write format specifiers

<5212d127-a7e6-47d6-adce-e6b8bfcdda30n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2514&group=comp.lang.fortran#2514

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:7f45:0:b0:31e:bebe:18e5 with SMTP id g5-20020ac87f45000000b0031ebebe18e5mr2939334qtk.382.1657718294423;
Wed, 13 Jul 2022 06:18:14 -0700 (PDT)
X-Received: by 2002:a81:c249:0:b0:317:d34a:184c with SMTP id
t9-20020a81c249000000b00317d34a184cmr4119353ywg.392.1657718292482; Wed, 13
Jul 2022 06:18:12 -0700 (PDT)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!1.us.feeder.erje.net!feeder.erje.net!border1.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 06:18:12 -0700 (PDT)
In-Reply-To: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <5212d127-a7e6-47d6-adce-e6b8bfcdda30n@googlegroups.com>
Subject: Re: Write format specifiers
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Wed, 13 Jul 2022 13:18:14 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 20
 by: Robin Vowels - Wed, 13 Jul 2022 13:18 UTC

On Wednesday, July 13, 2022 at 4:24:47 PM UTC+10, Pratik Patel wrote:
> Hi,
> I want to create a file and write data in that file as shown below to use the 'pm3d'
> command in Gnuplot and plot a 3D contour graph. I want to add one blank space
> line when the value of the X variable changes. How to write data like this in a file?
..
Use a WRITE statement with format control.
..
> Example :
> X Y Z
> 1 1 2
> 1 2 5
> 1 3 10
>
> 2 1 5
> 2 2 8
> 2 3 13
>
> 3 1 10
> 3 2 13
> 3 3 18

Re: Write format specifiers

<ea9798da-cbd9-4674-95b4-4a931a694f26n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2515&group=comp.lang.fortran#2515

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:5fc8:0:b0:31b:f4c3:c45e with SMTP id k8-20020ac85fc8000000b0031bf4c3c45emr3873023qta.684.1657730056380;
Wed, 13 Jul 2022 09:34:16 -0700 (PDT)
X-Received: by 2002:a81:7996:0:b0:31c:96d1:746 with SMTP id
u144-20020a817996000000b0031c96d10746mr5306351ywc.467.1657730055969; Wed, 13
Jul 2022 09:34:15 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Wed, 13 Jul 2022 09:34:15 -0700 (PDT)
In-Reply-To: <2e000693-a219-4497-ad1e-eb20c60cc148n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=14.139.121.55; posting-account=23D3wQoAAACrA1FnxB0NNs2NaDSvP1Fm
NNTP-Posting-Host: 14.139.121.55
References: <e9a1933c-9952-4176-a841-7c0ff6d25987n@googlegroups.com>
<talqui$4jfc$1@solani.org> <daa87e57-fdb8-4ef2-b4fd-19237ecafce4n@googlegroups.com>
<6aec1d22-35dc-4fc2-adb6-2ed20303c880n@googlegroups.com> <75a38f12-4e8e-4561-b192-2f1f22b089aan@googlegroups.com>
<2e000693-a219-4497-ad1e-eb20c60cc148n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ea9798da-cbd9-4674-95b4-4a931a694f26n@googlegroups.com>
Subject: Re: Write format specifiers
From: pratikmethaniya@gmail.com (Pratik Patel)
Injection-Date: Wed, 13 Jul 2022 16:34:16 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1939
 by: Pratik Patel - Wed, 13 Jul 2022 16:34 UTC

On Wednesday, July 13, 2022, at 6:30:12 PM UTC+5:30, FortranFan wrote:
> On Wednesday, July 13, 2022, at 7:55:42 AM UTC-4, Pratik Patel wrote:
>
> > ..
> > Thank you so much, John. This code will work for me.
> @Pratik Patel,
>
> You may also keep in mind the Fortran-lang site and the Discourse there if you have further needs and interests with Fortran:
> https://fortran-lang.org/
> https://fortran-lang.discourse.group/
@FortranFan
Thank you so much for providing links. As I'm a beginner and will need to use this site frequently.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor