Questions about reading USG generated concentration file that has multiple components #1930
-
Hello, my USG concentration files have two components (1 - Sulfate, 2 - Selenium). When I used flopy binary module to read the file, it only created the object for the second concentration. How do I get the object created for the first component?
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
I don't think this is possible with flopy in its current form. I suggest you use mfusg's "multifile" option to save one con file for each species. |
Beta Was this translation helpful? Give feedback.
-
looks like the files are not flat binary files. If not written using |
Beta Was this translation helpful? Give feedback.
-
@cnicol-gwlogic Chris, you helped me with this last year by referring me to a link posted maybe two years ago.
My model has 5 layers and 65 stress periods. To meet my own requirements, I created a dictionary of sp and totim. I am sure it can be done in a smarter way.
If you have more than two species, I guess you can use Worth mentioning that I tried to use ucnobj.get_times( ) and ucnobj.get_kstpkper( ) but both results looked suspicious, while results from hdobj.get_times( ) and hdobj.get_kstpkper( ) are correct. I just tested the code and it still works. Hope it helps. |
Beta Was this translation helpful? Give feedback.
-
Sorry for this confusion. This was a USG-Transport issue. We had changed to using UNFORMATTED form and STREAM access as an approach that was "compatible" with both Ifort and GNU compilers. Unfortunately, that created some issues with some of the files depending on how the other options for opening files were handled. I have changed it back to BINARY form and SEQUENTIAL access and the code should be on the GSI website in a day or two. |
Beta Was this translation helpful? Give feedback.
Sorry for this confusion. This was a USG-Transport issue. We had changed to using UNFORMATTED form and STREAM access as an approach that was "compatible" with both Ifort and GNU compilers. Unfortunately, that created some issues with some of the files depending on how the other options for opening files were handled. I have changed it back to BINARY form and SEQUENTIAL access and the code should be on the GSI website in a day or two.