Ashar25 / RainyDay

0 stars 1 forks source link

Dumping json file contents to netcdf outputs #46

Closed danielbwright closed 7 months ago

danielbwright commented 9 months ago

Can we create a variable in the netcdf outputs (e.g., storm catalog files) so that contains the contents of the json file? That will improve reproducibility of an analysis.

Ashar25 commented 8 months ago

I have saved the contents of the JSON file in the attributes section of the NetCDF file rather than as a variable. One can access the attributes using "dataset.attrs" where "dataset" is the storm catalog file variable you are using.

danielbwright commented 8 months ago

Perfect!

- Daniel Wright Associate Professor Civil and Environmental Engineering University of Wisconsin-Madison


From: Ashar25 @.> Sent: Wednesday, January 10, 2024 11:01:40 AM To: Ashar25/RainyDay @.> Cc: Daniel Wright @.>; Author @.> Subject: Re: [Ashar25/RainyDay] Dumping json file contents to netcdf outputs (Issue #46)

I have saved the contents of the JSON file in the attributes section of the netcdf file rather than as a variable. Is that what you mean?

— Reply to this email directly, view it on GitHubhttps://github.com/Ashar25/RainyDay/issues/46#issuecomment-1885244184, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AECZV4LVN4DJDCQL3SU7Q5LYN3CPJAVCNFSM6AAAAABBNEQCDCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBVGI2DIMJYGQ. You are receiving this because you authored the thread.Message ID: @.***>