jerabaul29 / data_release_sea_ice_drift_waves_in_ice_marginal_ice_zone_2022

2022 release of sea ice drift and waves in ice data in the marginal ice zone
MIT License
9 stars 1 forks source link

TODO: apply the comments from TH #7

Closed jerabaul29 closed 2 years ago

jerabaul29 commented 2 years ago

Apply the comments from: https://github.com/jerabaul29/data_release_waves_in_ice_2018_2021/issues/60 from hevgyrt:

Here is a short snippet. An example of feature type trajectory dataset (what it contains and is structured) in the CF convention is found here

ncout = Dataset(test_fname, mode='r+') # r+ for append mode

globalAttribs = {}
globalAttribs['featureType'] = "trajectory"

ncout.setncatts(globalAttribs)
ncout.sync()
ncout.close()

Should only apply to the datasets that are trajectories, i.e.: to the generate_nc_dataset/create_nc_dataset.py scripts of:

├── 2017_April_Spitsbergen_Bank ├── 2018_March_Greenland ├── 2018_September_Barents ├── 2018_Spitsbergen_Bank ├── 2020_January_Antarctic_Davis ├── 2020_July_Yamal ├── 2020_March_SvalbardGronfjorden ├── 2020_November_Antarctic_Casey ├── 2021_February_Barents ├── 2021_September_Laptev_sea └── 2022_March_East_Greenland

jerabaul29 commented 2 years ago

@paulina-t that would be a nice small task for you if ok / interested - we can discuss this afternoon. You would then i) create a new branch, ii) apply the changes there and re generate the files, iii) open a pull request that I could merge in main back :) .

jerabaul29 commented 2 years ago

done through #8 .