Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,5 @@
**.a
**.mod
driver/run/cosp2_test
driver/data/inputs/UKMO/*_global.nc
driver/data/outputs/UKMO/*kgo.v*.nc
driver/data/outputs/UKMO/*.nc
driver/data/outputs/UKMO/*.png
!driver/data/outputs/cosp2_output_um.gfortran.kgo.nc
!driver/data/outputs/UKMO/*.out
**/.ipynb_checkpoints/
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# About this fork
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When the pull request is merged the README will also be updated - so it shouldn't refer to "this fork" or too specifically to the new simulators.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comment.
For the time being, I’d like to leave this message here for PR documentation purposes; I will remove it once the code review has progressed.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your comment. For the time being, I’d like to leave this message here for PR documentation purposes; I will remove it once the code review has progressed.

Given that this change requires additional variables that are not available in the existing input data, it will require a new regression test that uses MIROC input data (e.g. see changes in .github/workflows in #127). Section Running the offline tests of the Readme is probably the right place where this can be documented.


This is development code for Doppler velocity simulator, accomodating to EarthCARE's CPR. Therefore, the codes are subject to change. This is being prepared for merging into COSP2.

The developing codes are stored in `dplrw_src`, and links are provided so that each can be referenced from its original directory.

The description paper with example results are published as [Nakamuta et al. 2026, JAMES](https://agupubs.onlinelibrary.wiley.com/doi/10.1029/2025MS004958).

## How to use this fork

1. To make input dataset in NetCDF format, execute `exe.gt2input.out` in `driver/data/work`. This procedure is needed because vertical air motion and cumulus mass flux is required as additional input variables from the parent model. The inpud dataset is made by MIROC6.
2. Run `make driver`.
3. Get input data made by MIROC6 from [here](https://github.com/yuhi-n/ECdemo-data). Put `demo.tar.xz` in `driver/data` and unzip it `tar Jxvf demo.tar.xz`. (This also contains example output data.)
4. Run `./cosp2_test cosp2_MIROCtest.txt`, and a result file is generated in `driver/data/MIROC_outputs/ctrl_MIROC-COSP2.nc`.
5. Python notebooks for visualization are stored in `driver/check`.

# About COSP

The CFMIP Observation Simulator Package (COSP) takes the models representation of the
Expand Down
4 changes: 2 additions & 2 deletions build/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ cosp_rttov_utilSTUB.o : cosp_kinds.o


# Example subcolumn generaton and mapping to optical properties, following COSP 1.4
SUBCOL_OBJS = mo_rng.o scops.o prec_scops.o cosp_utils.o cosp_optics.o quickbeam_optics.o array_lib.o math_lib.o mrgrnk.o optics_lib.o cosp_errorHandling.o
SUBCOL_OBJS = mo_rng.o scops.o prec_scops.o cosp_optics.o quickbeam_optics.o cosp_utils.o array_lib.o math_lib.o mrgrnk.o optics_lib.o cosp_errorHandling.o
libsubcol.a: $(SUBCOL_OBJS) libcosp.a
ar -rvs libsubcol.a $(SUBCOL_OBJS)

Expand All @@ -150,7 +150,7 @@ optics_lib.o : cosp_kinds.o cosp_errorHandling.o
quickbeam_optics.o: cosp_kinds.o cosp_errorHandling.o cosp_constants.o cosp_config.o mrgrnk.o array_lib.o optics_lib.o math_lib.o quickbeam.o cosp_stats.o
scops.o : cosp_kinds.o cosp_errorHandling.o mo_rng.o
prec_scops.o : cosp_kinds.o cosp_config.o
cosp_utils.o : cosp_kinds.o cosp_config.o
cosp_utils.o : cosp_kinds.o cosp_config.o quickbeam_optics.o
cosp_optics.o: cosp_kinds.o cosp_config.o cosp_constants.o modis_simulator.o
mo_rng.o : cosp_kinds.o

Expand Down
260 changes: 260 additions & 0 deletions driver/check/COSP2_global-map.ipynb

Large diffs are not rendered by default.

208 changes: 208 additions & 0 deletions driver/check/COSP2_zonal-mean.ipynb

Large diffs are not rendered by default.

Loading
Loading