eguil / Density_bining

Density bining code
2 stars 5 forks source link

The time axis of output files are not correctly written #66

Closed durack1 closed 5 years ago

durack1 commented 6 years ago

This example output file cmip5.ACCESS1-0.rcp85.r1i1p1.an.ocn.Omon.density.ver-1.nc has not correctly pulled across the time axis entries, rather than 2006-07-02 12 to 2100-07-02 12 we have:

[duro@crunch rcp85]$ ncdump -ct cmip5.ACCESS1-0.rcp85.r1i1p1.an.ocn.Omon.density.ver-1.nc                                                                                                                   
netcdf cmip5.ACCESS1-0.rcp85.r1i1p1.an.ocn.Omon.density.ver-1 {                                                                
dimensions:                                                                                                                    
        time = UNLIMITED ; // (95 currently)                                                                                   
        bound = 2 ;                                                                                                            
        lev = 61 ;                                                                                                             
        latitude = 180 ;                                                                                                       
        longitude = 360 ;                                                                                                      
        basin = 4 ;                                                                                                            
variables:                                                                                                                     
        double time(time) ;                                                                                                    
...                                                                 

// global attributes:
                :Conventions = "CF-1.0" ;
                :institution = "Program for Climate Model Diagnosis and Intercomparison (LLNL)" ;
...                                                                  
data:                                                                                                                          

 time = "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", 
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01",     
    "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01", "0001-01-01" ;    

 lev = 19, 19.2000007629395, 19.4000015258789, 19.6000022888184,
eguil commented 5 years ago

Looks resolved