|
|
Up |
|
|
  |
Author: David FrankDavid Frank Date: Nov 8, 2007 04:07
I have a Fortran solution to this problem and challenge the AWK/RUBY/PLI/ETC
advocates to post their solutions that
can process the U,V records below -> internal arrays and then output UV
product records in format requested by
original (homework?) assignment.
Exception: no UV record is to be output unless both U,V, 3d indexed records
exist as positive non-zero weather
data..
I will post my Fortran code once someone posts a non-Fortran solution that
matches the UV output format shown.
.
====================
time: 00 minutes
====================
velocity U in m/s
|
| Show full article (2.63Kb) |
|
| | 55 Comments |
|
  |
Author: David FrankDavid Frank Date: Nov 8, 2007 05:32
>I have a Fortran solution to this problem and challenge the
>AWK/RUBY/PLI/ETC advocates to post their solutions that
> can process the U,V records below -> internal arrays and then output UV
> product records in format requested by
> original (homework?) assignment.
> Exception: no UV record is to be output unless both U,V, 3d indexed
> records exist as positive non-zero weather
> data..
> I will post my Fortran code once someone posts a non-Fortran solution that
> matches the UV output format shown.
As I dont really expect my challenge to be met, here is my solution using a
type variable to simplify things.
|
| Show full article (3.85Kb) |
|
| | no comments |
|
  |
Author: David FlowerDavid Flower Date: Nov 8, 2007 12:25
On Nov 8, 12:07?pm, "David Frank" hotmail.com> wrote:
> I have a Fortran solution to this problem and challenge the AWK/RUBY/PLI/ETC
> advocates to post their solutions that
> can process the U,V records below -> internal arrays and then output UV
> product records in format requested by
> original (homework?) assignment.
> Exception: no UV record is to be output unless both U,V, 3d indexed records
> exist as positive non-zero weather
> data..
> I will post my Fortran code once someone posts a non-Fortran solution that
> matches the UV output format shown.
> .
> ====================
> time: 00 minutes
> ====================
> velocity U in m/s
>
> U ( 1, 1, 1) = 12.34
> U ( 1, 1, 2) = 10.00
> U ( 1, 1, 3) = 11.01 ...
|
| Show full article (3.04Kb) |
| no comments |
|
  |
Author: robinrobin Date: Nov 9, 2007 05:20
> On Nov 8, 12:07?pm, "David Frank" hotmail.com> wrote:
>> I have a Fortran solution to this problem and challenge the AWK/RUBY/PLI/ETC
> The file format would require new headers and trailers, but surely
> NAMELIST is the answer top this problem
NAMELIST doesn't print the subscripts.
It also requires and prints extra identification for each list.
|
| |
| no comments |
|
  |
Author: robinrobin Date: Nov 9, 2007 05:20
>
> "David Frank" hotmail.com> wrote in message
> news:13j5uvlp26i9i79@corp.supernews.com...
>>I have a Fortran solution to this problem and challenge the
>>AWK/RUBY/PLI/ETC advocates to post their solutions that
>> can process the U,V records below -> internal arrays and then output UV
>> product records in format requested by
>> original (homework?) assignment.
>> Exception: no UV record is to be output unless both U,V, 3d indexed
>> records exist as positive non-zero weather
>> data..
>> I will post my Fortran code once someone posts a non-Fortran solution that
>> matches the UV output format shown.
>
> As I dont really expect my challenge to be met, here is my solution using a
> type variable to simplify things.
>
> ! -----------------------
> program demo ! input array processing ...
|
| Show full article (3.21Kb) |
| no comments |
|
  |
Author: Rich TownsendRich Townsend Date: Nov 9, 2007 08:05
David Frank wrote:
> "David Frank" hotmail.com> wrote in message
> news:13j5uvlp26i9i79@corp.supernews.com...
>> I have a Fortran solution to this problem and challenge the
>> AWK/RUBY/PLI/ETC advocates to post their solutions that
>> can process the U,V records below -> internal arrays and then output UV
>> product records in format requested by
>> original (homework?) assignment.
>> Exception: no UV record is to be output unless both U,V, 3d indexed
>> records exist as positive non-zero weather
>> data..
>> I will post my Fortran code once someone posts a non-Fortran solution that
>> matches the UV output format shown.
>
> As I dont really expect my challenge to be met, here is my solution using a
> type variable to simplify things.
>
> ! -----------------------
> program demo ! input array processing
> implicit none ...
|
| Show full article (4.35Kb) |
| no comments |
|
  |
Author: David FrankDavid Frank Date: Nov 9, 2007 08:20
>
> Invalid decimal character ) was detected (unit=internal).
> (the relative position causing an error in a record = 8 )
> 1, 1, 1) = 12.34
> ?
> Error occurs at or near line 36 of MAIN__
My CVF6.6c compiler allows numeric inputs to be legally terminated by comma
or blank delimiters
AND apparently ")" when using list processing. I dont know what the rules
are in this regard, whats your compiler?
|
| |
| no comments |
|
  |
Author: Rich TownsendRich Townsend Date: Nov 9, 2007 20:07
David Frank wrote:
> "Rich Townsend" barVOIDtol.udel.edu> wrote in message
> news:fh20fv$2pu$1@scrotar.nss.udel.edu...
>
>> Invalid decimal character ) was detected (unit=internal).
>> (the relative position causing an error in a record = 8 )
>> 1, 1, 1) = 12.34
>> ?
>> Error occurs at or near line 36 of MAIN__
>
> My CVF6.6c compiler allows numeric inputs to be legally terminated by comma
> or blank delimiters
> AND apparently ")" when using list processing. I dont know what the rules
> are in this regard, whats your compiler?
>
>
It's a Fortran compiler
|
| |
| no comments |
|
  |
Author: David FrankDavid Frank Date: Nov 10, 2007 00:27
> David Frank wrote:
>> "Rich Townsend" barVOIDtol.udel.edu> wrote in message
>> news:fh20fv$2pu$1@scrotar.nss.udel.edu...
>>
>>> Invalid decimal character ) was detected (unit=internal).
>>> (the relative position causing an error in a record = 8 )
>>> 1, 1, 1) = 12.34
>>> ?
>>> Error occurs at or near line 36 of MAIN__
>>
>> My CVF6.6c compiler allows numeric inputs to be legally terminated by
>> comma or blank delimiters
>> AND apparently ")" when using list processing. I dont know what the
>> rules are in this regard, whats your compiler?
>>
>>
>
> It's a Fortran compiler ...
|
| Show full article (0.75Kb) |
| no comments |
|
  |
|
|
  |
Author: Bil KlebBil Kleb Date: Nov 10, 2007 11:41
David Frank wrote:
> I have a Fortran solution to this problem and challenge the AWK/RUBY/PLI/ETC
> advocates to post their solutions that
> can process the U,V records below -> internal arrays and then output UV
> product records in format requested by
> original (homework?) assignment.
Your output doesn't appear to format the "for time" delimiter
per the OP's request?
Anyway, as before, here is a Ruby rendition with some comments
to guide the way...
|
| Show full article (3.73Kb) |
| no comments |
|
|
|
|