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

Cameron Goodale commented on CLIMATE-263:
-----------------------------------------

h4. Current Progress on working Code
{code}
(rcmes)chocobo2010:examples cgoodale$ python simple_model_to_model_bias.py 
Loading AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc into an 
OCW Dataset Object
KNMI_Dataset.values shape: (times, lats, lons) - (240, 201, 194) 

Loading AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc into an OCW 
Dataset Object
WRF_Dataset.values shape: (times, lats, lons) - (240, 201, 194) 

Temporally Rebinning the Datasets to an Annual Timestep
KNMI_Dataset.values shape: (20, 201, 194)
WRF_Dataset.values shape: (20, 201, 194) 


The KNMI_Dataset spatial bounds (min_lat, max_lat, min_lon, max_lon) are: 
(-45.759998, 42.240002, -24.639999, 60.279999)

The KNMI_Dataset spatial resolution (lat_resolution, lon_resolution) is: 
(0.43999863, 0.44000053)


Spatially Regridding the KNMI_Dataset...
Final shape of the KNMI_Dataset: 
(20, 88, 85)

Spatially Regridding the WRF_Dataset...
Final shape of the WRF_Dataset: 
(20, 88, 85)
{code}

Turns out I did stray a bit from the original plan of NOT rebinning/regridding 
the data.  Nothing is printed at the moment, but the code does complete a 
Bias() evaluation now.  Moving forward the plan is to add a couple more print 
statements to communicate what is happening in the code (remember this is just 
an example so print statements should be okay), then finish off with a call 
down to plotter.py for a diagram to display the Bias().
                
> Create local netCDF to local netCDF Evaluation Example using OCW Core API
> -------------------------------------------------------------------------
>
>                 Key: CLIMATE-263
>                 URL: https://issues.apache.org/jira/browse/CLIMATE-263
>             Project: Apache Open Climate Workbench
>          Issue Type: Sub-task
>          Components: general
>    Affects Versions: 0.2-incubating
>         Environment: *nix
>            Reporter: Cameron Goodale
>            Assignee: Cameron Goodale
>             Fix For: 0.3-incubating
>
>   Original Estimate: 2h
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> Local File to Local File Evaluation  (simplest, minimal data processing)
> The plan is to merely open the two files and convert into OCW Dataset Objects.
> Check the shape and Lat/Lon Ranges in Python (to show they don't need 
> processing)
> Then jump right into computing a Bias Evaluation and plotting the results

--
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

Reply via email to