You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running Smkreport with the AERMOD NONPOINT instruction, Smkreport will output the grid cell coordinates in lat-lon. These coordinates aren't matching what would be expected based on the Lambert coordinates and spheroid.
James Beidler will provide examples of correct inputs and outputs.
Here's the section of code that does the coordinate conversions:
It looks like you need to explicitly call the function INITSPHERES() before using XY2XY(). This should read the environment variable and then XY2XY will automatically use the value. I'd suggest adding the call to smkreport.f, right after the existing initialization functions:
When running Smkreport with the AERMOD NONPOINT instruction, Smkreport will output the grid cell coordinates in lat-lon. These coordinates aren't matching what would be expected based on the Lambert coordinates and spheroid.
James Beidler will provide examples of correct inputs and outputs.
Here's the section of code that does the coordinate conversions:
SMOKE/src/emqa/wrrepout.f
Lines 815 to 849 in ffa9e3c
According to the IOAPI documentation, the XY2XY method should take the environment variable IOAPI_ISPH into account: https://www.cmascenter.org/ioapi/documentation/all_versions/html/XY2XY.html
I suggest creating a simple Fortran program that calls XY2XY to see what the output values are, using James' example data.
The text was updated successfully, but these errors were encountered: