[ 
https://issues.apache.org/jira/browse/CLIMATE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15325933#comment-15325933
 ] 

Omkar Reddy commented on CLIMATE-787:
-------------------------------------

>> That could work but it will increase the project size. I mean the user will 
>> have to download these files even if he is never going to execute the tests. 
>> If each file is around 50mb then 200mb of files will be downloaded just for 
>> testing.

Pardon me if I am wrong, If you create the mock objects they too need to be in 
the project and the too take up some space right??

>> Btw could you provide me some links to these files? I found some of these 
>> files but they don't seem to work well with OCW. I could use these files for 
>> testing (at least for now).

[~jarifibrahim] This link might help [0]

This (OpenDAP) is a data source for obtaining datasets in netcdf formats. You 
can view the downloaded files using Panoply which is available at [1]

[0] 
http://disc.sci.gsfc.nasa.gov/recipes/?q=recipes/How-to-Obtain-Data-in-NetCDF-Format-via-OPeNDAP
[1] http://www.giss.nasa.gov/tools/panoply/

Thanks.

> Create mock objects for test_local.py
> -------------------------------------
>
>                 Key: CLIMATE-787
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-787
>             Project: Apache Open Climate Workbench
>          Issue Type: Test
>          Components: tests
>            Reporter: Ibrahim Jarif
>
> The current *test_local.py* file tests does not cover the following functions 
> in *local.py*:
> # {code}load_WRF_2d_files(){code}
> # {code}load_dataset_from_multiple_netcdf_files(){code}
> # {code}load_NLDAS_forcingA_files(){code}
> # {code}load_GPM_IMERG_files(){code}
> To test these functions, necessary datasets are required. Downloading the 
> dataset from the internet everytime the tests execute is not an efficient 
> strategy.
> Hence, create mock datasets and objects that can be used to test these 
> functions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to