modifying a single value in an netcdf array variable using nco

Help
e ddc
2014-01-30
2014-01-30
  • e ddc
    e ddc
    2014-01-30

    Hello,

    I would like to change the value of rh(1305,0,1) bellow from its current
    value to a different value. I do not see any easy way to do this using NCO
    commands, but I am willing to use a complex or complicated way if you could
    point me the way to do it.

    Thank a lot in advance.

    Regards,
    Eduardo

    netcdf rh_Lmon_IPSL-CM5A-LR_rcp26_r1i1p1_200601-230012 {
    dimensions:
    time = UNLIMITED ; // (3540 currently)
    lat = 96 ;
    lon = 96 ;
    bnds = 2 ;
    variables:
    double time(time) ;
    time:bounds = "time_bnds" ;
    time:units = "days since 2006-01-01 00:00:00" ;
    time:calendar = "noleap" ;
    time:axis = "T" ;
    time:long_name = "time" ;
    time:standard_name = "time" ;
    double time_bnds(time, bnds) ;
    double lat(lat) ;
    lat:bounds = "lat_bnds" ;
    lat:units = "degrees_north" ;
    lat:axis = "Y" ;
    lat:long_name = "latitude" ;
    lat:standard_name = "latitude" ;
    double lat_bnds(lat, bnds) ;
    double lon(lon) ;
    lon:bounds = "lon_bnds" ;
    lon:units = "degrees_east" ;
    lon:axis = "X" ;
    lon:long_name = "longitude" ;
    lon:standard_name = "longitude" ;
    double lon_bnds(lon, bnds) ;
    float rh(time, lat, lon) ;
    rh:standard_name = "heterotrophic_respiration_carbon_flux" ;
    rh:long_name = "Carbon Mass Flux into Atmosphere due to
    Heterotrophic Respiration on Land" ;
    rh:units = "kg m-2 s-1" ;
    rh:original_name = "rh" ;
    rh:cell_methods = "time: mean (interval: 30 minutes) area:
    mean where land" ;
    rh:cell_measures = "area: areacella" ;
    rh:history = "2011-06-24T03:16:38Z altered by CMOR:
    replaced missing value flag (9.96921e+36) with standard missing value
    (1e+20). 2011-06-24T03:16:45Z altered by CMOR: Inverted axis: lat." ;
    rh:missing_value = 1.e+20f ;
    rh:_FillValue = 1.e+20f ;
    rh:associated_files = "baseURL:
    http://cmip-pcmdi.llnl.gov/CMIP5/dataLocation gridspecFile:
    gridspec_land_fx_IPSL-CM5A-LR_rcp26_r0i0p0.nc areacella:
    areacella_fx_IPSL-CM5A-LR_rcp26_r0i0p0.nc" ;

    // global attributes:
    :institution = "IPSL (Institut Pierre Simon Laplace, Paris,
    France)" ;
    :institute_id = "IPSL" ;
    :experiment_id = "rcp26" ;
    :source = "IPSL-CM5A-LR (2010) : atmos : LMDZ4 (LMDZ4_v5,
    96x95x39); ocean : ORCA2 (NEMOV2_3, 2x2L31); seaIce : LIM2 (NEMOV2_3);
    ocnBgchem : PISCES (NEMOV2_3); land : ORCHIDEE (orchidee_1_9_4_AR5)" ;
    :model_id = "IPSL-CM5A-LR" ;
    :forcing = "Nat,Ant,GHG,SA,Oz,LU,SS,Ds,BC,MD,OC,AA" ;
    :parent_experiment_id = "historical" ;
    :parent_experiment_rip = "r1i1p1" ;
    :branch_time = 2005. ;
    :contact = "ipsl-cmip5 at ipsl.jussieu.fr Data manager :
    Sebastien Denvil" ;
    :comment = "This 21th century simulation has been forced by
    prescribed concentration following the rcp 2.6 scenario." ;
    :references = "Model documentation and further reference
    available here : http://icmc.ipsl.fr" ;
    :initialization_method = 1 ;
    :physics_version = 1 ;
    :tracking_id = "2fad1b0f-e2c8-46ec-b5b3-660fc1e05153" ;
    :product = "output" ;
    :experiment = "RCP2.6" ;
    :frequency = "mon" ;
    :creation_date = "2011-06-24T03:16:45Z" ;
    :history = "2011-06-24T03:16:45Z CMOR rewrote data to
    comply with CF standards and CMIP5 requirements." ;
    :Conventions = "CF-1.4" ;
    :project_id = "CMIP5" ;
    :table_id = "Table Lmon (31 January 2011)
    a84ae296f75bb85ff61668fac8fcf090" ;
    :title = "IPSL-CM5A-LR model output prepared for CMIP5
    RCP2.6" ;
    :parent_experiment = "historical" ;
    :modeling_realm = "land" ;
    :realization = 1 ;
    :cmor_version = "2.5.1" ;
    }