Skip to content

CF detection seems overly restrictive #44

Description

@zmoon

[CF-DETECT][WARNING] cf_read_file_metadata: Non-CF/COARDS Conventions detected: CF-1.0 for file: /scratch3/NCEPDEV/nems/role.epic/ursa/UFS_SRW_data/develop/fix/fix_emis/HTAP/v2015-03/PM2.5/EDGAR_HTAP_PM2.5_ENERGY.generic.01x01.nc

Details
netcdf EDGAR_HTAP_PM2.5_ENERGY.generic.01x01 {
dimensions:
        lon = 3600 ;
        lat = 1800 ;
        time = UNLIMITED ; // (36 currently)
variables:
        float lon(lon) ;
                lon:standard_name = "longitude" ;
                lon:long_name = "longitude" ;
                lon:units = "degrees_east" ;
                lon:axis = "X" ;
        float lat(lat) ;
                lat:standard_name = "latitude" ;
                lat:long_name = "latitude" ;
                lat:units = "degrees_north" ;
                lat:axis = "Y" ;
        double time(time) ;
                time:standard_name = "time" ;
                time:long_name = "Time" ;
                time:units = "hours since 2008-01-01 00:00:00" ;
                time:calendar = "standard" ;
        float emi_pm2.5(time, lat, lon) ;
                emi_pm2.5:standard_name = "tendency_of_atmosphere_mass_content_of_pm2p5_aerosol_due_to_emission" ;
                emi_pm2.5:long_name = "Emissions of PM2.5" ;
                emi_pm2.5:units = "kg/m2/s" ;
                emi_pm2.5:cell_method = "time: mean (interval: 1 month,  31 days)" ;
                emi_pm2.5:total_emi_pm2.5 = "   2.70501e+008 kg/month" ;
                emi_pm2.5:comment = " (see http://edgar.jrc.ec.europa.eu/methodology.php#12sou for the definitions of the single sources)" ;

// global attributes:
                :CDI = "Climate Data Interface version 1.6.4 (http://code.zmaw.de/projects/cdi)" ;
                :Conventions = "CF-1.0" ;
                :history = "Wed Mar 04 12:11:22 2015: cdo mergetime edgar_HTAP_PM2.5_emi_ENERGY_2008.0.1x0.1.nc edgar_HTAP_PM2.5_emi_ENERGY_2009.0.1x0.1.nc edgar_HTAP_PM2.5_emi_ENERGY_2010.0.1x0.1.nc tmp_all.nc\n",
                        "Wed Mar 04 11:54:37 2015: cdo mergetime tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_1.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_10.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_11.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_12.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_2.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_3.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_4.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_5.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_6.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_7.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_8.0.1x0.1.nc tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_9.0.1x0.1.nc edgar_HTAP_PM2.5_emi_ENERGY_2010.0.1x0.1.nc\n",
                        "Wed Mar  4 11:53:26 2015: ncecat -u time tmp.nc out.nc\n",
                        "Wed Mar  4 11:53:25 2015: ncwa -a time tmp.edgar_HTAP_PM2.5_emi_ENERGY_2010_9.0.1x0.1.nc tmp.nc\n",
                        "MICS Asia, EPA US/Canada, EMEP/TNO Europe, EDGARv4.3 Rest of the world on Tue Dec 17 15:23:25 2013" ;
                :source = "http://edgar.jrc.ec.europa.eu/htap_v2/" ;
                :institution = "European Commission, Joint Research Centre" ;
                :title = "Monthly Mean Emissions of PM2.5" ;
                :references = "EC, JRC / US EPA, HTAP_V2. http://edgar.jrc.ec.europa.eu/htap/EDGAR-HTAP_v1_final_jan2012.pdf" ;
                :contact = "greet.maenhout@jrc.ec.europa.eu" ;
                :nco_openmp_thread_number = 1 ;
                :CDO = "Climate Data Operators version 1.6.4 (http://code.zmaw.de/projects/cdo)" ;
}

This happens because only certain versions are accepted:

if (index(str_val(1:att_len), 'CF-1.6') > 0 .or. &
index(str_val(1:att_len), 'CF-1.7') > 0 .or. &
index(str_val(1:att_len), 'CF-1.8') > 0 .or. &
index(str_val(1:att_len), 'CF-1.9') > 0) then

whereas really I imagine any CF-1.x should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions