<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Thanks Dimitri. I will try your suggestions and report.<div class=""><br class=""></div><div class="">Unfortunately, singlecpuio is not allowed using the flt pkg.</div><div class=""><br class=""></div><div class="">Cheers,</div><div class=""><br class=""><div class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;">Paola<br class=""><br class=""><span style="font-size: 12px;" class="">----------------------------------------------<br class="">Paola Cessi <br class="">Scripps Institution of Oceanography <br class="">9500 Gilman Drive #0213 <br class="">La Jolla, CA 92093-0213<br class="">USA <br class="">Tel: +1 858 534 0622 Fax: +1 858 534 8045<br class="">e-mail: <a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a> Web: <a href="http://www-pord.ucsd.edu/~pcessi" class="">http://www-pord.ucsd.edu/~pcessi</a><br class=""><br class="">Delivery address (Fed-Ex, DHL, UPS, etc.):<br class="">Paola Cessi<br class="">University of California San Diego<br class="">Keck Center - Room 366<br class="">8851 Shellback Way<br class="">La Jolla, CA 92093-0213<br class="">USA</span></div><div style="color: rgb(0, 0, 0); font-variant-caps: normal; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><span style="font-size: 12px;" class=""><br class=""></span></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline">
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On May 11, 2020, at 6:56 PM, Dimitris Menemenlis <<a href="mailto:dmenemenlis@gmail.com" class="">dmenemenlis@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">oh, I am not familiar to pkg/flt, sorry</div><div class="">others please pitch in with a better answer</div><div class=""><br class=""></div><div class="">if I had to do this, I would use the routines:</div><div class=""><div class=""><a href="https://urldefense.com/v3/__https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/readbin.m__;!!Mih3wA!SZ0xdLx54X4SV4eZzToBlDQuM1cpIgv3QwwlJ98mAEod4D7sdNZDAG7Uv5Fb2w$" class="">https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/readbin.m</a></div><div class=""><a href="https://urldefense.com/v3/__https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/writebin.m__;!!Mih3wA!SZ0xdLx54X4SV4eZzToBlDQuM1cpIgv3QwwlJ98mAEod4D7sdNZDAG5YP7c36Q$" class="">https://github.com/MITgcm/MITgcm/blob/master/utils/matlab/cs_grid/read_cs/writebin.m</a></div><div class="">and try to read/write as follows:</div><div class=""><br class=""></div><div class="">field9=readbin('pickup_flt.ckptA.001.001.data’,[96 9],1,’real*8’,8);</div><div class=""><div class="">% modify field9 as needed</div><div class="">writebin('pickup_flt.ckptA.001.001.data’,field9,1,’real*8’,8);</div><div class=""><br class=""></div><div class="">why are you using tiled pickup files?</div><div class="">are you working on an old cluster with separate disks?</div><div class="">or is this a pkg/flt requirement?</div><div class="">if you use globalfiles or singlecpuio options,</div><div class="">you would get a single pickup file per time easier to work with</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""><blockquote type="cite" class=""><div class="">On May 11, 2020, at 5:18 PM, Paola Cessi <<a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" class="">
<div class="">
<div class="" style="word-wrap:break-word">Hi Dimitri,
<div class=""><br class="">
</div>
<div class="">I am using matlab. These are pickups files from the flt package, so I am not sure they are the same as the regular MITgcm pickups. They are written and read with the mdsio package.</div>
<div class=""><br class="">
</div>
<div class="" style="orphans:2; widows:2">I _think_ that what I need to change is the 9th entry of the “arr" array, i.e. arr(9) written/read by the routines
<span class="x_final-path" style="background-color:rgb(255,255,255); color:rgb(36,41,46)">
mdsio_wr_rec_rl.F</span><span class="" style="color:rgb(88,96,105); background-color:rgb(255,255,255)">/</span><span class="" style="background-color:rgb(255,255,255); color:rgb(36,41,46)">mdsio_rd_rec_rl.F. That said, I don’t understand how to locate this
variable given the .meta file (attached)</span><span class="" style="font-size:16px; background-color:rgb(255,255,255); color:rgb(36,41,46)">.</span></div>
<div class="" style="orphans:2; widows:2"><span class="" style="font-size:16px; background-color:rgb(255,255,255); color:rgb(36,41,46)"><br class="">
</span></div>
<div class="" style="orphans:2; widows:2"><font color="#24292e" class=""><span class="" style="background-color:rgb(255,255,255)">Many thanks,</span></font></div>
<div class="" style="orphans:2; widows:2"><span class="" style="orphans:2; widows:2; background-color:rgb(255,255,255)"><font color="#24292e" class=""><br class="">
</font></span></div>
<div class="" style="orphans:2; widows:2"></div>
</div>
<div class="" style="word-wrap:break-word">
<div class="" style="orphans:2; widows:2"></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;" class="">
Paola<br class="">
<br class="">
<span class="" style="font-size:12px">----------------------------------------------<br class="">
Paola Cessi <br class="">
Scripps Institution of Oceanography <br class="">
9500 Gilman Drive #0213 <br class="">
La Jolla, CA 92093-0213<br class="">
USA <br class="">
Tel: +1 858 534 0622 Fax: +1 858 534 8045<br class="">
e-mail: <a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a> Web: <a href="http://www-pord.ucsd.edu/~pcessi" class="">http://www-pord.ucsd.edu/~pcessi</a><br class="">
<br class="">
Delivery address (Fed-Ex, DHL, UPS, etc.):<br class="">
Paola Cessi<br class="">
University of California San Diego<br class="">
Keck Center - Room 366<br class="">
8851 Shellback Way<br class="">
La Jolla, CA 92093-0213<br class="">
USA</span></div>
<div class="" style="letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">
<span class="" style="font-size:12px"><br class="">
</span></div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="">
<div class="">
<blockquote type="cite" class="">
<div class="">On May 11, 2020, at 4:41 PM, Dimitris Menemenlis <<a href="mailto:dmenemenlis@gmail.com" class="">dmenemenlis@gmail.com</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi Paola, do you use matlab or python?
<div class=""><br class="">
</div>
<div class="">If matlab and if noone answers with a generic answer, please send your pickup*.meta file and let me know which variable you want to replace and I will send you two lines of matlab code (and two small scripts) that will read and write the desired
variable from and to the pickup file.</div>
<div class=""><br class="">
</div>
<div class="">Cheers, Dimitris<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On May 11, 2020, at 3:39 PM, Paola Cessi <<a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a>> wrote:</div>
<br class="x_Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word">I need to change one entry in the pick-up files. Is there a simple sample program to read a pickup file change, one entry and write it again with the entry changed?
<div class=""><br class="">
</div>
<div class="">Thanks,</div>
<div class=""><br class="">
<div class="">
<div class="" style="word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Paola<br class="">
<br class="">
<span class="" style="font-size:12px">----------------------------------------------<br class="">
Paola Cessi <br class="">
Scripps Institution of Oceanography <br class="">
9500 Gilman Drive #0213 <br class="">
La Jolla, CA 92093-0213<br class="">
USA <br class="">
Tel: +1 858 534 0622 Fax: +1 858 534 8045<br class="">
e-mail: <a href="mailto:pcessi@ucsd.edu" class="">pcessi@ucsd.edu</a> Web: <a href="http://www-pord.ucsd.edu/~pcessi" class="">http://www-pord.ucsd.edu/~pcessi</a><br class="">
<br class="">
Delivery address (Fed-Ex, DHL, UPS, etc.):<br class="">
Paola Cessi<br class="">
University of California San Diego<br class="">
Keck Center - Room 366<br class="">
8851 Shellback Way<br class="">
La Jolla, CA 92093-0213<br class="">
USA</span></div>
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<span class="" style="font-size:12px"><br class="">
</span></div>
<br class="x_Apple-interchange-newline">
</div>
<br class="x_Apple-interchange-newline">
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
MITgcm-support mailing list<br class="">
<a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a><br class="">
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$" class="">http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support</a><br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
_______________________________________________<br class="">
MITgcm-support mailing list<br class="">
<a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a><br class="">
<a href="https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$" class="">https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!QoirxRdRyr4vnrPbSnaKY7tFkekGeHWD65KRYp5_8wt09DuCmWRzUfDbDwwgxw$</a>
<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
<span id="cid:A67B3B945F96DE459CC6DF640BA7E845@ad.jpl" class=""><pickup_flt.ckptA.001.001.meta></span></div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">MITgcm-support mailing list<br class=""><a href="mailto:MITgcm-support@mitgcm.org" class="">MITgcm-support@mitgcm.org</a><br class="">https://urldefense.com/v3/__http://mailman.mitgcm.org/mailman/listinfo/mitgcm-support__;!!Mih3wA!SZ0xdLx54X4SV4eZzToBlDQuM1cpIgv3QwwlJ98mAEod4D7sdNZDAG6ymIM-6g$ <br class=""></div></blockquote></div><br class=""></div></body></html>