Skip to content

Initialise ice glorys#606

Merged
docguibou merged 10 commits intodevelopfrom
initialise_ice_GLORYS
Sep 1, 2022
Merged

Initialise ice glorys#606
docguibou merged 10 commits intodevelopfrom
initialise_ice_GLORYS

Conversation

@docguibou
Copy link
Copy Markdown
Contributor

Adding the possibility to initialize sea ice with GLORYS12.
For use in the Antarctic. Does not use a snow climatology (snow thickness is 0).

Compiles and run

Copy link
Copy Markdown
Contributor

@tdcwilliams tdcwilliams left a comment

Choose a reason for hiding this comment

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

looks fine, but some suggestions for simplifying

Comment thread env_compile_intel_linux.bash Outdated
Comment thread model/finiteelement.cpp Outdated
M_ice_amsr2_elements_dataset.interpolated=false;
M_ice_cs2_smos_elements_dataset.interpolated=false;
M_ice_smos_elements_dataset.interpolated=false;
M_ice_glorys12_elements_dataset.interpolated=false;
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.

not needed for initialising dataset

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

But other initialising datasets are here too, no ?

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.

yep, but they don't need to be

Comment thread model/finiteelement.cpp Outdated
M_ice_nic_weekly_elements_dataset=DataSet("ice_nic_weekly_elements");
M_ice_cs2_smos_elements_dataset=DataSet("ice_cs2_smos_elements");
M_ice_smos_elements_dataset=DataSet("ice_smos_elements");
M_ice_glorys12_elements_dataset=DataSet("glorys12_elements");
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.

could move definition to glorys12ice function since it is just used at init time (doesn't need to be a global var)

Comment thread model/finiteelement.cpp

void
FiniteElement::glorys12Ice()
{
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.

add dataset definition here

Comment thread model/finiteelement.cpp Outdated
Comment on lines +13039 to +13043
M_conc[i] = (tmp_var>1e-14) ? tmp_var : 0.; // TOPAZ puts very small values instead of 0.
tmp_var=M_init_thick[i];
M_thick[i] = tmp_var ;
tmp_var=0.;//This is a test for the southern ocean
M_snow_thick[i] = (tmp_var>1e-14) ? tmp_var : 0.; // TOPAZ puts very small values instead of 0.
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.

change reference to TOPAZ in comment?

Comment thread model/finiteelement.hpp Outdated
Dataset M_ice_nic_weekly_elements_dataset;
Dataset M_ice_cs2_smos_elements_dataset;
Dataset M_ice_smos_elements_dataset;
Dataset M_ice_glorys12_elements_dataset;
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.

don't need a global

Guillaume Boutin and others added 4 commits August 30, 2022 15:20
Accidental commit of a backup file
Accidental commit of a backup file.
Copy link
Copy Markdown
Member

@einola einola left a comment

Choose a reason for hiding this comment

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

Looks fine, but I'm confused about the apparent lack of snow in GLORYS. So, if there's snow in the files, then I added a few comments on how that should be handled.

Comment thread model/finiteelement.cpp
FiniteElement::glorys12Ice()
{
// Initialize the sea ice conc. and thick. from GLORYS12 reanalysis or forecast.
// Snow thickness is 0 by default (used in southern ocean, with no equivalent of Warren Climatology)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Isn't there snow thickness in GLORYS? It should be because it's a reanalysis. No need for Warren, just read directly from the GLORYS file.

(I know we talked about this, but it seems my brain was in a low gear)

Comment thread model/dataset.cpp
Comment thread model/dataset.cpp
Comment thread model/dataset.cpp
Comment thread model/finiteelement.cpp
Dataset ice_glorys12_elements_dataset = DataSet("glorys12_elements");
external_data M_init_conc = ExternalData(&ice_glorys12_elements_dataset,M_mesh,3,false,time_init);
external_data M_init_thick = ExternalData(&ice_glorys12_elements_dataset,M_mesh,4,false,time_init);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If there's snow in the file then:

Suggested change
external_data M_init_snowthick = ExternalData(&ice_glorys12_elements_dataset,M_mesh,5,false,time_init);

Comment thread model/finiteelement.cpp
Comment on lines +13056 to +13057
tmp_var=0.;//This is a test for the southern ocean
M_snow_thick[i] = (tmp_var>1e-14) ? tmp_var : 0.;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If there's snow in the file then:

Suggested change
tmp_var=0.;//This is a test for the southern ocean
M_snow_thick[i] = (tmp_var>1e-14) ? tmp_var : 0.;
tmp_var=M_init_snowthick[i];
M_snow_thick[i] = (tmp_var>1e-14) ? tmp_var : 0.;

@docguibou docguibou force-pushed the initialise_ice_GLORYS branch from 52d7722 to c4222c3 Compare September 1, 2022 09:19
@docguibou docguibou merged commit 83d0636 into develop Sep 1, 2022
@docguibou
Copy link
Copy Markdown
Contributor Author

docguibou commented Oct 11, 2022 via email

@docguibou
Copy link
Copy Markdown
Contributor Author

docguibou commented Oct 11, 2022 via email

@einola
Copy link
Copy Markdown
Member

einola commented Oct 11, 2022

I see. It's strange that they don't output the snow - but maybe it's just really bad!?! :)

Would be nice to send a request to them, if you know how to do that.

@einola einola deleted the initialise_ice_GLORYS branch January 30, 2025 05:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants