Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aullene landscape.nc Wind Layer Format #2

Closed
ConorHackett98 opened this issue Sep 2, 2022 · 2 comments
Closed

Aullene landscape.nc Wind Layer Format #2

ConorHackett98 opened this issue Sep 2, 2022 · 2 comments
Labels

Comments

@ConorHackett98
Copy link

Hi,

I've recently been trying to use ForeFire to model forest fires in different areas. So far, I've got the program running for the example fire in Aullene.

I've gathered data for the different areas but I'm not exactly sure how the wind layer in landscape.nc works. I was wondering if you might have a source to the original data or a document that explains how the wind layer in landscape.nc works.

Thank you.

@filippi
Copy link
Contributor

filippi commented Sep 2, 2022 via email

@ConorHackett98
Copy link
Author

ConorHackett98 commented Sep 15, 2022

Hi Jean,

Thank you for getting back to me and sorry for my late response. Since your last response I've been trying to use the tools/genForeFireCase.py file to generate a data file and I have a few questions about the values that are entered if you have a chance to reply.

For the domainProperties['SWx'], domainProperties['SWy'] and domainProperties['SWz'] are these coordinates using the same coordinates as the projection set in parametersProperties['projection']?
If so what unit of measurement are the domainProperties['Lx'], domainProperties['Ly'] and domainProperties['Lz'] using to measure the length?

I'm also not too sure what the parametersProperties['projectionproperties'] expects as an input, is it the South West coordinates using the set projection?

Finally, I have one more question about the wind. Does the wind["zonal"] and wind["meridian"] set the wind speeds in m/s from west to east and north to south respectively? Would setting these as negative values change the wind speeds from West to East and North to South, to East to West and Soth to North respectively in m/s?

I've also attached a few parameters from the file I created as an example.

Thanks again,
Conor.

import numpy as np
import sys

import netCDF4 as nc4

#Read genForeFireCase.py
exec(open("genForeFireCase.py").read())

#File name of the genereated netCDF File 
fout = "../swig/getTest/genTest.nc" #sys.argv[2]

#Domain Properties Set the Boundaries of the Map
domainProperties= {}
#SW = Sout West
domainProperties['SWx']  = 0
domainProperties['SWy']  = 0
domainProperties['SWz']  = 0
#L = Length
domainProperties['Lx']   = 511
domainProperties['Ly']   = 682
domainProperties['Lz']   = 0
#t0 = Initial Time
domainProperties['t0']   = 0
#Lt = Duration
domainProperties['Lt']   = np.Inf

#Details
parametersProperties= {}
parametersProperties['projectionproperties']  = "0,0" ;
parametersProperties['date']  = "2009-07-24_11:37:39" ;
parametersProperties['duration']  = 360000;
parametersProperties['projection']  = "EPSG:4326" ;
parametersProperties['refYear']  = 2013 ;
parametersProperties['refDay']  = 30 ;

#Set Fuel Map
fuelMap = np.zeros((682,511), dtype=int)

#Set Elevation Map
elevation = np.zeros((682,511), dtype=float)

#Set Wind Map
wind =  {}
#West to East
wind["zonal"]    = np.ones((682,511), dtype=float)
#North to South
wind["meridian"] = np.zeros((682,511), dtype=float)

#Create netCDF file
FiretoNC(fout, domainProperties,parametersProperties,fuelMap,elevation=elevation, wind=wind, fluxModelMap = None)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants