You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@climate.apache.org by "Cameron Goodale (JIRA)" <ji...@apache.org> on 2013/05/24 20:34:21 UTC

[jira] [Updated] (CLIMATE-53) db.extractData function should not change dir

     [ https://issues.apache.org/jira/browse/CLIMATE-53?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Cameron Goodale updated CLIMATE-53:
-----------------------------------

    Description: 
While testing my SubRegions support in issue CLIMATE-8 i found that using a relative file path in the SUB_REGION config section (example below) was actually being broken due to a previous function changing to a different directory which breaks the relative path.

[SUB_REGION]
# Sub Region(s) Full File Path
subRegionFile=../rcmes/resources/cordexSubRegions.txt

After some investigation i found that db.extractData was doing some os.chdir commands to make output directories to write out the NetCDF cache files.

The plan is to remove the change dir commands and use absolute paths instead to check and mkdirs as needed.

  was:
While testing my SubRegions support in issue CLIMATE-6 i found that using a relative file path in the SUB_REGION config section (example below) was actually being broken due to a previous function changing to a different directory which breaks the relative path.

[SUB_REGION]
# Sub Region(s) Full File Path
subRegionFile=../rcmes/resources/cordexSubRegions.txt

After some investigation i found that db.extractData was doing some os.chdir commands to make output directories to write out the NetCDF cache files.

The plan is to remove the change dir commands and use absolute paths instead to check and mkdirs as needed.

    
> db.extractData function should not change dir
> ---------------------------------------------
>
>                 Key: CLIMATE-53
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-53
>             Project: Apache Open Climate Workbench
>          Issue Type: Bug
>          Components: rcmet
>    Affects Versions: 0.1-incubating
>            Reporter: Cameron Goodale
>            Assignee: Cameron Goodale
>            Priority: Critical
>             Fix For: 0.1-incubating
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> While testing my SubRegions support in issue CLIMATE-8 i found that using a relative file path in the SUB_REGION config section (example below) was actually being broken due to a previous function changing to a different directory which breaks the relative path.
> [SUB_REGION]
> # Sub Region(s) Full File Path
> subRegionFile=../rcmes/resources/cordexSubRegions.txt
> After some investigation i found that db.extractData was doing some os.chdir commands to make output directories to write out the NetCDF cache files.
> The plan is to remove the change dir commands and use absolute paths instead to check and mkdirs as needed.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira