<p>I am using EDGAR V5 2015 emission files (edgar_v5_2015__0.1x0.1.nc) for WRF-Chem simulation. After giving the <strong>ncdump -v date,datesec edgar_v5_2015_CO_0.1x0.1.nc &gt; ncdump.log</strong> command, I learned that the date and datesec variables of the emission file are-
data:</p>
<p>date = 20150101, 20150201, 20150301, 20150401, 20150501, 20150601, 20150701,
20150801, 20150901, 20151001, 20151101, 20151201 ;</p>
<p>datesec = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;
}
Now I want to change the last date in the <strong>'date'</strong> array from <strong>'20151201'</strong> to <strong>'20151231'</strong>. Can anyone please suggest how to do that? Is there any software available for that? I searched online and found a link to <a href="https://stackoverflow.com/questions/59729526/how-to-edit-global-attributes-in-netcdf-file-with-nco">https://stackoverflow.com/questions/59729526/how-to-edit-global-attributes-in-netcdf-file-with-nco</a>, but there it was discussed how to edit global attributes in a netcdf file with NCO and the problem was different from mine. I have never used NCO, and I am having difficulties understanding what command I should use for this. Can anyone guide me in this regard? That will be very helpful for me. Thank you.</p>
<p>With regards,</p>
<p>Ankan</p>

CC BY-SA 4.0
2023-01-05T22:44:34.710Z
I think NCO is the way to go for your problem: Try http://research.jisao.washington.edu/data_sets/nco/ and also: https://nicojourdain.github.io/students_dir/students_netcdf_nco/
arkaia
CC BY-SA 4.0
2023-01-06T06:02:05.750Z
Thank you @arkaia for your response. I will check it out. Thank you again.
Ankan
<wrf-chem><emissions>
How to edit datesec array in edgar_v5_2015 emission files (netcdf format)?
Ankan
# How to edit datesec array in edgar_v5_2015 emission files (netcdf format)?

(Asked by: username_0 on 2023-01-05)

I am using EDGAR V5 2015 emission files (edgar\_v5\_2015\_\_0.1x0.1.nc) for WRF-Chem simulation. After giving the **ncdump -v date,datesec edgar\_v5\_2015\_CO\_0.1x0.1.nc > ncdump.log** command, I learned that the date and datesec variables of the emission file are-
data:

date = 20150101, 20150201, 20150301, 20150401, 20150501, 20150601, 20150701,
20150801, 20150901, 20151001, 20151101, 20151201 ;

datesec = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ;
}
Now I want to change the last date in the **'date'** array from **'20151201'** to **'20151231'**. Can anyone please suggest how to do that? Is there any software available for that? I searched online and found a link to <https://stackoverflow.com/questions/59729526/how-to-edit-global-attributes-in-netcdf-file-with-nco>, but there it was discussed how to edit global attributes in a netcdf file with NCO and the problem was different from mine. I have never used NCO, and I am having difficulties understanding what command I should use for this. Can anyone guide me in this regard? That will be very helpful for me. Thank you.

With regards,

username_0

**Tags:** wrf-chem, emissions

> **Comments:**
> **username_1**: I think NCO is the way to go for your problem: Try http://research.jisao.washington.edu/data_sets/nco/ and also: https://nicojourdain.github.io/students_dir/students_netcdf_nco/  
> **username_0**: Thank you @username_1 for your response. I will check it out. Thank you again.  

---

## 0 answers

