Skip to content

Comments

ocw-parallel multicore support Python3 upgrade#1

Open
lewismc wants to merge 120 commits intoBrianWilson1:masterfrom
lewismc:master
Open

ocw-parallel multicore support Python3 upgrade#1
lewismc wants to merge 120 commits intoBrianWilson1:masterfrom
lewismc:master

Conversation

@lewismc
Copy link

@lewismc lewismc commented Sep 11, 2017

No description provided.

@lewismc
Copy link
Author

lewismc commented Sep 11, 2017

Hi @BrianWilson1 can you please merge this with your version of master then make an attempt to run the code.
Right now I get the following issue

lmcgibbn@LMC-056430 /usr/local/climate/ocw-parallel(master) $ python functions.py 1 "http://zipper.jpl.nasa.gov/dist/AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc" "tasmax" "wrf_bias_compared_to_knmi" "http://zipper.jpl.nasa.gov/dist/AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc" "tasmax"
Error in sitecustomize; set PYTHONVERBOSE for traceback:
KeyError: 'PYTHONPATH'
retrieveFile: Using cached file: ./AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc
loadDataset: File ./AFRICA_KNMI-RACMO2.2b_CTL_ERAINT_MM_50km_1989-2008_tasmax.nc has variable tasmax with shape (time, lat, lon): (240, 201, 194)
retrieveFile: Using cached file: ./AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc
loadDataset: File ./AFRICA_UC-WRF311_CTL_ERAINT_MM_50km-rg_1989-2008_tasmax.nc has variable tasmax with shape (time, lat, lon): (240, 201, 194)
Traceback (most recent call last):
  File "functions.py", line 235, in <module>
    print(main(sys.argv[1:]))
  File "functions.py", line 230, in main
    return test1(urlsAndVars, outputName)
  File "functions.py", line 210, in test1
    lats, lons, metrics = compareVariablesWithMetrics(urlsAndVars, ['Bias'], outputName, timedelta(days=365), 1, 1)
  File "functions.py", line 156, in compareVariablesWithMetrics
    datasets = temporalRegrids(datasets, timeRes)
  File "functions.py", line 66, in temporalRegrids
    return [temporalRegrid(d, timeRes) for d in datasets]
  File "functions.py", line 66, in <listcomp>
    return [temporalRegrid(d, timeRes) for d in datasets]
  File "functions.py", line 58, in temporalRegrid
    dataset = dsp.temporal_rebin(dataset, timeRes)
  File "/Users/lmcgibbn/miniconda3/lib/python3.6/site-packages/ocw-1.2.0-py3.6.egg/ocw/dataset_processor.py", line 124, in temporal_rebin
    target_dataset.values, target_dataset.times, temporal_resolution)
  File "/Users/lmcgibbn/miniconda3/lib/python3.6/site-packages/ocw-1.2.0-py3.6.egg/ocw/dataset_processor.py", line 1076, in _rcmes_calc_average_on_new_time_unit
    raise ValueError('Error: unknown unit type selected '
ValueError: Error: unknown unit type selected for time averaging: EXIT

agoodm and others added 22 commits September 25, 2017 10:35
… matplotlib and date starting at epoch. Added Apache license. Minor Pylint.
huikyole and others added 30 commits February 22, 2018 21:51
- plotter.draw_taylor_diagram has a new parameter, legend_size, to control the font size of the legend
…th xarray

- write_netcdf and write_netcdf_multiple_datasets_with_subregions have been updated
- now the time dimension is unlimited
- x and y are names for the dimensions for longitudinal and latitudinal coordinates
… datast_processor.deseasonalize_dataset

- An error about the output of dataset_processor.deseasonalize_dataset has been corrected
- utils.calculate_daily_climatology has been added
- dataset_processor._are_bounds_contained_by_dataset is applied only to the cases whose boundary type is 'rectangular'.
- the bug that used netCDF4.netcdftime attribute has been fixed
- Some of the changes made by PR apache#444 have been reverted to make the codes work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants