Can't export quicfire files if I use landfire to build surface grid #8
|
I get a TimeoutError when I try to run export = Grids.from_domain_id(domain.id).create_export("QUIC-Fire") if I used .with_fuel_load_from_landfire() when building my surface grid. I get no error from the grid building itself, just when I try to export. I do not get the timeout error if I create my surface grid with uniform values. I have tried variations on my export line (export = my_grids.from_domain_id(domain.id).create_export("QUIC-Fire") and export = my_grids.create_export("QUIC-Fire") ) with the same results - works for uniform, not for landfire. It could absolutely be an error in my surface grid building code, but those lines throw no errors or warnings. I copied it below just in case it helps clarify what I'm talking about. Any advice or things to try would be much appreciated! surface_grid = (SurfaceGridBuilder(domain.id) |
Replies: 3 comments 6 replies
|
Hi @MaryKBrady can you please share the geoJSON that produces this error? |
|
@MaryKBrady Thanks. I have some time scheduled this morning to look at this. |
|
@MaryKBrady okay the problem is reproduced on my end. It only happens when you just have a surface grid as a part of your Grids resource. It works fine if you have a tree grid and a surface grid and export the Grids object to a QUIC-Fire export. That makes me think there is something going wrong in the export code where we handle array dimensionality. We do something funky where if you give us just the surface grid, we'll write that to a QUIC-Fire dat file with nz=1. Something is likely breaking there and I don't recall if we have a test that covers that case. I have to break on this to go to meetings for the day, but I'll come back to this later today or tomorrow. |
Yeah the problem actually is related to not having the groups field populated. The good news is that if you add:
that will fix your problem.
I'm debating how to handle this at large. I'm leaning towards making groups mandatory and then checking for the oneHour group when you export to QUIC-Fire. How are we supposed to decipher the fuelLoad quantity when we export to QUIC-Fire otherwise?
It also reveals something that I increasingly dislike about how we designed the API: it's opaque how we convert data in the surface grid to QUIC-Fire input files. This will only get worse as we add more data sources and need to be responsible for more of these conversions.
I think user…