kirenbahm / ENP_TOOLS

Scripts used to pre- and post-process data
0 stars 2 forks source link

Data correction Issue6 #22

Closed LAGO-Support closed 4 years ago

LAGO-Support commented 4 years ago

Fixes Issue 6, where stations outside the domain were not handled correctly in edge cases and added functionality to do warning check if RoCo doesn't match what is calculated from domain dfs2 file spatial axis. Currently commented if the ability to replace station RoCo with calculated one.

kirenbahm commented 4 years ago

Could not get code to run. Here is the output:


>> generateComputedMatlab
...exception in::extractComputedData(INI)

msgException =

    'Reference to non-existent field 'DomainDfs2'.

     Error in readFileCompCoord (line 8)
     dfs2Codes = readDomainGridCodes(INI.DomainDfs2);

     Error in extractComputedData (line 31)
         INI = readFileCompCoord(INI);

     Error in generateComputedMatlab (line 137)
         INI = extractComputedData(INI);'
LAGO-Support commented 4 years ago

I didn't have the file path declaration for the domain file. I placed the line for the file path in AnalysisCompare and generateComputedMatlab but, wasn't sure the exact file path on your system. As such, I left the string empty for now. If you enter the correct path for it, it will run. Tested with our local location of the model domain dfs2 and it works.

kirenbahm commented 4 years ago

I am closing this pull request, and have copied your edits into a new branch called DataCorrectionIssue6-new.