Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. cealess

    Opening several files

    ok now is working. Thanks. I have other doubt now. I have daily values for each month and I'm trying to write them in the output file but i want it to write it in order. I mean for example for jun i have data for the days 3 and 9 and for dec i have data for the days 15 and 30. For some months...
  2. cealess

    Opening several files

    thanks. It did not work. It is still passing values to the next file with data.
  3. cealess

    Opening several files

    ok, before the openif both status are 0 for all the files. No there are not 5000 entries for this each file. It is variable for each file, some can have 300 entries and other 50 or 5.
  4. cealess

    Opening several files

    thanks i did it and i am getting iostat values of -1 for all the input files (file2) and 0 for the output file(file1). could this be because i have files with no data as input files?
  5. cealess

    Opening several files

    Yes i tried that. It did not work, i am having the same problem. It's still passing the values to the next file. thanks again.
  6. cealess

    Opening several files

    That is right. Here is the code program y_m5 Implicit none ! Variables Integer :: i,j,z,aa,ab,ac,status,x,y Integer :: jancount, febcount,marcount,aprcount, maycount, juncount, julcount, augcount, sepcount, octcount, novcount, deccount,jmax Integer, Parameter ...
  7. cealess

    Opening several files

    Thaks. I figured out. It was a problem with the name of the files. Now, i am having another problem which is when it's reading the files is keeping and writing values from the previous file. For example for the year 66 is writing some values from the year 65 in the output and it keeps doing...
  8. cealess

    Opening several files

    Hi everyone. I am trying to open several files at once however it is not working and i cannot figure out why. I am writing out several files too and it's working. I'm getting the error that the files cannot be found (29). Thanks for the help Program open_da implicit none Integer :: x,j,z...
  9. cealess

    how to create several columns from one column?

    Thanks a lot. It is working now.
  10. cealess

    how to create several columns from one column?

    My input looks like is below and I am reading it as columns or vectors months and values. 1 315.336 1 315.33 1 315.296 1 315.31 1 315.31 1 315.322 1 315.324 1 315.332 1 315.32 1 315.311 1 315.314 1 315.328 1 315.326 1 315.365 1 315.353 1 315.341 1 315.354 1 315.353 1 315.338 1 315.328 1 315.333...
  11. cealess

    how to create several columns from one column?

    Thanks, I tried that one previously and got the columns showed before. Also, I tried it again and got similar format. Jan Feb 315.3360 0.0000 315.3300 0.0000 315.2960 0.0000 315.3100 0.0000 315.3100 0.0000 315.3220 0.0000 315.3240...
  12. cealess

    how to create several columns from one column?

    Here there is a part of the code. I am using other variables to try to write the data into column, not sure if it is the best idea or there is other way to write the file. Thanks for the help. Do j=1, nd If (month(j)== 1) Then jan=value(j) Else If...
  13. cealess

    how to create several columns from one column?

    The thing is that I am working with daily data which is in two columns, the first one tells me the month and the second one the value of the observation for that month.The problem is when i am trying to write the data to the same file it keeps writing down like in this. Jan Feb...

Part and Inventory Search

Back
Top