Proceso de conversión de rasters a file.cio y archivos vinculados para alimentar al modelo SWAT+

48 views
Skip to first unread message

JHON GESELL VILLANUEVA PORTELLA

unread,
Jul 5, 2023, 2:08:51 AM7/5/23
to Latin American SWAT Users Group
Buen día a todos, deseo identificar a partir del código fuente el proceso de conversión de los archivos raster (.tif) para obtener los archivos que alimentan al motor de calculo de SWAT+ (exactamente para los archivos soils.sol , landuse.lum y topography.hyd) accedí al código fuente de SWAT+(.f90), SWATPlusEditor (.py y .vue) y QSWAT (.py) en los cuales hice una búsqueda exhaustiva, mi interpretación es que existe un estado de dependencia entre QSWAT y SWATPlusEditor al momento de trabajar de forma integrada, es decir, QSWAT administra todos los recursos para hacer la simulación con SWAT, pero estos son inicializados desde SWATPlusEditor , aquí se generan los archivos con las extensiones de mi interés y el proceso de conversión me parece se encuentra en el código fuente de QSWAT.

Quisiera me comenten lo que conozcan o interpreten sobre este proceso, gracias de antemano por su tiempo brindado.

George, Christopher

unread,
Jul 5, 2023, 7:22:16 AM7/5/23
to JHON GESELL VILLANUEVA PORTELLA, Latin American SWAT Users Group
Please excuse me writing in English.  QSWAT+ generates a number of tables in the project database.  Some of these (sol, sol_layer, plant and urban) come from reference data about soils and landuses.  Others, those starting with gis_, come from analysing the input maps and user choices.  The SWATPlusEditor uses these tables and user editing choices to generate the input files for SWAT+, including those you mention.

I hope this helps.
Chris



From: latin-american-...@googlegroups.com <latin-american-...@googlegroups.com> on behalf of JHON GESELL VILLANUEVA PORTELLA <unms...@gmail.com>
Sent: 05 July 2023 07:08
To: Latin American SWAT Users Group <latin-american-...@googlegroups.com>
Subject: Proceso de conversión de rasters a file.cio y archivos vinculados para alimentar al modelo SWAT+
 
Caution: This email may have originated from outside the organization. Please exercise additional caution with any links and attachments.

Buen día a todos, deseo identificar a partir del código fuente el proceso de conversión de los archivos raster (.tif) para obtener los archivos que alimentan al motor de calculo de SWAT+ (exactamente para los archivos soils.sol , landuse.lum y topography.hyd) accedí al código fuente de SWAT+(.f90), SWATPlusEditor (.py y .vue) y QSWAT (.py) en los cuales hice una búsqueda exhaustiva, mi interpretación es que existe un estado de dependencia entre QSWAT y SWATPlusEditor al momento de trabajar de forma integrada, es decir, QSWAT administra todos los recursos para hacer la simulación con SWAT, pero estos son inicializados desde SWATPlusEditor , aquí se generan los archivos con las extensiones de mi interés y el proceso de conversión me parece se encuentra en el código fuente de QSWAT.

Quisiera me comenten lo que conozcan o interpreten sobre este proceso, gracias de antemano por su tiempo brindado.

--
--
You received this message because you are subscribed to the Google Groups
"Latin American SWAT Users Group" group.
 
To unsubscribe from this group, send email to:
latin-american-swat-u...@googlegroups.com
 
http://swatmodel.tamu.edu/

---
You received this message because you are subscribed to the Google Groups "Latin American SWAT Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to latin-american-swat-u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/latin-american-swat-users-group/26c972ec-148b-4d6b-8f95-997da766be06n%40googlegroups.com.

JHON GESELL VILLANUEVA PORTELLA

unread,
May 7, 2024, 2:51:24 PM5/7/24
to Latin American SWAT Users Group
Dear Chris,

Thank you for your response and assistance. I have reviewed the options you mentioned, and yet I am still experiencing difficulties in achieving the process of transformation or generation of the necessary input files to feed the SWAT+ calculation engine.

The modular complexity and abundance of code in QSWAT+ make it challenging to separate the user interface (GUI) from the source code. My aim is to create a console-level version for an operational model, and I wonder if simply disabling the GUI import would suffice.

I have also attempted to extract fragments of code from QSWAT+ to create a GUI-free version, but I am encountering challenges in this process as well. Recently, I have been meticulously tracking all objects, classes, and methods constituting the scripts within object-oriented programming.

How could I expedite my input file generation process for the SWAT+ calculation engine using the existing content in QSWAT+? I understand that QSWAT+ generates project folders for each simulation and initializes variables or datasets, but it seems that SWATPlus Editor is where these parameters are loaded before simulation.

I appreciate any further guidance you can provide.

Warm regards,
Jhon
Reply all
Reply to author
Forward
0 new messages